Commit Graph

7560 Commits (4c94b4b49524973999c95c76df121944ae6e6b6e)

Author SHA1 Message Date
Martin Kojtal c9ff692858
Merge pull request #13780 from JojoS62/PR-fix-H7-USB
STM32 H7: fix USB in sleep mode
2020-11-26 13:19:35 +00:00
Martin Kojtal d0cfc67652
Merge pull request #13962 from 0xc0170/cmake-fix-stm-armclang
STM: fix ARMClang sct files, using proper -E command
2020-11-26 13:13:34 +00:00
Hugues Kamba ec9c6cbc02 CMake: Add support for all ARM's FM Mbed targets
Add CMakeLists.txt files so all ARM's FM Mbed targets can be built with CMake
2020-11-25 14:55:17 +00:00
Martin Kojtal b5b0cfb2c6 STM32: fix H7 target definition in sct files 2020-11-25 14:12:26 +00:00
Martin Kojtal fc16d2bae7 STM: fix ARMClang sct files, using proper -E command
This is required for ARMClang, otherwise there is an error with unknown command.
2020-11-25 13:35:36 +00:00
Martin Kojtal 0efffa3411 CMake nuvoton: fix ARMClang linker script command 2020-11-25 13:18:15 +00:00
David Douard 5a4a34802b
Fix a typo in STM32F3's CMakeList.txt
A typo has been introduced preventing the STM32F303x8 to be buildable using the new cmake based build system.
2020-11-25 11:53:59 +01:00
Martin Kojtal 62faa46fb4
Merge pull request #13921 from hugueskamba/hk_remove_lpc55s69
TARGET_NXP: Remove support for LPC55S69
2020-11-25 10:03:17 +00:00
jeromecoutant 59fc99bf50 STM32: full GPIO reset during mbed init 2020-11-25 09:07:58 +01:00
Lingkai Dong b174edb282 MCU_NRF52832: use two-region memory layout (stack + heap) to support MicroLib
MicroLib is the lightweight C lib for the Arm toolchain and
used as the default C lib on bare metal builds with the Arm
toolchain. It requires two separate memory regions for stack
and heap.

The change is based on nRF52840.sct.
2020-11-24 16:35:02 +00:00
Martin Kojtal 6d89500dfe
Merge pull request #13935 from MultiTechSystems/mtqn-soft-power-on
Dragonfly Nano(MTQN): power on/off so soft_power_on() fix
2020-11-24 14:14:07 +00:00
Martin Kojtal ced4aa6e2d
Merge pull request #13939 from jeromecoutant/PR_LSEDRIVE
STM32: LSE DRIVE feature update
2020-11-24 14:13:52 +00:00
Martin Kojtal 9de73f89ef
Merge pull request #13932 from LDong-Arm/st_trace_verbosity
Reduce ST QSPI/OSPI trace verbosity to debug
2020-11-24 14:12:13 +00:00
Martin Kojtal b552127916
Merge pull request #13931 from jeromecoutant/PR_I2C_LEGACY
STM32 I2C: use correct HAL API
2020-11-24 14:12:05 +00:00
Martin Kojtal 985fab4ea0
Merge pull request #13918 from hugueskamba/hk_removed_lpc11u6x
TARGET_NXP: Remove support for LPC11U6X
2020-11-24 14:10:35 +00:00
Martin Kojtal a1fc9cdad5
Merge pull request #13915 from 0xc0170/cmake-stm32
CMake: add all TARGET_STM targets
2020-11-24 14:09:28 +00:00
Martin Kojtal 59c03e1e75
Merge pull request #13914 from JeanMarcR/FLASH_API
STM32 FLASH API : add critical sections
2020-11-24 14:08:52 +00:00
Martin Kojtal 2f709cc13f
Merge pull request #13896 from jeromecoutant/PR_OSPI
STM32 OSPI support
2020-11-24 13:53:30 +00:00
Martin Kojtal 57bbb4739b
Merge pull request #13085 from pea-pod/remove-deprecated-mbed-assert
Change MBED_STATIC_ASSERTs version for built-in
2020-11-24 13:38:07 +00:00
Hugues Kamba 6a6864b6df Freescale: Remove KL27Z files
Mbed OS 6 does not support the KL27Z target
2020-11-23 17:02:03 +00:00
reme 41ed9239be LPUART CLOCK SOURCE SELECTION LEFT TO SERIAL DRIVER.
The clock source selection of LPUART depends on System clocks but also on
the serial baudrate. There is a specific computation done in serial driver
targets/target_STM/serial_api.c

