Commit Graph

3088 Commits (add_led_button_target_config)

Author SHA1 Message Date
jeromecoutant 4e9ef595c3 DISCO_L475VG_IOT01A: enable PinMap_GPIO[] 2021-04-16 12:37:49 +02:00
jeromecoutant 297522b35e STM32: enable PinMap_GPIO table with GPIO_PINMAP_READY
If GPIO_PINMAP_READY is defined for the target,
- PinMap_GPIO table is expected in PeripheralPins.c
- weak gpio_get_capabilities function is implemented
2021-04-16 12:35:40 +02:00
Martin Kojtal 32d1c99d3c
Merge pull request #14480 from jeromecoutant/PR_STM32_STANDARD
STM32: Standard Pin Names
2021-04-15 17:30:50 +02:00
Martin Kojtal dd1da3da40
Merge pull request #14469 from jeromecoutant/PR_FLASH_PROGRAM
STM32: remove critical sections in flash_program_page
2021-04-14 20:15:11 +02:00
jeromecoutant 992591e774 STM32WL: standard pin names 2021-04-14 11:18:43 +02:00
jeromecoutant 65a96c57a2 STM32WB: standard pin names 2021-04-14 11:18:43 +02:00
jeromecoutant 768037c05e STM32L5: standard pin names 2021-04-14 11:18:43 +02:00
jeromecoutant 8e3c5f11d4 STM32L4: standard pin names 2021-04-14 11:18:22 +02:00
jeromecoutant a5878f45c3 STM32L1: standard pin names 2021-04-14 10:30:04 +02:00
jeromecoutant baa558685c STM32L0: standard pin names 2021-04-14 10:30:03 +02:00
jeromecoutant 68b620bdc2 STM32H7: standard pin names 2021-04-14 10:30:03 +02:00
jeromecoutant ede1741e55 STM32G4: standard pin names 2021-04-14 10:30:03 +02:00
jeromecoutant bd43397f12 STM32G0: standard pin names 2021-04-14 10:29:56 +02:00
jeromecoutant fc54542cf0 STM32F7: standard pin names 2021-04-14 10:23:29 +02:00
jeromecoutant 2323d227fe STM32F4: standard pin names 2021-04-14 10:23:29 +02:00
jeromecoutant 25e85f9fcf STM32F3: standard pin names 2021-04-14 10:23:29 +02:00
jeromecoutant 63ce075fa8 STM32F2: standard pin names 2021-04-14 10:23:29 +02:00
jeromecoutant 69a7e3eeff STM32F1: standard pin names 2021-04-14 10:23:28 +02:00
jeromecoutant d21ff75e39 STM32F0: standard pin names 2021-04-14 10:23:28 +02:00
jeromecoutant 3a772baab2 STM32: STM32_gen_PeripheralPins.py v1.20
- standard pin compatible
2021-04-14 10:23:28 +02:00
Martin Kojtal 8b8f4e52a0
Merge pull request #14521 from AnishKumarHCL/pwm_gpiopull_fix
Updated TARGET_STM32 board  pinMap_PWM table with GPIO_NOPULL
2021-04-14 09:54:22 +02:00
reme a1055f5add README update STM32F3 to CUBE V1.11.2 2021-04-14 08:19:40 +01:00
reme 285e3e2bb7 STM32F3 update drivers version to CUBE V1.11.2 2021-04-14 08:19:39 +01:00
reme 283bf81d9f Readme update STM32G0 to CUBE V1.4.1 2021-04-13 13:46:51 +02:00
Martin Kojtal 38796d0a88
Merge pull request #14424 from 0xc0170/fix-wio-bg96-cellular
WIO_BG96: fix macro exclusion - use cellular
2021-04-12 16:17:54 +02:00
reme 428cd9c217 STM32G0 update drivers version to CUBE V1.4.1 2021-04-09 08:53:49 +02:00
Anish Kumar 780d7c4a00 Updated TARGET_STM32 PeripheralPins.c and PeripheralPinMaps.h Replaced GPIO_PULLUP with GPIO_NOPULL in PinMap_PWM table 2021-04-08 18:42:01 +05:30
Anish Kumar 44be594792 Modified STM32_gen_PeripheralPins.py replaced GPIO_PULLUP with GPIO_NOPULL in print_pwm function 2021-04-08 18:13:50 +05:30
Anish Kumar d8d19b186d removed pin_mode api call from pwmout_init_direct api 2021-04-08 18:13:10 +05:30
Martin Kojtal 160b32ae0e
Merge pull request #14259 from rotu/G431RB
Support STM Nucleo-G431RB
2021-04-08 09:21:23 +02:00
Martin Kojtal 84e5f1e03e
Merge pull request #14479 from chrJost/USB_STM32L1
STM32L1: enable USBDEVICE
2021-04-07 10:23:06 +02:00
Martin Kojtal 0075eeab6b
Merge pull request #14482 from jeromecoutant/PR_L4_SYSCLOCK
STM32L4: align all system_clock files
2021-04-07 10:22:50 +02:00
Martin Kojtal 7328e588f1
Merge pull request #14485 from boraozgen/feature/stm32-rtc-hse-review
STM32: RTC HSE support review changes
2021-04-07 09:38:44 +02:00
Martin Kojtal dce643be92
Merge pull request #14478 from jeromecoutant/PR_L1_ADC_DEEP
STM32L1 : enable ADC after deepsleep
2021-04-07 09:38:30 +02:00
Bora Özgen c16a51d87c STM32 RTC: Apply review changes for HSE support
* Remove unused code
* Fix supported target families
* Add preprocessor error for wrong LPTICKER configuration
2021-04-06 13:45:52 +02:00
reme 38922dee68 README update STM32F1 to CUBE V1.8.3 2021-04-01 16:05:41 +02:00
reme e523617360 UPDATE STM32CubeF1 with v1.8.3 2021-04-01 09:18:43 +02:00
jeromecoutant 80fed0b442
NUCLEO_G431RB: pin standard 2021-03-30 14:23:43 -05:00
Dan Rose 1c2986a72e
rename USBRX -> CONSOLE_RX 2021-03-29 13:50:49 -05:00
Dan Rose f7e628d191
switch to new target naming conventions 2021-03-29 13:50:49 -05:00
Dan Rose 3292d0501a
Support Nucleo G431RB 2021-03-29 13:50:49 -05:00
Anna Bridge 616f0b7387
Merge pull request #14445 from jeromecoutant/PR_WB_WATCHDOG
STM32WB/STM32WL: watchdog LSI frequency
2021-03-29 11:23:42 +01:00
Anna Bridge b91a705e74
Merge pull request #14444 from jeromecoutant/PR_GPIO_FREE
STM32: reset GPIO value is analog mode
2021-03-29 11:23:15 +01:00
jeromecoutant 1a27351582 STM32L4: align all system_clock files 2021-03-29 09:32:26 +02:00
Jost, Chris 29943181bb enable USBDEVICE on STM32L1 series, except for XDOT_L151CC 2021-03-26 16:53:04 +01:00
Anna Bridge 7f6ff7e61b
Merge pull request #14434 from jeromecoutant/PR_WB_I2C
STM32 I2C : correct deinit
2021-03-26 15:25:48 +00:00
jeromecoutant a60b985c8d STM32L1 : enable ADC after deepsleep 2021-03-26 14:03:49 +01:00
jeromecoutant d0ea0466ad STM32: remove critical sections in flash_program_page 2021-03-24 17:40:18 +01:00
George Psimenos 61cfaa15cd Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
Martin Kojtal f00ce59769
Merge pull request #14243 from boraozgen/feature/stm32-rtc-hse
STM32: Add HSE support to RTC
2021-03-22 10:57:28 +01:00
Martin Kojtal 83adad9609
Merge pull request #14421 from jeromecoutant/PR_SDPUSB
SDP-K1: enable IAR compilation
2021-03-22 10:57:08 +01:00
Martin Kojtal 6a252875c7
Merge pull request #14429 from hugueskamba/hk_cmake_fix_st_build_error
CMake: Fix STM target build failures
2021-03-22 10:45:46 +01:00
George Psimenos 2322f1dd7a Remove unused NUCLEO_H743ZI target files 2021-03-18 17:01:54 +00:00
George Psimenos ec7e00a780 Add target markers to new PinNames.h files 2021-03-18 17:01:54 +00:00
jeromecoutant e602adb080 [STD-PIN] STM32H7: standardized pins 2021-03-18 17:01:54 +00:00
jeromecoutant eafaca379e [STD-PIN] STM32L5: standardized pins 2021-03-18 17:01:53 +00:00
jeromecoutant bb7d0391a4 [STD-PIN] STM32L4: standardized pins 2021-03-18 17:01:53 +00:00
George Psimenos 885cdef5f7 Add standard pin-names validation script & tests 2021-03-18 17:01:53 +00:00
jeromecoutant 5e50e3b19b [STD-PIN] enable "ARDUINO_UNO" for B_L4S5I_IOT01A 2021-03-18 17:01:50 +00:00
jeromecoutant a4350f72bd [STD-PIN] BUTTON and LED define
hal/tests/TESTS/mbed_hal/gpio/main.cpp is replaced by
hal/tests/TESTS/pin_names/generic/main.cpp now
2021-03-18 17:01:50 +00:00
jeromecoutant a6c213bb10 [STD-PIN] Replace STDIO_UART_TX by USBTX 2021-03-18 17:01:50 +00:00
jeromecoutant 3c2088a45f STM32WB/STM32WL: watchdog LSI frequency
Value from DataSheet
2021-03-18 15:45:47 +01:00
jeromecoutant 21dcebb58d STM32 OSPI/QSPI : correct GPIO free 2021-03-18 14:53:00 +01:00
jeromecoutant 7203125827 STM32 ANALOGOUT : correct GPIO free 2021-03-18 14:53:00 +01:00
jeromecoutant 73239b6a99 STM32 SPI : correct GPIO free 2021-03-18 14:52:59 +01:00
jeromecoutant 20e9235a26 STM32 SERIAL : correct GPIO free 2021-03-18 14:52:59 +01:00
jeromecoutant 10e0759372 STM32 PWM : correct GPIO free 2021-03-18 14:52:59 +01:00
jeromecoutant 34f02ff573 STM32 I2C : correct deinit
Set port mode back to Analog (reset value)
2021-03-16 15:05:37 +01:00
Hugues Kamba ff0756d338 CMake: Fix STM target build failures
Ensure the linker and startup files listed match
with the correct letter case as some host systems
are case sensitive.
2021-03-15 14:11:23 +00:00
Martin Kojtal e3c8878d59 WIO_BG96: fix macro exclusion - use cellular
This depends on cellular drivers not netsockets (it works because both are present in
the system, not true when you use CMake).
2021-03-12 15:28:36 +00:00
Bora Özgen 257e466d6c Add RTC clock source selection to targets.json 2021-03-12 15:34:13 +01:00
Bora Özgen 25a0aee77e Support RTC from HSE only for STM32F2/3/4 2021-03-12 15:33:28 +01:00
Bora Özgen 4d1161b689 Add HSE support to STM32 RTC 2021-03-12 15:33:27 +01:00
Martin Kojtal a63bd12706
Merge pull request #14416 from hugueskamba/hk_cmake_fix_ff1705-l151cc
CMake: Fix FF1705_L151CC build
2021-03-12 13:26:41 +00:00
Marek Czerski f64e64dc9d STM32: AnalogOut: do not call HAL_DAC_Start in dac_write
dac_write (used by AnalogOut.write) calls HAL_DAC_Start
every time. It is required to call HAL_DAC_Start only once.
HAL_DAC_Start uses internally HAL_Delay(1) making AnalogOut
not suitable for use in high speed application.
This change removes call to HAL_DAC_Start in dac_write and
moves it to analogout_init.
2021-03-12 09:56:41 +01:00
Martin Kojtal eec320c991
Merge pull request #14339 from jeromecoutant/PR_F4_1260
STM32F4 update drivers version to CUBE V1.26.0
2021-03-11 17:14:28 +00:00
jeromecoutant 2823fe0275 SDP-K1: enable IAR compilation 2021-03-11 15:53:28 +01:00
Hugues Kamba 9b11ed4144 CMake: Fix FF1705_L151CC build
Add the missing CMake target to build BSP for the
FF1705_L151CC Mbed board
2021-03-11 12:30:54 +00:00
Martin Kojtal 5326e30961
Merge pull request #14293 from jeromecoutant/PR_CMAKE_ALIGN
STM32L4 : align CMakeLists.txt with all STM32
2021-03-11 08:56:06 +00:00
jeromecoutant c41ea5f723 STM32F4: STM32Cube_FW_F4_V1.26.0 - Subfamilies 2021-03-10 08:45:49 +01:00
jeromecoutant 021aa009b8 STM32F4: STM32Cube_FW_F4_V1.26.0 - STM32Cube_FW 2021-03-10 08:45:48 +01:00
jeromecoutant 338e37abee STM32F4: license header alignment 2021-03-10 08:45:47 +01:00
jeromecoutant de27e83302 STM32F4: move common files 2021-03-10 08:45:47 +01:00
jeromecoutant 82a31782ec STM32F4: move TARGET_MTS_MDOT_F411RE info STM32F411xE 2021-03-10 08:45:46 +01:00
jeromecoutant bccef1a6eb STM32F4: move TARGET_MTS_DRAGONFLY_F411RE info STM32F411xE 2021-03-10 08:45:45 +01:00
jeromecoutant 3d1d3b76bb STM32F4: align CMakeLists.txt for all families 2021-03-10 08:45:45 +01:00
Martin Kojtal 0e89f9d6d9
Merge pull request #14337 from jeromecoutant/PR_STM32L1_1102
STM32L1 update drivers version to CUBE V1.10.2
2021-03-09 17:37:58 +00:00
jeromecoutant 1eb16d1f25 STM32 : gpio_reset_at_init disabled with MBED_DEBUG 2021-03-09 12:33:25 +01:00
jeromecoutant 898439930a STM32L1 : license header alignment 2021-03-09 12:33:25 +01:00
jeromecoutant 30c843ede7 STM32L1 : STM32Cube_FW 1.10.2 2021-03-09 12:33:16 +01:00
jeromecoutant 6b57fd48a8 STM32L1 : targets restructuration
- alignment with other STM32 families
2021-03-09 12:32:42 +01:00
jeromecoutant 95ebb3d7b6 STM32L1 : directory restructuring 2021-03-09 12:32:42 +01:00
jeromecoutant 806417853d STM32WB: enable QSPI for custom boards 2021-03-08 16:51:53 +01:00
Martin Kojtal e37f7a67f2
Merge pull request #14351 from ladislas/ladislas/stm32f7/use_callbacks
STM32 - Add if !defined check for USE_HAL_XXX_REGISTER_CALLBACKS
2021-03-08 11:08:45 +00:00
Harrison Mutai da73b4bf8d CMake: Refactor target MCU_STM32F103xE library name 2021-03-04 15:37:47 +00:00
Martin Kojtal 876032b818
Merge pull request #14338 from jeromecoutant/PR_README_CLOCK
STM32: update readme with clock information
2021-03-03 08:54:26 +00:00
Martin Kojtal 1e3834325f
Merge pull request #14303 from ycsin/master
Add STM32F103xE SOC support
2021-03-02 16:43:38 +00:00
Ladislas de Toldi b12481b3c3
STM32WB - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:20:11 +01:00
Ladislas de Toldi c68c210a47
STM32L5 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:19:17 +01:00
Ladislas de Toldi 40120e6036
STM32L4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:18:24 +01:00
Ladislas de Toldi 2c1d37e4a5
STM32L0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:17:14 +01:00
Ladislas de Toldi 8361fda30f
STM32H7 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:16:37 +01:00
Ladislas de Toldi 1d4742e8c3
STM32G4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:15:47 +01:00
Ladislas de Toldi 09457e2cf8
STM32G0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:14:50 +01:00
Ladislas de Toldi 758d4c4245
STM32F3 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:13:52 +01:00
Ladislas de Toldi ea9eb73cc8
STM32F2 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:12:43 +01:00
Ladislas de Toldi aa30a254a9
STM32F1 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:10:21 +01:00
Ladislas de Toldi 1732c136da
STM32F0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:08:59 +01:00
Ladislas de Toldi 143176b8c4
STM32F4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:06:48 +01:00
Ladislas de Toldi e1aa00ee76
STM32F7 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:06:41 +01:00
Jost, Chris 96c31e15da fixed copy paste errors 2021-02-24 14:41:04 +01:00
jeromecoutant 8987aed3e8 STM32L4: align CMakeLists.txt for all families 2021-02-24 12:20:58 +01:00
jeromecoutant 0c7b4d7801 STM32: update readme with clock information 2021-02-24 11:15:17 +01:00
Jost, Chris cb032d2365 enable USBDEVICE for STM32L5 2021-02-24 10:21:54 +01:00
Martin Kojtal 88a242f749
Merge pull request #14306 from hugueskamba/hk_cmake_create_cmsis_cortex_libs
CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
2021-02-23 08:36:49 +00:00
Martin Kojtal da51cb2185
Merge pull request #14318 from harmut01/example_build_errors
CMake: Fix path to STM32F0 GCC linker scripts
2021-02-23 08:36:27 +00:00
Martin Kojtal 7b6c7cc2ad
Merge pull request #14295 from 0xc0170/cmake-remove-iar
CMake remove IAR references in the tree
2021-02-22 20:10:40 +00:00
Harrison Mutai 5899dd0bc7 Fix path to GCC linker scripts
The linux filesystem is case sensitive, this was causing our nightly build to
fail when attempting to find the script with its lower case name. The
name of the file has been kept the same as this seems to be STMs
convention.
2021-02-22 14:07:52 +00:00
Yong Cong Sin d458f24680
Remove custom board from CMakeLists.txt 2021-02-20 18:27:38 +08:00
Hugues Kamba 11a445be95 CMake: Fix STM32F091XC Mbed targets GCC_ARM build
The linker file for the GCC_ARM toolchain was not
correctly listed.
2021-02-19 20:28:25 +00:00
Hugues Kamba 2c3481297c CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 13:39:32 +00:00
Yong Cong Sin d81f520073 Divide HSE by 2 if the external XTAL used is 16 MHz 2021-02-19 15:35:47 +08:00
Yong Cong Sin a36d006b7c Add STM32F103xE SOC support 2021-02-19 10:57:34 +08:00
Martin Kojtal 85c2d7a25c CMake: remove IAR references as they are not supported 2021-02-17 09:19:03 +00:00
Martin Kojtal 1dd411268b
Merge pull request #14030 from arduino/i2c_stm32_wrong_clock
STM32H7: Compute I2C timing according current I2C clock source
2021-02-15 14:38:11 +00:00
Robert Walton fd63d33521 CMake: Fix STM32G0 target 2021-02-15 11:16:49 +00:00
Robert Walton 91db89143e Fix FF1705_L151CC target 2021-02-15 11:06:43 +00:00
Robert Walton ed4027edf0 Fix STM32F103xB target 2021-02-15 11:06:43 +00:00
Robert Walton c82c897e2b Fix STM32F072xB target 2021-02-15 11:06:43 +00:00
Robert Walton f2f927ebac Fix NUCLEO_H743ZI2 target 2021-02-15 11:05:07 +00:00
Robert Walton f6302dc108 Fix NUCLEO_L496ZG_P target 2021-02-15 11:05:07 +00:00
Robert Walton 956a8790c1 Fix DISCO_L4R9I target 2021-02-15 11:05:07 +00:00
Martin Kojtal fa62e80958
Merge pull request #14249 from jeromecoutant/PR_STM32WL_LORA
STM32WL : add LoRa support
2021-02-15 11:04:00 +00:00
Martin Kojtal 34627b7d53
Merge pull request #14280 from hugueskamba/hk_cmake_refactor_wiced
CMake: Refactor WIO_EMW3166 support
2021-02-15 10:28:12 +00:00
Martin Kojtal 5e094fe040
Merge pull request #14245 from jeromecoutant/PR_WL
STM32WL: I2C and ADC full support
2021-02-15 08:46:13 +00:00
Hugues Kamba d7a7d44b4b CMake: Refactor WIO_EMW3166 support
Ensure WICED is included for Mbed targets that require it.

