Commit Graph

36 Commits (e6565a4486428c28dbfdc01a0cccce51fba6994c)

Author SHA1 Message Date
Robert Walton d9e184b6c6 cmake: Refactor ST targets
Refactor all ST targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-04 15:26:36 +00:00
pea-pod e1c754b179 Add SPI bitwidths to ST targets where supported 2021-01-11 07:53:07 -06:00
Martin Kojtal 33a7e66a07
Merge pull request #13906 from jeromecoutant/PR_G070
STM32G070: generic target creation
2020-11-27 12:49:52 +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 a1fc9cdad5
Merge pull request #13915 from 0xc0170/cmake-stm32
CMake: add all TARGET_STM targets
2020-11-24 14:09:28 +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
Martin Kojtal 1f2bb47391 CMake: add STM32G0 targets 2020-11-17 15:03:02 +00:00
jeromecoutant 08a7fd6c15 STM32G0: no TIM2 for G070xx 2020-11-16 08:35:22 +01: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
Jaeden Amero 612b148fd4 stack: armc: Workaround config passing bug
Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
https://github.com/ARMmbed/mbed-os/issues/13474 for more information.
2020-09-10 10:08:38 +01:00
Jaeden Amero 39e69d328d Use boot stack size from config system
To allow overriding of the boot stack size from the Mbed configuration
system, consistently use MBED_CONF_TARGET_BOOT_STACK_SIZE rather than
MBED_BOOT_STACK_SIZE.

Fixes #10319
2020-09-10 10:08:38 +01:00
Robert 14ac4064b7 STM32Gx: LSI clock selection when LSE is not available 2020-09-07 14:47:11 +01:00
Martin Kojtal afcf91f331
Merge pull request #13006 from AGlass0fMilk/add-nucleo-g031k8
NUCLEO_G031K8: Add new target
2020-08-26 07:24:28 +01:00
jeromecoutant 44b7c1165e STM32G0 UART: compilation warning 2020-08-24 13:55:10 +02:00
jeromecoutant 2f2a1ea3f2 STM32G0 stm32g0xx_ll_rtc.h compilation warning
Waiting for
https://github.com/STMicroelectronics/STM32CubeG0/issues/11
2020-08-24 13:55:03 +02:00
George Beckstein 470ef492b3 Revert "Removed const from register declaration"
This reverts commit c569dcce79.
2020-08-14 12:03:25 -04:00
George Beckstein c569dcce79 Removed const from register declaration 2020-08-13 16:50:03 -04:00
jeromecoutant 8165bca233 STM32G0 review and test 2020-08-13 15:49:50 -04:00
Pavel Slama ab6fd6e1eb add D13 pin 2020-08-13 15:49:50 -04:00
Pavel Slama 25ea7be2ff add NUCLEO_G031K8 target 2020-08-13 15:49:50 -04:00
Pavel Slama e3d26ed888 delete LED2-4 and buttons 2020-08-13 15:49:50 -04:00
George Beckstein 16ac412807 Add NUCLEO_G031K8 target configuration 2020-08-13 15:49:50 -04:00
jeromecoutant c96eb2cd0e STM32 rename TOOLCHAIN_ARM_STD into TOOLCHAIN_ARM 2020-05-15 10:41:28 +02:00
jeromecoutant a1c159e0b5 STM32 GCC Unspecified RTOS error 2020-03-24 17:32:13 +01:00
jeromecoutant 2368a07244 STM32: Fix the UART RX & TX data reg bitmasks 2020-02-07 16:23:50 +00:00
jeromecoutant 9448ded044 STM32G0: Update G071xx toolchain files with default files 2020-01-07 17:00:30 +01:00
jeromecoutant cf2dfcbc60 STM32G0: introduction of G030/G031/G041/G070/G081 sub-families 2020-01-07 16:07:18 +01:00
jeromecoutant 57f144ec66 STM32G0: remove MBED patch
Goal is to remove all mis-aligment with official ST CUBE delivery
2020-01-07 16:05:34 +01:00
jeromecoutant 631ed0c0b3 STM32G0: move us_ticker_data.h file to family level 2020-01-07 16:02:08 +01:00
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
Alexandre Bourdiol 7c52aa59ec TARGET_STM: add support of board NUCLEO_G071RB 2019-12-12 14:00:04 +01:00