At first start-up the LPUART1 clock selected in SetSysClock was anyway
overridden by the serial driver, so this was of no effect. But in case
of deep sleep SetSysClock is called again, while the driver isn't, so
SetSyClock was corrupting the serial clock configuration.

So let's remove these few lines of code which are causing trouble.

For targets L496 and L5.

Taking into account device TRNG in L5 configuration
2020-11-23 17:10:49 +01:00
Hugues Kamba 942f62c148 Freescale: Remove K20XX files
Mbed OS 6 does not support K20XX targets
2020-11-23 14:34:27 +00:00
jeromecoutant 29af76fcca STM32: LSE DRIVE feature update 2020-11-20 17:31:26 +01:00
Martin Kojtal 6574054d26 CMake: remove M2351 cmakelists, not supported yet 2020-11-20 13:46:15 +00:00
Martin Kojtal 58bf0ed9f2 CMake: fix NUC472 ARM path 2020-11-20 13:42:32 +00:00
Martin Kojtal 033c48dee7 CMake: fix NUMAKER_IOT_M263A name 2020-11-20 13:41:34 +00:00
reme 16e63dc108 STM32 FLASH API : add critical sections
See PR #13802 (for F4 board)

Concerned boards are

STM32F0
STM32F1
STM32F2
STM32F3
STM32F4
STM32F7
STM32G0
STM32G4
STM32H7
STM32L0
STM32L1
STM32L4
STM32L5