This also 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-12 16:11:31 +00:00
Robert Walton ab7a530506 Fix NUCLEO_L4R5ZI_xx targets 2021-02-11 09:33:21 +00:00
Robert Walton f73e154a12 Fix NUCLEO_L073RZ target 2021-02-11 09:33:21 +00:00
Robert Walton e8227f5be7 Fix PORTENTA_H7_xx targets 2021-02-11 09:33:21 +00:00
Robert Walton 6a737ac58d Fix DISCO_H747I_xx targets 2021-02-11 09:33:21 +00:00
Robert Walton a297a6145e Add library for NUCLEO_G431KB 2021-02-11 09:33:21 +00:00
Martin Kojtal fdef59fc10 CMake STM32H7: fix disco m4/m7 targets 2021-02-10 15:32:49 +00:00
Martin Kojtal 2d3bf3fd34 CMake STM32: fixing prefixes in the targets 2021-02-10 15:23:22 +00:00
Martin Kojtal 6bf459e3ce CMake STM32: fix mbed-stm linking libs names 2021-02-10 12:24:10 +00:00
Martin Kojtal ef98060d94 CMake STM32: fix missed targets with prefix 2021-02-10 12:14:49 +00:00
Martin Kojtal 00e83ce6e2 CMake STM32: fix missing mbed for some nucleo targets 2021-02-10 10:56:04 +00:00
Martin Kojtal b3181a102c CMake STM32: fix search and replace errors 2021-02-10 09:32:55 +00:00
Martin Kojtal 544e5b94c3 CMake STM32: fix targets naming
Follow the naming for other CMake targets, using prefix mbed-, lower case with dashes
2021-02-09 17:07:44 +00:00
jeromecoutant 699edff47e STM32WL LORA : add readme 2021-02-09 11:57:04 +01:00
jeromecoutant cc26ebc21e STM32WL LORA : cmakelist 2021-02-09 10:01:17 +01:00
jeromecoutant 4550f92565 STM32WL : I2C full support 2021-02-08 17:19:05 +01:00
jeromecoutant 96e6d8bb7b STM32WL : ANALOGOUT full support 2021-02-08 17:19:05 +01:00
jeromecoutant c80ac26f7a STM32WL : ANALOGIN full support 2021-02-08 17:19:05 +01:00
reme 470e98ed1f STM32WL : ADDING NUCLEO STM32WL55JC SUPPORT
Add code concerning all STM32WL55JC platforms
- system clock, pin and peripheral definition
  mbedtools make file

