Commit Graph

820 Commits (e4b03a157739050f626073a925882677cb2a07aa)

Author SHA1 Message Date
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 ced4aa6e2d
Merge pull request #13939 from jeromecoutant/PR_LSEDRIVE
STM32: LSE DRIVE feature update
2020-11-24 14:13:52 +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
jeromecoutant 29af76fcca STM32: LSE DRIVE feature update 2020-11-20 17:31:26 +01: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 a918ba4cba CMake: add STM32F4 targets 2020-11-17 14:00:04 +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
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
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
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 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 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 f1a3d690c7 CMake: Fix WIO_3G scatter file shebang to work with ARM Compiler 6 2020-11-06 17:25:18 +00:00
Hugues Kamba 53d712849a CMake: Add support for WIO_3G target 2020-11-06 17:25:15 +00:00
jeromecoutant 5cd353306b STM32F4 FLASH update
Add critical section in
- flash_erase_sector and
- flash_program_page
to make FLASH erase procedure interrupt safe
(can occur with Ethernet)
2020-11-05 17:46:18 +01:00
Martin Kojtal 2d01a4412d
Merge pull request #13723 from boraozgen/feature/f412xg-crash-ram
Add crash RAM to STM32F412xG
2020-10-16 09:10:55 +01:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
jeromecoutant ee09ae904d STM32F4: align F412 and F411 linker scripts 2020-10-09 10:28:28 +02:00
Bora Özgen abb5b1221f
Merge branch 'master' into feature/f412xg-crash-ram 2020-10-09 08:52:26 +02:00
Bora Özgen 8c9d38f12a Align ARMC linker script with GCC 2020-10-09 08:48:55 +02:00
Bora Özgen 0c3879a553 Add crash RAM to STM32F412xG 2020-10-06 16:48:42 +02:00
Martin Kojtal 1f868f96de
Merge pull request #13646 from boraozgen/bugfix/system-clock-weak
Make STM32F412xG system_clock.c functions weak
2020-09-30 16:01:02 +01:00
Bora Özgen 011cd19175 Remove weak statement for HSI clock config 2020-09-23 10:59:00 +02:00
Bora Özgen 401a6b4f2b Apply review suggestions 2020-09-21 14:52:22 +02:00
Bora Özgen 9623d4e7fc Make system_clock.c functions weak 2020-09-21 13:51:29 +02:00
Bora Özgen 9b56a4cb82 Patch STM32F4 HAL to fix F412XG USART3 issue 2020-09-21 13:27:20 +02: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
Leon Lindenfelser 622b7cfc60 Add MBED_APP_START & MBED_APP_SIZE check/set to MTS_MDOT_F411RE arm linker 2020-08-20 10:21:12 -05:00
Leon Lindenfelser aa2c80fa52 Update MTS_DRAGONFLY_F411RE linker files for removed post_binary_hook 2020-08-19 16:09:44 -05:00
Rajkumar Kanagaraj 2add7064ec Update astyleignore and source code comment 2020-07-27 10:04:01 -07:00
Martin Kojtal 7b5a8d37b5
Merge pull request #12966 from MultiTechSystems/update-df413-onoff
DRAGONFLY_F413RH: Update power on and power off functionality
2020-06-16 13:54:01 +02:00
jeromecoutant 713618abe0 STM32F4 baremetal support 2020-06-09 10:25:41 +02:00
Pavel Slama 9d7e55b3f3 move system_clock.c to the root 2020-05-19 13:33:55 +02:00
Pavel Slama 1fc9561af7 STM32F412 bypass PLL configuration when already done by bootloader 2020-05-19 11:48:56 +02:00
Leon Lindenfelser b8554a3f26 Update power on and power off functionality
Implement soft_power_on/off() and hard_power_on/off() to perform as described in mbed-os CellularDevice API.
2020-05-18 08:11:40 -05:00
jeromecoutant c96eb2cd0e STM32 rename TOOLCHAIN_ARM_STD into TOOLCHAIN_ARM 2020-05-15 10:41:28 +02:00
jeromecoutant 303752ad84 STM32 remove all TOOLCHAIN_ARM_MICRO 2020-05-15 09:37:40 +02:00
Marcelo Salazar 149656447d Remove target dep. on S2LP driver 2020-05-14 17:17:27 +01:00
jeromecoutant dd46dfccb2 STM32F4 code cleaning 2020-05-14 13:55:22 +02:00
Martin Kojtal 6950e78fcb
Merge pull request #12945 from malavikasajikumar/SDPK1-PinNames
Cleaning up PinNames.h for SDP-K1 board.
2020-05-12 14:26:41 +02:00
Martin Kojtal 053af2d31c
Merge pull request #12856 from hugueskamba/hk_remove_uarm_st_boards
ST Boards: Remove uARM tooolchain support
2020-05-12 13:27:30 +02:00
Malavika Sajikumar 74bd04f381 Cleaning up PinNames.h for SDP-K1 board.
Added pin description comments to Arduino header pins and LED4.
Added I2C alias names.
Removed Oscillator and DEBUG pin definitions.
Use USBTX and USBRX for serial communications back to PC. Do not use STDIO_UART_TX and STDIO_UART_RX
2020-05-07 14:44:53 -07:00
Marcelo Salazar 4083469d09 Remove Ublox targets 2020-05-06 16:39:29 +01:00