Adding test of return code of HAL_FLASH_Lock() function
Adding board STM32F4
Running AStyle
2020-11-20 08:03:24 +00:00
Leon 01b60c20a1 Update Dragonfly Nano(MTQN) power on/off so soft_power_on() performs a reset 2020-11-19 18:09:06 -06:00
Lingkai Dong 8f50b03a38 Reduce ST QSPI/OSPI trace verbosity to debug 2020-11-19 16:22:12 +00:00
jeromecoutant b01940200c STM32 I2C: use correct HAL API 2020-11-19 12:03:48 +01:00
Hugues Kamba 9d32a473b6 Cypress: Remove CY8CKIT_064S2_4343W files
Mbed OS 6 does not support this target.
2020-11-19 11:00:43 +00:00
Martin Kojtal 02c35fdd48 CMake: add nuvoton targets 2020-11-18 15:18:18 +00:00
Hugues Kamba 07b6db2f0d TARGET_NXP: Remove support for LPC55S69
Mbed OS 6 dropped support for all LPC55S69 targets.
This commit removes all source files for those targets.
2020-11-18 15:01:20 +00:00
Martin Kojtal 468b66944d CMake: STM32 TARGET_ prefix removal fix 2020-11-18 12:13:46 +00:00
Hugues Kamba 8972cde3ab TARGET_NXP: Remove support for LPC11U6X
Mbed OS no longer supports any LPC11U6X targets.
This commit removes all source files for those targets.
2020-11-18 11:39:56 +00:00
Martin Kojtal 907868d1de CMake: STM32F0 fix startup/linker prefixes 2020-11-18 11:19:57 +00:00
Martin Kojtal 134c39cb7e
Merge pull request #13905 from jeromecoutant/PR_L422
STM32L4: ADC compilation issue with L422
2020-11-18 10:59:06 +00:00
Martin Kojtal e1b8dd6e22
Merge pull request #13797 from JojoS62/PR_fix_LSE-drive-load-setting
STM32: add setting for LSE drive load level
2020-11-18 09:42:45 +00:00
Martin Kojtal 450afa81fb
Merge pull request #13904 from 0xc0170/fix_disco_cmake
CMake STM32L475xG: fix linker/startup inclusion
2020-11-18 09:37:45 +00:00
Martin Kojtal c49d0b88aa CMake: STM32F1 Cube fix driver includes 2020-11-17 16:52:10 +00:00
Martin Kojtal 23eed7cda1 CMake: add STM32WB targets 2020-11-17 16:48:24 +00:00
Martin Kojtal 39cb929749 CMake: add STM32L5 targets 2020-11-17 16:48:11 +00:00
Martin Kojtal 4c115a5c8d CMake: fix STM32 cmsis include 2020-11-17 16:30:37 +00:00
Martin Kojtal 519ac980ab CMake: add STM32L4 targets 2020-11-17 16:22:16 +00:00
Martin Kojtal 93e35a07ab CMake: add STM32L1 targets 2020-11-17 15:45:52 +00:00
Martin Kojtal 959c194b02 CMake: add STM32L0 targets 2020-11-17 15:40:35 +00:00
Martin Kojtal 80161f59ca CMake: add STM32H7 targets 2020-11-17 15:32:24 +00:00
Martin Kojtal fea34ce976 CMake: add STM32G4 targets 2020-11-17 15:17:17 +00:00
Martin Kojtal 1f2bb47391 CMake: add STM32G0 targets 2020-11-17 15:03:02 +00:00
Martin Kojtal d4f1f2560e CMake: add STM32F7 targets 2020-11-17 14:27:23 +00:00
Martin Kojtal a918ba4cba CMake: add STM32F4 targets 2020-11-17 14:00:04 +00:00
Martin Kojtal 6582c0af2c CMake: add STM32F3 targets 2020-11-17 12:37:26 +00:00
Martin Kojtal 9933b7d808 CMake: add STM32F2 targets 2020-11-17 12:06:59 +00:00
Martin Kojtal 81b61b2090 CMake: add STM32F1 targets 2020-11-17 11:59:44 +00:00
Martin Kojtal f05db1b47a CMake: add STM32F0 targets 2020-11-17 11:43:09 +00:00
jeromecoutant b79b8f5126 STM32G0: creation of MCU_STM32G070xx for custom boards
NB: no LPTIM on this MCU, so default values applied
2020-11-16 08:35:30 +01:00
jeromecoutant 08a7fd6c15 STM32G0: no TIM2 for G070xx 2020-11-16 08:35:22 +01:00
petroborys 41975a27ea Workaround to fix RTC-reset issue on the EFM32GG11_STK3701 2020-11-13 16:33:57 +02:00
petroborys 236748234e Workaround to fix RTC-reset issue on the EFM32GG11_STK3701 2020-11-13 14:32:47 +02:00
jeromecoutant 4c2945128c STM32G0: USART3_4_LPUART1_IRQn compilation issue with G070xx 2020-11-13 12:05:01 +01:00
jeromecoutant 9b8492bb13 STM32G0: RTC IRQ name error 2020-11-13 12:03:26 +01:00
jeromecoutant c288034ff7 STM32L4: ADC compilation issue with L422 2020-11-13 10:13:46 +01:00
RyoheiHagimoto edbcb78bb4 Added Apache-2.0 license to the files in r_can directory. 2020-11-13 08:56:15 +09:00
Moshe Shahar ca39f9588a fix incorrect condition 2020-11-12 17:20:08 +02:00
Moshe Shahar 157788e6a0 fix #error condition and message to include interrupts and flash config 2020-11-12 17:14:23 +02:00
Moshe Shahar e70ee75a6e K64F, K66F - Remove flash_config area if MBED_APP_START isn't zero
This will also fix GCC_ARM non-contiguous FW:
Issue: https://github.com/ARMmbed/mbed-os/issues/13831
2020-11-12 17:14:22 +02:00
Martin Kojtal 18b898d708 STM32L475xG: fix linker/startup inclusion
No function required.
2020-11-12 11:54:21 +00:00
Martin Kojtal 76ff098e94
Merge pull request #13691 from jrobeson/drop-nordic-sdk11
Remove unused Nordic TARGET_SDK_11
2020-11-12 09:35:42 +00:00
Martin Kojtal 32398685f8
Merge pull request #13880 from heuisam/master
S1SBP6A fix RTC range
2020-11-12 08:45:03 +00:00
Martin Kojtal 74f9603c0a
Merge pull request #13861 from idea--list/ambiq-apollo3-dev-squash
Ambiq apollo3 fix of an SPI related SD bug
2020-11-12 08:43:58 +00:00
Martin Kojtal f5f638952b
Merge pull request #13849 from kalle16lab/add-apollo3-sleep
Add apollo3 sleep
2020-11-11 16:53:06 +00:00
Martin Kojtal 3ec633cbe2
Merge pull request #13893 from teetak01/fix-rt1050-bootloader-support
MIMXRT1050_EVK return bootloader support
2020-11-11 13:00:19 +00:00
Martin Kojtal f867a949a9
Merge pull request #13864 from LDong-Arm/cypress_baremetal_fixes
Fix bare metal builds on Cypress targets
2020-11-11 08:55:39 +00:00
Martin Kojtal a0e8ab93a4
Merge pull request #13859 from jeromecoutant/PR_L4_LPUART_HSI
STM32L4: Use HSI for LPUART
2020-11-11 08:27:35 +00:00
Martin Kojtal e8a3282181
Merge pull request #13816 from pennam/patch-stm32-usbhs-pull
STM32: allow HS USB endpoints and increase USB OTG_HS endpoints number
2020-11-11 08:27:19 +00:00
Martin Kojtal f550ed3bd5
Merge pull request #13802 from jeromecoutant/PR_FLASH_F4
STM32F4 FLASH API update
2020-11-11 08:26:44 +00:00
Martin Kojtal 43ff4ae865
Merge pull request #13874 from jeromecoutant/PR_F3_11
STM32F3 update drivers version to CUBE V1.11.1
2020-11-11 08:26:25 +00:00
Heuisam Kwag eb32b25c8a SIDK_S1SBP6A: fix to support rtc range from 0 to 0xEFFFFFFF
BP6A do not support from 0 to 0xEFFFFFFF in SOC.
This patch fixes it in s/w manner.

Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-11-11 13:54:32 +09:00
RyoheiHagimoto 6795607f32 Added CAN function to RZ/A2M. 2020-11-11 13:25:55 +09:00
RyoheiHagimoto ec6e74ab1e Updated periperal definition files for Renesas RZ/A2M 2020-11-11 13:23:07 +09:00
jeromecoutant f7a2247442 STM32 : enable OSPI for DISCO_L562QE 2020-11-10 18:38:21 +01:00
jeromecoutant 3697167b73 STM32: add OSPI capability
PeripheralPins.c and PinNames.h files
generated by STM32_gen_PeripheralPins.py v1.17
2020-11-10 18:37:51 +01:00
Martino Facchin f1ea281613 STM32: USB: allow more endpoints for OTG_HS ports 2020-11-10 17:22:29 +01:00
Martino Facchin db7954bc9b STM32: allow high speed USB endpoints 2020-11-10 17:22:28 +01:00
Teemu Takaluoma f74b1293c2 MIMXRT1050_EVK return bootloader support 2020-11-10 15:29:24 +02:00
Hugues Kamba 794e32df74 CMake: Use relative paths to list source files and directories
The absolute path is still required for listing linker
files as they are referenced from a function in the top
level CMake input source file.
2020-11-09 12:32:30 +00:00
Martin Kojtal d48415cc67 CMake nrf52480: fix startup/linker inclusion 2020-11-06 17:25:23 +00:00
Hugues Kamba e0aa49ffcf CMake: Add support for NUCLEO_F303K8
Added the board so it can be used for testing the bare-metal profile on a Mbed 2 board
2020-11-06 17:25:22 +00:00
Rajkumar Kanagaraj e7c0d93ad4 CMake: add mbed-os and mbed-baremetal targets
mbed-os consists of mbed-core and mbed-rtos
mbed-baremetal consists of mbed-core