Modify CmakeList to adapt to mbedtools evolution
2021-02-08 09:42:50 +00:00
reme 4c35eb33ed STM32WL : ADDING STM32WL55xC SUPPORT
Add code concerning all STM32WL55xC platforms
- Scatter loader and start-up files for
  ARM, GCC and IAR compilers.
- cmsis file
- Update CMakeLists.txt due to mbtools evolution
2021-02-08 08:27:24 +00:00
reme 91e7676cc4 STM32WL : ADDING STM32WL SUPPORT
Add code concerning all STM32WL platforms
- STM32 Cube Firmware

Update CMakeLists.txt due to mbedtools evolution
2021-02-08 08:22:19 +00:00
pennam dc2d8607a3 Fixed __HAL_RCC_GET_I2C4_SOURCE() if RCC_VER_2_0 is used 2021-02-05 09:10:42 +01:00
reme 5a2835c18c STM32WL : ADDING STM32 SUPPORT
Add code concerning all STM32 platforms
2021-02-05 08:04:31 +00:00
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
pennam d059feefe0 Added i2c_device.c to CMakeLists.txt 2021-02-03 15:18:33 +01:00
Martin Kojtal 7135c6545a
Merge pull request #14215 from flippy84/master
STM: Fix Hal_GetTick wrap around errors
2021-02-03 14:17:59 +00:00
Martin Kojtal 78bbe274f1
Merge pull request #14203 from kylejansen/sdpk1-usb
Adding USB HS Support to the SDP-K1
2021-02-03 14:17:43 +00:00
pennam 6db7342cf6 manage I2C_IP_VERSION_V1 boards builds 2021-02-03 15:14:42 +01:00
pennam d968b17e76 code style fix 2021-02-03 14:18:07 +01:00
Andreas Carlsson 38b9e8ee5f STM: prevent task switch errors in HAL_GetTick 2021-02-03 09:42:15 +01:00
rogeryou 0db8da1152 modify for the RWW function of Macronix Flash 2021-02-01 17:55:45 +08:00
pennam 506390bcf8 Increase FLAG_TIMEOUT to avoid misleading triggers 2021-02-01 09:13:33 +01:00
pennam 7544f7ef24 Use the proper clock source for any I2C instance 2021-02-01 09:13:21 +01:00
pennam 28a3475c5c STM32: Compute I2C timing according current I2C clock source and required I2C clock 2021-01-31 14:02:01 +01:00
kylejansen c401b61c09 Adding USB HS Support to the SDP-K1 2021-01-27 16:50:37 +00:00
Tauno Magnusson dc969ba1d9 After checking other parts of the code (trng_api.c and a few other board platforms (NUCLEO_F413ZH, ...)) it appears that even though the reset value defaults correctly it may be good practice to keep the HAL_RCCEx_PeriphCLKConfig statement that selects the HSI48CLK as source for USB/RNG. 2021-01-26 03:51:49 +01:00
Tauno Magnusson 21176e903a Removed the HAL_RCCEx_PeriphCLKConfig statement that was selecting the HSI48 CLK for USB. Assumption is that the STM32G4 reset value (defaults to HSI48 selected for USB) is preserved throughout Mbed initialization. 2021-01-26 03:27:37 +01:00
Tauno Magnusson 80f0a378fb Updated to enable HSI48 Clock also for USBDEVICE define in targets.json. Also added so that the CK48 Clock Mux selects HSI48 for both RNG and USB. Without these the RNG/USB will be clocked at PLLQ (170 MHz) and not work. 2021-01-26 02:51:03 +01:00
Tauno Magnusson 99d21b6a92 Fixed whitespaces (a tab that should be spaces) 2021-01-26 01:21:46 +01:00
Tauno Magnusson fa0474239b Autogenerated file using 'python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -t M40_Nucleo_NUCLEO-G431KB'. Had to do some modifications since the autogenerated files contained errors. 2021-01-24 04:25:42 +01:00
Tauno Magnusson f871eff405 Reverted to a pure copy of 474RE system_clock.c since it was updated with RNG clock fixes. Removing USB Clock enablement (USB will not work out-of-the box but will require users to modify system_clock.c to enable its clock) - this inline with changes to targets.json where I removed the USBDEVICE define 2021-01-24 03:18:06 +01:00
Tauno Magnusson 173cc1fe29 Cleaning out workaround patches for G431KB now that Flash Bank Switching has been fixed on G4xxx level (ARMmbed/mbed-os patch #14149) 2021-01-24 02:44:09 +01:00
Tauno Magnusson e4fb7402c3 Fixed a typo (incorrectly referring to G474RE instead of G431KB) 2021-01-24 02:41:18 +01:00
Tauno Magnusson 3ff04fa81e Cleaned up and verified file 2021-01-24 02:15:22 +01:00
Tauno Magnusson 1389b1ac9d Adding CMakeLists.txt files for NUCLEO_G431KB 2021-01-24 02:15:21 +01:00
Tauno Magnusson 0368cab27b Add: Added STM32G4 series to LP USB list 2021-01-24 02:15:21 +01:00
Tauno Magnusson d720792191 G431 only has 1 Flash Bank. Code is written with the assumption all G4 devices has 2 Flash Banks. Fix: Commented out SYSCFG_MEMRMP_FB_MODE since stm32g431KB only has 1 Flash Bank. flash_api.c checks for this #define and if it's set understands it as if the chip has 2 flash banks. STM32G4xx_HAL_Driver/stm32g4xx_hal.c also needs to check for this #define since it has flash bank swapping commands that are called in the startup sequence. Fix: Check for SYSCFG_MEMRMP_FB_MODE in Enable/Disable Flash bank swapping. 2021-01-24 02:15:21 +01:00
Tauno Magnusson 98e48828b1 Fix: Added ALIGN(8) for __etext section. This existed in mbed-6.3.0 version. I have not verified if it is truly needed, but it is better to err on the safe side. 2021-01-24 02:15:21 +01:00
Tauno Magnusson 5bd272aabc Adding support for NUCLEO_G431KB. Created this file based on G474RE file. Added support for USB - connected the HSI48 clock to USB (and RNG). Warning: I'm assuming Flash latency is the same as for G474RE. 2021-01-24 02:15:21 +01:00
Tauno Magnusson 70bd5b916d Adding support for NUCLEO_G431KB. Created this file based on G474RE. I have done a decent effort to port it / check it. However - Warning - Not everything is verified the the G431 Spec Sheets. 2021-01-24 02:15:21 +01:00
Tauno Magnusson 936467ebab Adding support for NUCLEO_G431KB. Created this file based on G474RE. Fully verified with Spec Sheets 2021-01-24 02:15:21 +01:00
Martin Kojtal 5f541b22d0
Merge pull request #14142 from hugueskamba/hk_heap_size_fix_stm32l4
STM32L4: Correct heap size formula
2021-01-20 14:58:45 +00:00
Martin Kojtal f7d1f18a80
Merge pull request #14144 from sstaub/STM32-Arduino-Pinnames
Update for Arduino Pinnames
2021-01-20 08:34:56 +00:00
Martin Kojtal 6969140110
Merge pull request #14023 from kylejansen/sdpk1-qspi
Adding QSPI support to SDP-K1 board support package.
2021-01-20 08:34:38 +00:00
Martin Kojtal 8dc27fd84e
Merge pull request #14154 from jeromecoutant/PR_STM32_CMAKE
STM32: correct cmake compilation issues
2021-01-19 09:22:49 +00:00
Martin Kojtal c4c28773aa
Merge pull request #14149 from jeromecoutant/PR_G4
STM32G4: enable TRNG and correct dual bank flash detection
2021-01-19 09:19:37 +00:00
Martin Kojtal 95a524ae25
Merge pull request #14145 from arduino/config_sd_transceiver
STM32H7: disable uSD transceiver
2021-01-18 08:49:02 +00:00
Martin Kojtal eff0d4c8b9
Merge pull request #14032 from jeromecoutant/PR_RESET_GPIO
STM32: RESET GPIO during init is configurable
2021-01-15 15:49:11 +00:00
jeromecoutant 1bbceb48f0 STM32 / CMAKE / targets : correct CMakeLists.txt files 2021-01-15 15:11:16 +01:00
Martin Kojtal aef93ca7c9
Merge pull request #14020 from pea-pod/stm-spi-more-bits
Add SPI bitwidths to ST targets where supported
2021-01-15 10:01:28 +00:00
Martin Kojtal 2e905a0060
Merge pull request #14104 from hugueskamba/hk_cmake_fix_STM32F413xH_sysclock_listing
CMake: Fix the listing of system_clock.c for STM32F413xH
2021-01-14 17:16:34 +00:00
jeromecoutant 61d00d858f STM32G4: dual bank FLASH detection 2021-01-13 16:45:03 +01:00
jeromecoutant eb627788ca STM32G4: TRNG enabled
+ some cleanup/optimisation in SetSysClock
2021-01-13 16:44:57 +01:00
Hugues Kamba 24132695e3 These targets have a different memory layout,
they have two RAMs at two distinct locations:

RAM1 (address: MBED_RAM_START, size: MBED_RAM_SIZE):
* stack
* heap
* some part of static memory

RAM2 (address: MBED_IRAM2_START, size: MBED_IRAM2_SIZE):
* remaining part of static memory starting at MBED_IRAM2_START
* crash report
* vector
2021-01-13 12:46:35 +00:00
pennam df4e397004 STM32H7: disable uSD transceiver 2021-01-13 11:13:15 +01:00
Stefan Staub c3dca94b78 Update for Arduino Pinnames 2021-01-12 22:43:42 +01:00
jeromecoutant 61059d45e4 STM32F439 : correct cmake compilation 2021-01-11 18:07:58 +01:00
Hugues Kamba 1a90deb608 CMake: Fix the listing of system_clock.c for STM32F413xH
Each variant now has its own system_clock.c file.
Therefore ensure the correct one is added for each variant.
Also reduce the number of CMakeLists.txt file as each
variant does not have significant number of files.
2021-01-11 16:17:46 +00:00
pea-pod e1c754b179 Add SPI bitwidths to ST targets where supported 2021-01-11 07:53:07 -06:00
Martin Kojtal 331cebe5eb
Merge pull request #14133 from hugueskamba/hk_heap_size_fix_stm
STM: Fix heap size formula in scatter files
2021-01-11 13:38:37 +00:00
Martin Kojtal b7c639580f
Merge pull request #14066 from jeromecoutant/DEV_F2
STM32F2 update drivers version to CUBE V1.9.2
2021-01-11 11:27:09 +00:00
Hugues Kamba a3fccf7d21 STM: Fix heap size formula in scatter files
The heap size was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.
2021-01-08 18:18:40 +00:00
Martin Kojtal d0cd5fa5f1
Merge pull request #13826 from arduino/portenta-mainline
Add Arduino Portenta H7 as target
2021-01-05 15:49:44 +00:00
Martino Facchin 62b6cc9a05 cmake: STM32H7: enable PORTENTA* target 2021-01-05 14:49:37 +01:00
jeromecoutant d689e90917 STM32: RESET GPIO during init is configurable
Default value is disabled
2021-01-05 13:56:07 +01:00
Martino Facchin 26f758d83c cmake: STM32H7: fix stm32h747 targets
This needs to be defined for "final" targets not contained in their processor subdirectory
2021-01-04 18:04:03 +01:00
jeromecoutant c4ccccedf5 STM32F2: ST CUBE drivers update V1.6.0 => V1.9.2 2020-12-15 18:06:21 +01:00
jeromecoutant b9a61de109 STM32F2: alignment with other families 2020-12-15 18:06:20 +01:00
jeromecoutant f449a61da6 STM32F2: directory restructuration
Only files move and targets.json updated accordingly
2020-12-15 18:06:20 +01:00
Martino Facchin 04ac8a08b3 STM32H7: FDCAN: use PLL1Q frequency for calculations 2020-12-11 14:10:06 +01:00
Martino Facchin eaa3b0f285 PORTENTA_H7: use default linker/startup scripts 2020-12-11 10:11:55 +01:00
Martino Facchin 5b91a00da3 STM32H747_CM4: add RAM_D3 memory section 2020-12-11 10:11:55 +01:00
Martino Facchin a7a6f2a2c5 [Portenta] Add Cmake rules
Completes #13915
2020-12-11 10:11:54 +01:00
Martino Facchin 84790a038a Add SPDX-License 2020-12-11 10:11:54 +01:00
Martino Facchin 7765f39ca3 Fix missing licenses for Arduino original code 2020-12-11 10:11:54 +01:00
pennam f665f1d391 Portenta: enable ETH power supply 2020-12-11 10:11:53 +01:00
Martino Facchin 3d2d683dee Add Arduino Portenta H7 target 2020-12-11 10:11:53 +01:00
Martino Facchin be2201393c STM32H7: dual core: handle interrupts on CM4 2020-12-11 10:11:52 +01:00
Martino Facchin 3084d15821 STM32H7: DualCore: allow no forced CM4 boot 2020-12-11 10:11:52 +01:00
Martino Facchin c2aa453387 STM32: QSPI: allow setting SAMPLE_SHIFTING mode 2020-12-11 10:11:51 +01:00
Martino Facchin ae35c887f3 STM32H747xI: allow overriding SetSysClock 2020-12-11 10:11:51 +01:00
Martino Facchin f2a01f2ba0 STM32: USBPhy: enable HS clock sleep 2020-12-11 10:11:51 +01:00
kylejansen 06d8d6aaff
Added new line at EoF. 2020-12-10 12:48:38 +00:00
Kyle Jansen 9d1fbf1515 Adding QSPI support to SDP-K1 board support package
Added QSPI support to SDP-K1 BSP. Previous addition wasn't pulled into master.
2020-12-10 11:53:50 +00:00
Martin Kojtal ccd1c65cb8
Merge pull request #14002 from jeromecoutant/PR_F0
STM32F0 update drivers version to CUBE V1.11.2
2020-12-10 11:13:49 +00:00
Martin Kojtal 0169915a71
Merge pull request #13998 from MultiTechSystems/mtqn-crash-data-ram
Add crash reporting and autoreboot capability to MTS_DRAGONFLY_L471QG
2020-12-09 11:58:19 +00:00
Martin Kojtal 18f6794498
Merge pull request #14003 from jeromecoutant/PR_H7_PWR
STM32H7: system power supply configuration
2020-12-09 08:57:43 +00:00
Martin Kojtal 626804aa54
Merge pull request #13992 from jeromecoutant/PR_SCRIPT
STM32_gen_PeripheralPins.py v1.19
2020-12-09 08:57:26 +00:00
Martin Kojtal e2777c2995
Merge pull request #13777 from jeromecoutant/PR_L152
STM32 : full GPIO reset during mbed init
2020-12-09 05:55:02 +00:00
jeromecoutant cc90ec9096 STM32H7: system power supply configuration 2020-12-04 10:52:59 +01:00
jeromecoutant b0c50d4905 STM32F0: ST CUBE drivers update V1.11.1 => V1.11.2 2020-12-03 18:00:26 +01:00
jeromecoutant c46bfe0e1a STM32F0: CMakeLists update 2020-12-03 17:18:00 +01:00
jeromecoutant eef17a5d5d STM32F0: ST CUBE drivers update V1.9.0 => V1.11.1 2020-12-03 17:15:39 +01:00
jeromecoutant 6f25e46181 STM32F0: code alignment
No impact, no change
2020-12-03 17:15:31 +01:00
jeromecoutant 58ac265039 STM32F0: directory restructuration 2020-12-03 13:05:06 +01:00
Martin Kojtal 56f731027e
Merge pull request #13929 from JeanMarcR/DEEP_SLEEP
STM32: LPUART clock source selection up to a serial driver
2020-12-03 08:47:01 +00:00
Leon 310b6dd127 Add crash reporting and autoreboot capability to MTS_DRAGONFLY_L471QG 2020-12-01 14:18:16 -06:00
jeromecoutant 186a258b99 STM32_gen_PeripheralPins.py v1.19
- Use https://github.com/STMicroelectronics/STM32_open_pin_data.git
    instead of CubeMX
- Add GPIO pinmap list
- Add STM32WL support
2020-12-01 15:52:20 +01:00
Martin Kojtal 33a7e66a07
Merge pull request #13906 from jeromecoutant/PR_G070
STM32G070: generic target creation
2020-11-27 12:49:52 +00:00
Ladislas de Toldi eba8df7ed6
Delete objects.h 2020-11-27 09:24:31 +01:00
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
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
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