jeromecoutant
6d780d8773
STM32G0: move cmsis_nvic.h file to Sub-family level
2020-01-07 16:01:45 +01:00
jeromecoutant
7dd31d0319
STM32G0: move TOOLCHAIN files to Sub-family level
2020-01-07 16:00:40 +01:00
jeromecoutant
fd52eb46d1
STM32G0: move files to TARGET_STM32G0/STM32Cube_FW
2020-01-07 16:00:16 +01:00
jeromecoutant
6875d0318e
STM32G0: move files to TARGET_STM32G0/STM32Cube_FW/CMSIS
2020-01-07 15:57:04 +01:00
jeromecoutant
f322d87d43
STM32G0: move files to TARGET_STM32G0/STM32Cube_FW/STM32G0xx_HAL_Driver
2020-01-07 15:56:19 +01:00
Leon Lindenfelser
94ead7adb2
Minor fixes for peripheral pins on Dragonfly Nano
...
1. PG8 should be labeled I2C3 not I2C1.
2. PC0 is dedicated to measuring system voltage.
2020-01-07 08:52:34 -06:00
Martin Kojtal
9d16a17e7e
Merge pull request #11653 from tymoteuszblochmobica/multiple
...
Add Getaddrinfo interface for multiple DNS adresses
2020-01-07 14:53:36 +01:00
Martin Kojtal
5d71e69f6a
Merge pull request #12186 from mprse/fix_for_issue_12172_stm_serial
...
STM serial init: Set pin function only if pin is defined (not NC)
2020-01-07 11:38:00 +01:00
cyliangtw
95be7da860
Add CLKSEL0_USBSEL_HIRC48 in m2351_clk.h
2020-01-06 19:08:52 +08:00
Hugues Kamba
15bf72e982
LPC11U24: Fix baremetal build and runtime error
...
* Add `USTICKER` support for `LPC11U24`.
* Add `tickless-from-us-ticker` and `boot-stack-size` overrides.
2020-01-06 08:47:13 +00:00
Chun-Chieh Li
22e4f93400
[M2351] Add pre-built secure images for PSA
2020-01-06 15:55:01 +08:00
Chun-Chieh Li
fc60d1f4bc
[M2351] Change memory partition for PSA
...
1. Change secure/non-secure ROM to 240KiB/272KiB
2. Change secure/non-secure RAM to 64KiB/32KiB
2020-01-06 15:55:01 +08:00
ccli8
9f88fce50e
[M2351] Support secure/non-secure combined build for PSA
...
Support secure/non-secure combined build for PSA target:
1. In secure post-build, deliver built secure image to TARGET_NU_PREBUILD_SECURE
directory.
2. In non-secure post-build, merge non-secure image with secure image saved in
TARGET_NU_PREBUILD_SECURE directory.
3. In non-secure post-build, user can also drop secure image saved in
TARGET_NU_PREBUILD_SECURE directory and provide its own by adding the line below
in mbed_app.json:
"target.extra_labels_remove": ["NU_PREBUILD_SECURE"]
2020-01-06 15:55:01 +08:00
Chun-Chieh Li
c9b4474d50
[M2351] Merge secure idle/powerdown sequences into one
...
Merge SYS_UnlockReg_S()/CLK_Idle_S() or CLK_PowerDown_S()/SYS_LockReg_S()
into nu_idle_s() or nu_powerdown_s() when they are available.
2020-01-06 15:55:01 +08:00
Chun-Chieh Li
a0a1c4d52c
[M2351] Override NS interface by locking kernel scheduler
...
Lock kernel scheduler rather than mutex to guarantee serialization of NS
secure calls
2020-01-06 15:55:01 +08:00
ccli8
dec84ede7e
[M2351] Enforce locked entry into TFM for platform-specific NSC calls
...
On M2351, some spaces like SYS/CLK are hard-wired to secure and cannot change.
To access these spaces from non-secure world, we must provide platform-specific NSC
functions. With TFM introduced, we must synchronize NSC calls into TFM to keep TFM
in sync instead of straight NSC calls. To achieve this goal, we go with the following
approach:
1. Like PSA APIs, enforce locked entry through tfm_ns_lock_dispatch().
2. Run platform-specific secure functions in default secure partition, in which SYS/CLK
spaces have been configured to be accessible.
2020-01-06 15:55:00 +08:00
ccli8
41d95ef2fb
[M2351] Support TFM level 1
2020-01-06 15:55:00 +08:00
ccli8
76a029e88d
[M2351] Support initializing multiple .data/.bss sections with GCC_ARM
2020-01-06 15:54:59 +08:00
ccli8
db11eef0bc
[M2351] Remove draft uvisor code with GCC_ARM
...
uVisor is deprecated since mbed-os 5.10, so remove related code with it.
2020-01-06 15:54:59 +08:00
ccli8
1aca8a5b56
[M2351] Make exported NSC symbols consistent across toolchains
...
This idea comes from TFM.
2020-01-06 15:54:59 +08:00
Filip Jagodzinski
a958199594
TOSHIBA: Add hal_reset_reason_get_capabilities()
...
Override the default, weak implementation of
hal_reset_reason_get_capabilities() for TMPM066, TMPM3H6, TMPM3HQ,
TMPM46B & TMPM4G9.
2020-01-03 16:54:19 +01:00
Martin Kojtal
078f71d72a
nuvoton: remove dsp math from bitutil file
2020-01-03 15:25:02 +00:00
Martin Kojtal
7fd637b66b
Merge pull request #12095 from NXPmicro/Update_MXRT_SDK6
...
Update MXRT1050 to SDK 6.0
2020-01-03 15:22:13 +00:00
Hugues Kamba
6afca2460e
NRF5x: Fix baremetal linker error
...
DEBUG_NRF_USER gets defined for build profiles (develop, debug)
which do not define NDEBUG (see nrf_assert.h). Therefore the definition
of the function should also be visible if DEBUG_NRF_USER is defined.
2020-01-03 15:14:09 +00:00
Martin Kojtal
83101170a3
Merge pull request #12167 from dustin-crossman/pr/cypress_target_update
...
Update Cypress Targets and Assets
2020-01-03 13:15:28 +00:00
Przemyslaw Stekiel
79d16ae8f7
STM serial init: Set pin function only if pin is defined (not NC)
2020-01-03 14:14:26 +01:00
cyliangtw
115520a7b8
Add SPDX identifiers in Nuvoton USBD files
2020-01-03 20:40:47 +08:00
cyliangtw
eab8555fc8
Support NUC472 with USB 2.0 only and set M487 USB1.1 in default
2020-01-03 20:40:46 +08:00
cyliangtw
4cddc5de25
Add M453 USBD
2020-01-03 20:40:45 +08:00
cyliangtw
6612ee8460
Set NANO130 CLK as 48 MHz for USBD support
2020-01-03 20:40:44 +08:00
cyliangtw
abf3eeed64
Support NuMaker M453, NUC472, M2351 & M263 USBD; also support M0 usb-isr non-recloate vector limit
2020-01-03 20:40:43 +08:00
cyliangtw
a5aaabff5d
NANO130 add extern C into nano100_usbd.h for C++ caller
2020-01-03 20:40:42 +08:00
cyliangtw
93fbef2cde
Refine M487 USBD code and build M263A successfully
2020-01-03 20:40:41 +08:00
cyliangtw
9b721bf327
Support M487 USBD 1.1 & 2.0
2020-01-03 20:40:39 +08:00
cyliangtw
84882f773e
M487: Fixed USBD serial input pending issue
2020-01-03 20:40:37 +08:00
cyliangtw
b34fd309e3
M487: Support USBD
2020-01-03 20:40:36 +08:00
Martin Kojtal
88ae99ffca
LPC55S6: remove cmsis powerquad
...
This file requires CMSIS library (DSP).
2020-01-03 12:30:54 +00:00
Martin Kojtal
fc2a71064d
Merge pull request #12068 from rajkan01/feature_bare_metal
...
Enabling small C library option and deprecating uARM toolchain
2020-01-03 11:35:48 +00:00
Martin Kojtal
4feca5942a
Merge pull request #12178 from tymoteuszblochmobica/lpctls
...
Fixes for LPC55S69_NS TLS tests
2020-01-03 11:29:49 +00:00
Filip Jagodzinski
ffd8d70a55
K64F: Add hal_reset_reason_get_capabilities()
2020-01-03 12:11:45 +01:00
Dustin Crossman
f53e10e330
Update psoc6pdl to version 1.4.0
2020-01-02 10:04:45 -08:00
Dustin Crossman
6ef5fb19bd
Update abstraction rtos with improved documentation and utilities.
2020-01-02 10:02:18 -08:00
Dustin Crossman
7649d92131
Update psoc6 core_lib with additional documentation and bit manipulation
...
utilities.
2020-01-02 09:58:26 -08:00
Dustin Crossman
af5abae283
Updated cypress target code with latest configurator and PDL
...
library (1.4.0).
2020-01-02 09:49:29 -08:00
Tymoteusz Bloch
b40ab36a6b
Incerased LPC55S69_NS heap in IAR linker script for TLS purpose.
2020-01-02 15:56:26 +01:00
Martin Kojtal
b8045fb29b
Merge pull request #12164 from shuopeng-deng/pr-dev/remove-hardcoded-timeout-in-cypress-bt-code
...
Pr dev/remove hardcoded timeout in cypress bt code
2020-01-02 12:52:51 +00:00
Martin Kojtal
adcd0066ca
Merge pull request #12170 from OpenNuvoton/nuvoton_iar_dynamic_heap
...
Nuvoton: Support dynamic heap configuration on IAR
2020-01-02 10:12:03 +00:00
Martin Kojtal
a387985c7c
Merge pull request #12144 from hugueskamba/hk-nrf52840-two-mem-region-model
...
NRF52840: Use 2 region memory model for the ARM toolchain
2020-01-02 10:08:58 +00:00
Antti Kauppila
e29cb193ca
Added missing define for Quectel UG96
2019-12-27 16:04:10 +01:00
Antti Kauppila
ca7848d854
Refactored away onboard_modem_api because it is not needed at all
...
All targets must implement soft_- and hard_power_on/off() functions which are practically same what onboard_modem_api offered.
These were seen as a duplicate features and therefore we removed this.
All targets involved have been updated to reflect the changes
2019-12-27 16:04:10 +01:00
Chun-Chieh Li
c99dc34f65
Nuvoton: Support dynamic heap configuration on IAR
...
On IAR, configure heap to 1KiB at a minimum and expandable, dependent on available SRAM. This requires IAR 8.x.
Support targets:
- NUMAKER_PFM_NUC472 w/ and w/o XRAM
- NUMAKER_PFM_M453
- NUMAKER_PFM_M487/NUMAKER_IOT_M487
- NUMAKER_IOT_M263A
- NUMAKER_M252KG
2019-12-27 09:01:07 +08:00
Rajkumar Kanagaraj
6d081eeb70
Fixed the build tools test case failure,incorporated review comments
2019-12-23 03:54:18 -08:00
Anna Bridge
bb028babc6
Merge pull request #12134 from toyowata/lpc11u35_fix
...
Fix LPC11U35_401 baremetal build
2019-12-23 11:51:52 +00:00
jeromecoutant
5cedd3320c
STM32F0: clean main-thread-stack-size setting
2019-12-23 12:29:40 +01:00
jeromecoutant
c27c03c784
STM32 remove unused INITIAL_SP macro
2019-12-23 12:29:40 +01:00
Martin Kojtal
7609eb4741
Merge pull request #12113 from mprse/can_init_fix
...
Fix for issue #12104 (STM32 can_init_freq() ignores frequency)
2019-12-20 11:24:05 +01:00
Shuopeng Deng
7e79623b39
Removed a hardcoded timeout in CyH4TransportDriver.cpp
...
Replaced a hardcoded timeout in CyH4TransportDriver.cpp with a cypress
hal function. The cypress PUTC hal API only blocks until data has been
send into the HW buffer, not until all data has been out of the HW
buffer. Modified an API to block untill all tx transmit is complete.
This allows the removal of a hardcoded timeout in
CyH4TransportDriver.cpp that waits for data int the HW buffer to be
sent.
2019-12-19 15:35:38 -08:00
Rajkumar Kanagaraj
957dca2082
Enabling small C library option and deprecating uARM toolchain
...
- By default, Mbed OS build tools use standard C library for all supported toolchains.
It is possible to use smaller C libraries by overriding the "target.default_lib" option
with "small". This option is only currently supported for the GCC_ARM toolchain.
This override config option is now extended in the build tool for ARM toolchain.
- Add configuration option to specify libraries supported for each toolchain per targets.
- Move __aeabi_assert function from rtos to retarget code so it’s available for bare metal.
- Use 2 memory region model for ARM toolchain scatter file for the following targets:
NUCLEO_F207ZG, STM32F411xE, STM32F429xI, NUCLEO_L073RZ, STM32F303xE
- Add a warning message in the build tools to deprecate uARM toolchain.
- NewLib-Nano C library is not supporting floating-point and printf with %hhd,%hhu,%hhX,%lld,%llu,%llX
format specifier so skipping those green tea test cases.
2019-12-19 10:05:11 -08:00
Anna Bridge
bef36f5f3e
Merge pull request #12093 from ABOSTM/SUPPORT_NUCLEO_G071RB
...
TARGET_STM: add support of board NUCLEO_G071RB
2019-12-19 15:26:08 +00:00
Hugues Kamba
c3c6cfa8d6
NRF52840: Use 2 region memory model for the ARM toolchain
2019-12-19 15:13:44 +00:00
toyowata
f9242d0b5c
Fix runtime crash by ARMC6 build
2019-12-19 15:31:33 +09:00
toyowata
0d88ff0cfe
Fix USTICKER build error for LPC11U35_401
2019-12-19 15:22:07 +09:00
Przemyslaw Stekiel
fffc30ffda
STM CAN: remove CAN_INIT_DIRECT macro
2019-12-18 10:43:55 +01:00
Anna Bridge
b1b0673622
Merge pull request #12086 from ABOSTM/FLASH_API_64B_ALIGNMENT
...
TARGET_STM: fix flash api 64bit address alignment on L4 and WB
2019-12-17 16:46:21 +00:00
Anna Bridge
8b0a5c2e4b
Merge pull request #12099 from J91Olivier/stm32f4_baud_rate_calculation_fix
...
Implemented recommended fix from https://github.com/STMicroelectronic …
2019-12-17 16:27:19 +00:00
Anna Bridge
4c68eaecd3
Merge pull request #12097 from shuopeng-deng/pr/fix-iar-warnings
...
cypress target: fix iar warnings
2019-12-17 16:26:05 +00:00
Anna Bridge
378f8c2b26
Merge pull request #12067 from jeromecoutant/PR_IRQ_CRITICAL
...
STM32 GPIO IRQ : add a critical section in gpio_irq_init
2019-12-17 16:23:44 +00:00
Anna Bridge
3ad3110888
Merge pull request #12019 from shuopeng-deng/pr/cypress-lptimer-hal-rework
...
Cypress: rework lptimer hal
2019-12-17 16:19:43 +00:00
Przemyslaw Stekiel
e0e280aeaf
optimize can_init(): call can_init_freq() with default freq
2019-12-16 14:09:54 +01:00
Tymoteusz Bloch
8b2f4c2e7e
Getaddrinfo interface for multiple DNS adresses added.
...
New members are added to the network interface
-getaddrinfo
-getaddrinfo_async
gethostbyname is unchanged but gethostbyname_async result param now contains results od DNS records found.
Test cases for sync/async added added to DNS test folder.
2019-12-16 13:59:46 +01:00
Przemyslaw Stekiel
6a3e343ec6
Fix for issue #12104 (STM32 can_init_freq() ignores frequency)
2019-12-16 13:16:51 +01:00
Mahesh Mahadevan
a947c523ea
MXRT1050: Formatting update
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:24 -06:00
Mahesh Mahadevan
3b5ca18924
Update MXRT sleep function
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:23 -06:00
Mahesh Mahadevan
126df98c39
MIMXRT1050: Update UART driver
...
The UART first instance is 1 and not 0. Update the code logic to account
for this.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:22 -06:00
Mahesh Mahadevan
3a0269c805
MIMXRT1050: Update the usticker driver
...
The PIT module should be initialized only once
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:21 -06:00
Mahesh Mahadevan
2d32e43713
MXRT: Update the LPTimer driver
...
1. Run in doze mode
2. Add implementation for free function
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:20 -06:00
Mahesh Mahadevan
4efbe621e2
MXRT: Update GPIO IRQ hal driver
...
The SDK header provides separate arrays for high and low
GPIO interrupts in place of the previous combined array
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:20 -06:00
Mahesh Mahadevan
d75d9a605d
MIMXRT1050: Update target configuration
...
1. Add defines to copy ram & no-cache functions
2. Add deep sleep latency definition
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:18 -06:00
Mahesh Mahadevan
d117f0df79
MXRT1050: Do not switch 24M source to reduce latency
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:17 -06:00
Mahesh Mahadevan
c92c29ffbd
MIMXRT1050: Update the low power driver to SDK 2.6
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:16 -06:00
Alexandre Bourdiol
528ac279fe
Targets: adapt NUCLEO_G071RB to CMSIS-pack info update
2019-12-13 16:42:40 +01:00
jaco.olivier
ef5da02a68
Implemented recommended fix from https://github.com/STMicroelectronics/STM32CubeF4/issues/5
2019-12-13 10:48:38 +02:00
Shuopeng Deng
6f3852dd59
fix 'enumerated type mixed with another type' IAR warnings
2019-12-12 17:05:11 -08:00
Shuopeng Deng
7817a228e9
fix 'statement is unreachable' IAR warning
2019-12-12 17:05:11 -08:00
Mahesh Mahadevan
2bb8184460
MIMXRT1050: Update the XIP file from SDK 2.6
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-12 13:52:51 -06:00
Mahesh Mahadevan
b906d259d8
MIMXRT1050: Update the mbed_overrides file
...
1. No need to copy RAM functions, this is done in the startup file
2. Update memory config for the FLASH section
3. Configure the PMIC_STDBY pin
4. Update UART clock setting
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-12 13:52:50 -06:00
Mahesh Mahadevan
6c3adb026c
MIMXRT1050: Update the clock driver to SDK 2.6
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-12 13:52:48 -06:00
Mahesh Mahadevan
96f834eb20
MIMXRT1050: Update the ENET PHY driver from SDK 2.6
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-12 13:52:47 -06:00
Mahesh Mahadevan
b7ca64bbeb
MIMXRT1050: Update linker scripts & startup files from SDK 2.6
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-12 13:52:45 -06:00
Mahesh Mahadevan
aaa4a91c4b
MIMXRT1050: Update the device files to SDK 2.6
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-12 13:52:44 -06:00
Mahesh Mahadevan
70cba03e08
MIMXRT1050: Use __ramfunc keyword to copy functions to RAM
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-12 13:52:42 -06:00
Mahesh Mahadevan
44de6d49c2
MIMXRT1050: Update the drivers to SDK 2.6
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-12 13:52:40 -06:00
Alexandre Bourdiol
7c52aa59ec
TARGET_STM: add support of board NUCLEO_G071RB
2019-12-12 14:00:04 +01:00
Alexandre Bourdiol
9e3ad13d5e
TARGET_STM: fix flash api 64bit address alignment on L4 and WB
2019-12-11 18:32:42 +01:00
Martin Kojtal
1d5bd750b9
Merge pull request #12061 from OpenNuvoton/nuvoton_nano130_iar_dynamic_heap
...
NANO130: Support dynamic heap configuration on IAR
2019-12-11 10:46:28 +01:00
Michael Gurevich
03ea0e0b59
Expose target_offset and header_offset parameters in targets.json
2019-12-11 10:49:51 +02:00
Martin Kojtal
f2701463ae
Merge pull request #12052 from yarbcy/pr/fix-for-arm-issue-11860
...
fpga tests: clear uart fix
Fixes #11860 (correction from the commit msg)
2019-12-11 08:05:53 +01:00
Martin Kojtal
06da49984f
Merge pull request #12069 from jeromecoutant/PR_ASTYLE
...
STM32: astyle update
2019-12-11 08:01:19 +01:00
jeromecoutant
9317bea756
STM32 GPIO INIT in critical section
...
critical section added in gpio_irq init and free functions
to protect shared code structures
Note that other functions are protected in API level in InterruptIn
2019-12-10 15:59:56 +01:00
Martin Kojtal
22ab94a1c9
TARGET_STM32F74: fix IAR SIZE check in linker scripts
2019-12-10 14:09:38 +00:00