The main change is for mbed-core. Changing from object library to be interface. This way it allows us to do the above to have 2 main targets for users to use.

This should be backward compatible change as mbed-os target we used contains the same files/options as previously set.
2020-11-06 17:25:22 +00:00
Hugues Kamba bf84a5b329 CMake: Rename CMake targets
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Rajkumar Kanagaraj a42ad9dea4 Update CMake based on new STM32L4 directory structure 2020-11-06 17:25:22 +00:00
Martin Kojtal 448986feb6 CMake: remove string.h in STM32 usb, already included (#13773) 2020-11-06 17:25:22 +00:00
Rajkumar Kanagaraj 8016a53400 CMake: replace usage of the mbed_add_cmake_directory_if_labels() function (#13754)
Directories that start with special prefixes (TARGET_, FEATURE_, COMPONENT_)  are added to the build based on Mbed target configuration from targets.json instead of calling utility function mbed_add_cmake_directory_if_labels().
2020-11-06 17:25:21 +00:00
Hugues Kamba fa98689639 CMake: Componentize Mbed OS into multiple CMake targets (#13732)
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`.

Co-authored-by: Martin Kojtal <martin.kojtal@arm.com>
Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>
2020-11-06 17:25:21 +00:00
Hugues Kamba 22dd57b35b CMake: Add support for NUCLEO_F401RE 2020-11-06 17:25:21 +00:00
Hugues Kamba 043cb37ff5 CMake: Fix DISCO_L475VG_IOT01A ARM toolchain support
Correct location of startup code and linker file.
2020-11-06 17:25:21 +00:00
Hugues Kamba 042e9c7078 CMake: Remove TOOLCHAIN_ARM_STD dir for TARGET_STM32F439xI 2020-11-06 17:25:21 +00:00
Hugues Kamba 0ba05246cc CMake: Fix selection of scatter file and startup file for DISCO_L475_IOT01A 2020-11-06 17:25:20 +00:00
Hugues Kamba 3ab8179b1e CMake: Add support for K66F 2020-11-06 17:25:20 +00:00
Hugues Kamba 01ddb7d471 CMake: Fix NRF52840_DK build failure
* Remove duplicated ARM toolchain directory
* Link with archived cryptocell 310 libraries instead
  of adding them as source files
* Provide default MBED_BOOT_STACK_SIZE definition
  in scatter file as is done for GCC_ARM linker file
2020-11-06 17:25:19 +00:00