Commit Graph

2804 Commits (de27e833026e7937251339853ea03eb3b938e70c)

Author SHA1 Message Date
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
jeromecoutant c288034ff7 STM32L4: ADC compilation issue with L422 2020-11-13 10:13:46 +01:00
Martin Kojtal 18b898d708 STM32L475xG: fix linker/startup inclusion
No function required.
2020-11-12 11:54:21 +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
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
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 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 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
Hugues Kamba 30e88863f4 CMake: Add support for DISCO_L475VG_IOT01A target 2020-11-06 17:25:15 +00:00
jeromecoutant 56a7afdf66 STM32F3: update to match mbed 2020-11-06 10:29:54 +01: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
jeromecoutant 084b873173 STM32F3: CUBE V1.11.1 2020-11-05 16:59:06 +01:00
Martin Kojtal c87736574f
Merge pull request #13862 from jeromecoutant/PR_RTS_FREE
STM32 SERIAL: free RTS/CTS pins
2020-11-05 15:43:29 +00:00
jeromecoutant 7f57005082 STM32F3: alignment with current CUBE V1.9.0 2020-11-05 15:34:54 +01:00
jeromecoutant 29e7e5ad4d STM32F3: directory restructuration 2020-11-05 13:32:09 +01:00
jeromecoutant 73d1c63741 STM32 SERIAL: free RTS/CTS pins 2020-11-04 15:47:14 +01:00
Martin Kojtal 097adb57a2 STM32 usb: fixing missing header file
Fixes #13838
2020-11-04 08:49:04 +00:00
Martin Kojtal 798c3c5f4f
Merge pull request #13817 from facchinm/patch_lse_bypass
STM32: define RCC_LSE_BYPASS to allow using PC_15 as gpio
2020-11-02 14:17:53 +00:00
pennam 45ac79aa3b STM32H7: define RCC_LSE_BYPASS to allow using PC_15 as gpio 2020-10-27 11:24:30 +01:00
JojoS62 6264e0abc4 add defaults values
set all defaults to initial low as after a reset
most STM32 eval boards use low power crystals and work with this setting
2020-10-23 19:38:55 +02:00
JojoS62 622a452661 fix macro usage error
use unique #if defined()
2020-10-23 17:00:28 +02:00
JojoS62 64072a925e fix for targets with non-modifiable
transconductance
2020-10-22 20:11:15 +02:00
JojoS62 80847e958d simplify default setting 2020-10-22 11:27:42 +02:00
JojoS62 e7f1430d37 remove duplicate LSEDRIVE_CONFIG 2020-10-22 11:24:51 +02:00
JojoS62 a209d44a07 simplify checking for F4_g2 exception 2020-10-22 11:20:51 +02:00
JojoS62 8145b69959 add setting for LSE drive load level 2020-10-21 18:54:47 +02:00
jeromecoutant 379182299d STM32H7 readme update 2020-10-20 13:10:59 +02:00
jeromecoutant 04c8ff91d4 STM32H7: new target NUCLEO_H7A3ZI_Q 2020-10-20 13:10:59 +02:00
jeromecoutant 1e2aacd373 STM32H7: create MCU_STM32H7A3xIQ 2020-10-20 13:10:59 +02:00
Martin Kojtal d418667f07
Merge pull request #13690 from jeromecoutant/PR_H7_180
STM32H7 update drivers version to CUBE V1.8.0
2020-10-20 11:36:56 +01:00
jeromecoutant 3c6ba98823 STM32L4: STM32Cube_FW_L4_V1.16.0
source: https://github.com/STMicroelectronics/STM32CubeL4
2020-10-20 08:51:37 +02:00
jeromecoutant 81f919b6c2 STM32L4 : license header alignment 2020-10-20 08:51:36 +02:00
jeromecoutant 95f8b2dfd4 STM32L4 : common file factorisation 2020-10-20 08:51:36 +02:00
jeromecoutant dcc066db59 STM32L4 : alignment with STM32Cube_FW_L4_V1.14.0 2020-10-20 08:51:35 +02:00
jeromecoutant 3b14c478c1 STM32L4 : directory retructuration
- Alignment with other STM32 families
2020-10-20 08:51:35 +02:00
jeromecoutant 3f843d55ed STM32H7: readme update 2020-10-20 08:19:28 +02:00
jeromecoutant 2ccf534aaa STM32H7: fix ADC internal channels 2020-10-20 08:19:27 +02:00
jeromecoutant e322870219 STM32H7: FLASH update 2020-10-20 08:19:27 +02:00
jeromecoutant f0b7e8b98c STM32H7: update target specific files with Cube-1.8
- startup files pdated from Cube
- all SetSysClock aligned and checked
- license header updated
2020-10-20 08:19:16 +02:00
jeromecoutant 13df49e315 STM32H7: STM32Cube_FW_H7_V1.8.0
https://github.com/STMicroelectronics/STM32CubeH7
2020-10-20 08:18:21 +02:00
jeromecoutant a62736bba2 STM32L0: STM32Cube_FW_L0_V1.11.3
https://github.com/STMicroelectronics/STM32CubeL0
2020-10-19 17:42:38 +02:00
jeromecoutant d9cdd31f21 STM32L0: back to updated files 2020-10-19 17:42:38 +02:00
jeromecoutant a519a2fe6b STM32L0: directory restructuration
+ STM32Cube_FW_L0_V1.10.0 original files
+ targets.json update introducing subfamily level
2020-10-19 17:42:38 +02:00
jeromecoutant 7c214cbd68 STM32WB: STM32Cube_FW_WB_V1.8.0
https://github.com/STMicroelectronics/STM32CubeWB
2020-10-19 14:36:02 +02:00
Martin Kojtal bf90b7736b
Merge pull request #13697 from jeromecoutant/PR_L5_130
STM32L5 update drivers version to CUBE V1.3.1
2020-10-19 13:21:32 +01:00
JojoS62 38f4507ff0 fix USB in sleep mode
in sleep mode, USB interrupts were disabled
and USB Device was not working. Sleep mode is default in Mbed-os
e.g. in a call to sleep_for()
2020-10-17 00:50:40 +02:00
jeromecoutant 4b999b3e7f STM32L5: STM32Cube_FW_L5_V1.3.0
https://github.com/STMicroelectronics/STM32CubeL5
2020-10-16 17:31:58 +02:00
jeromecoutant 759a817005 STM32G4: STM32Cube_FW_G4_V1.3.0
source: https://github.com/STMicroelectronics/STM32CubeG4
2020-10-16 17:31:04 +02:00
jeromecoutant cd99f641dc STM32G4: cleanup 2020-10-16 17:31:03 +02:00
jeromecoutant 4f95500dc9 STM32G4: target directoty restructuration
- Alignment with other STM32 families
- Subfamily level in targets.json
2020-10-16 17:31:03 +02: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
Martin Kojtal 61aa6817f0
Merge pull request #13724 from harmut01/license_refactor
Add license notice to Arm copyrighted source files
2020-10-16 09:09:53 +01:00
Martin Kojtal aa0cd631a2
Merge pull request #13655 from jeromecoutant/PR_GENPERIPH_1_17
STM32_gen_PeripheralPins.py v1.17
2020-10-16 09:08:27 +01:00
Martin Kojtal 36de28e1ff
Merge pull request #13683 from 0xc0170/fix_stm32_usb
USB STM32: fix header inclusion, removing mbed.h
2020-10-15 15:41:03 +01:00
jeromecoutant 7eb43b104a STM32_gen_PeripheralPins.py move to TARGET_STM 2020-10-15 12:08:25 +02: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
Martin Kojtal e56d4298cb USB STM32: fix header inclusion, removing mbed.h'
Fixes #13667 issue
2020-10-13 13:23:21 +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
jeromecoutant 282bc22247 STM32: update SetSysClock for NUCLEO_L476RG
Change in case of clock_source is set to HSI or HSE
(not the default configuration)
2020-10-06 15:11:34 +02:00
jeromecoutant 2d25882d1f STM32_gen_PeripheralPins.py v1.17
- GPIO xml parsing correction (#13711)
- Octo SPI support
- bug correction
- warning style correction
- new TIM_MST choice algo
- full PinNames.h file creation
- output directory is now
    targets_custom/TARGET_STM/TARGET_STM32XX/TARGET_STM32XXXX
2020-10-05 17:55:58 +02:00
Martin Kojtal fbe04097c7
Merge pull request #13601 from AGlass0fMilk/fix-g474-adc
Fix AnalogIn implementation on STM32G4 series
2020-09-30 16:12:18 +01:00
Martin Kojtal 21652971a5
Merge pull request #12644 from macronix/macronix_ospi
Add OSPI driver to support the Octa mode of Macronix octaflash MX25LM51245G
2020-09-30 16:07:20 +01: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
Martin Kojtal 1dea16bc58
Merge pull request #13611 from alcheagle/stm32l071xx-fixes
Edit on Toolchain linker files for stm32L071xx target
2020-09-30 16:00:20 +01:00
Martin Kojtal f3d91fdba1
Merge pull request #13633 from jeromecoutant/PR_WB_FLASH_BARE
STM32WB: FLASH compilation issue with baremetal
2020-09-23 15:58:38 +01:00
Martin Kojtal cd9a0d1f49
Merge pull request #13634 from jeromecoutant/PR_L4_IAR
STM32L4: link issue with IAR
2020-09-23 15:57:35 +01:00
Martin Kojtal 60cbab381d
Merge pull request #13640 from isaev-d/fix-pll-stm32h743
STM32: Fix system clock setup for XTAL and/or internal source on STM32H743
2020-09-23 10:53:58 +01:00
Bora Özgen 011cd19175 Remove weak statement for HSI clock config 2020-09-23 10:59:00 +02:00
Martin Kojtal 66423948e0
Merge pull request #13645 from boraozgen/bugfix/stm32f412xg_usart3
Patch STM32F4 HAL to fix F412CG USART3 issue
2020-09-22 16:24:49 +01:00
George Beckstein 76d488ded1 Revert sampling time decrease and remove todos. 2020-09-22 09:32:14 -04:00
Andrea Gilardoni b99702094c fixing nvic num 2020-09-22 09:46:48 +02:00
Dmitriy Isaev 8597f6ae12 Removed excess space simbol. Also runtime config check changed to compile time check. 2020-09-21 20:17:45 +03:00
jeromecoutant bbc7355df5 Merge internal ADC channel changes from ST
Co-authored-by: jeromecoutant <jerome.coutant@st.com>
2020-09-21 12:26:23 -04:00
George Beckstein bbc15f65c0 Implemented adc deinitialization functionality 2020-09-21 12:19:50 -04:00
George Beckstein e9d6c9c0b1 Fix AnalogIn implementation on STM32G4 series 2020-09-21 12:19:50 -04: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
Dmitriy Isaev 3f83163a63 Fixed system clock setup for XTAL and/or internal source on stm32f743 chips. 2020-09-20 16:26:25 +03:00
jeromecoutant 0af260fe43 STM32L4: link issue with IAR 2020-09-18 12:27:53 +02:00
jeromecoutant 49ceb3c4b6 STM32WB: FLASH compilation issue with baremetal 2020-09-18 11:47:15 +02:00
Martin Kojtal 75544a7ce0
Merge pull request #13565 from m-ecry/feature-stm32g4-can-support
Feature stm32g4 can support
2020-09-17 15:08:46 +01:00
Martin Kojtal 3801f6e389
Merge pull request #13406 from Allmoz/master
STM32F1 USBDevice
2020-09-17 08:56:03 +01:00
m-ecry 73493b909a STM-can-api: Fixed variable name for H7
- can_frequency uses f instead of hz for can frequency
 - Also added comment to system_clock
2020-09-16 17:35:32 +02:00
Andrea Gilardoni 1d77cfa08b trying to fix startup file 2020-09-16 08:41:41 +02:00
rogeryou 48524f25ae add opsi driver 2020-09-16 11:27:23 +08:00
Andrea Gilardoni 303b3c28b6 making some cleaning 2020-09-15 11:25:47 +02:00
Andrea Gilardoni d5adca141b Edit on Toolchain linker files
Previous one were not working, using nucleol073RZ files
2020-09-15 11:13:03 +02:00
m-ecry 2a13fa199d STMG4-sys-clk: If can PLLQ=160MHz, else 170MHz
- with 170MHz as can-core-frequency, the accuracy for many baudrates is
too low. 160MHz is better for a broad range of frequencies
2020-09-14 18:15:41 +02:00
m-ecry d0c8ad75e1 STM-can-api: Support reading of remote_msg
- Previously a received msg was fixed of data_type
2020-09-14 18:10:48 +02:00
m-ecry 13b663397f STM-can-api: Added usage of prescaler
- This enables more frequencies, but without regard to the accuracy.
May still require manual clock setup, to remain in tolerance window
2020-09-14 16:29:12 +02:00
Martin Eckardt 35c9e7a5ad Use HAL function for FDCAN_CLK-calculation
- Thanks to @jeromecoutant for showing the HAL funtion
 - Added #ifdef guard to FDCAN2/3 handler functions
2020-09-14 15:24:14 +02:00
Martin Kojtal 47e943af2d
Merge pull request #13558 from jeromecoutant/PR_L4PLUS_SRAM3
STM32L4+ : SRAM3 is powered off in deepsleep
2020-09-10 14:03:32 +01:00
Martin Kojtal 468372e759
Merge pull request #13492 from talorion/fix-PwmOut-resets-after-suspend
Fix pwm out resets after suspend
2020-09-10 12:40:18 +01:00
Martin Kojtal a17a481c54
Merge pull request #13583 from jeromecoutant/PR_ARDUINO_PIN
STM32: correct few Arduino pins value
2020-09-10 12:38:02 +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
jeromecoutant 668412ccde NUCLEO_L433RC_P: wrong D0 and D1 pins 2020-09-10 10:05:41 +02:00
jeromecoutant 5bcb02a013 DISCO_L072CZ_LRWAN1: wrong A1/A3/A4/A5 pin values 2020-09-10 10:05:41 +02:00
jeromecoutant e695db9944 NUCLEO_F207ZG: change default SPI_MOSI pin to match Arduino standard 2020-09-10 10:05:40 +02:00
jeromecoutant 3e653223d2 NUCLEO_F303ZE: wrong D1 pins 2020-09-10 10:05:40 +02:00
jeromecoutant 88fcd669d4 NUCLEO_L552ZE_Q: wrong D0 and D1 pins 2020-09-10 10:05:40 +02:00
Martin Kojtal 3b5ab54618
Merge pull request #13542 from jeromecoutant/PR_DISCO_L4S
B_L4S5I_IOT01A: new ST target
2020-09-09 15:54:27 +01:00
Martin Kojtal 1f6fe470e1
Merge pull request #13564 from More-Wrong/LSI-for-STM32Gx
STM32Gx: LSI clock selection when LSE is not available
2020-09-09 15:16:44 +01:00
jeromecoutant d804167816 STM32L4S5xI: B_L4S5I_IOT01A new target 2020-09-09 15:19:21 +02:00
jeromecoutant c65ad59ccd STM32L4S5xI introduction 2020-09-09 15:19:11 +02:00
jeromecoutant b65afe028e STM32H7 ADC: clock selection lost after deepsleep 2020-09-08 11:40:02 +02:00
talorion e117ef5c3c use descriptive variable names 2020-09-08 10:54:09 +02:00
Robert 14ac4064b7 STM32Gx: LSI clock selection when LSE is not available 2020-09-07 14:47:11 +01:00
jeromecoutant e650470206 STM32L4+ : SRAM3 is powered off in Stop 2 mode
By default, SRAM3 content is then lost.
2020-09-07 09:48:02 +02:00
Martin Eckardt 08ce2f2de8 Calculate FDCAN_clk instead of assuming fix 10MHz
- The FDCAN_clk is calculated on runtime from the according
RCC-registers
2020-09-07 02:08:59 +02:00
Martin Eckardt f32efe4c28 Changed PLL to 160MHz, PLLQ to 80MHz 2020-09-07 02:04:13 +02:00
Martin Eckardt 9886532029 Added support for FDCAN3 2020-09-07 02:04:13 +02:00
Martin Eckardt 9bc2deb9aa make G4 target compileable with CAN support 2020-09-07 02:04:13 +02:00
Martin Kojtal 895488f945
Merge pull request #13523 from jeromecoutant/PR_H7_ADC2
STM32H7 ADC: No MultiMode configuration needed for ADC2
2020-09-03 13:24:55 +01:00
Martin Kojtal 2eb2fe4184
Merge pull request #13522 from jeromecoutant/PR_USB_PULLUP
STM32 USB connect procedure update
2020-09-03 13:24:10 +01:00
talorion 6a50ecad5f pwmout - STM - add read methods for period and pulsewidth 2020-09-02 13:39:15 +02:00
Martin Kojtal 29f54fe9aa
Merge pull request #13509 from alcheagle/new_target_STM32L071CXCTX
Adding STM32L071xx target
2020-09-02 09:41:12 +01:00
Nicolás Elliott ee4a4e9ad8 Rebase of Initial support for USB Device on STM32F1 2020-09-01 15:05:48 -04:00
jeromecoutant 02c79e8603 STM32H7 ADC: No MultiMode configuration needed for ADC2 2020-09-01 17:52:13 +02:00
jeromecoutant ac9c4b7b66 STM32 USB connect procedure update
Pull up on USB DP to manage (external for STM32F1)
2020-09-01 17:32:20 +02:00
Andrea Gilardoni 3c39eeb8dd fixing SPDX identifiers in all files 2020-09-01 10:08:41 +02:00
Martin Kojtal 4ef38f95d8
Merge pull request #13513 from jeromecoutant/PR_README
STM32 readme update
2020-09-01 08:48:54 +01:00
jeromecoutant 53008d9447 STM32 USB: use SNG_BUF
To avoid RAM location issue
2020-08-31 17:30:52 +02:00
Andrea Gilardoni 15ca58b9c8 fixing small issues 2020-08-31 14:03:49 +02:00
jeromecoutant 1996552a9c STM32 readme update 2020-08-31 13:23:25 +02:00
Andrea Gilardoni 23a3ea06cb fixing the remaining parts after the rename 2020-08-28 19:37:53 +02:00
Andrea Gilardoni c62fc559c9 renaming the mcu to stm32l071xx 2020-08-28 19:24:43 +02:00
Andrea Gilardoni 0c0692a3d1 fixing the issues 2020-08-28 19:12:37 +02:00
Andrea Gilardoni a03f5ff4e6 Adding a new target
Adding STM32L071CXCTX as a generic target to be extended.
This addition required to fix some issues on stml0 library
2020-08-28 19:10:41 +02: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
Martin Kojtal 4bd8d8ca56
Merge pull request #13470 from MultiTechSystems/update-dragonfly-linkers
Update dragonfly linkers
2020-08-24 15:54:11 +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
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
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
Maarten de Klerk e6150ac722
Added error checking to can_filter() for Classic CAN
Previously the function always returned 1 even when the configuration was illegal. I added a small check to HAL_CAN_ConfigFilter(...).
2020-08-08 23:25:42 +02:00
Rajkumar Kanagaraj 2add7064ec Update astyleignore and source code comment 2020-07-27 10:04:01 -07:00
jeromecoutant 0b5a91c9a2 STM32WB FLASH activity shared with M0+ core
source:
- https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_RfWithFlash/Core/Src/flash_driver.c
- Figure 10 from AN5289
2020-07-17 12:06:40 +02:00
jeromecoutant ec1e659d3a STM32WB readme update 2020-07-17 12:06:40 +02:00
jeromecoutant 285d533075 STM32WB: ST CUBE drivers update V1.4.0 => V1.7.0 / BLE 2020-07-17 12:06:39 +02:00
jeromecoutant 643c7a44f3 STM32WB: ST CUBE drivers update V1.4.0 => V1.7.0 / HAL 2020-07-17 12:06:39 +02:00
Martin Kojtal 3400ef66e7
Merge pull request #13222 from jeromecoutant/PR_PWM
STM32 PWM : avoid glitch after duty cycle change
2020-07-03 10:51:19 +02:00
Martin Kojtal 379bda2214
Merge pull request #13221 from jeromecoutant/PR_DAC_TICKLESS
STM32 ANALOGOUT and DEEPSLEEP
2020-07-03 10:50:59 +02:00
jeromecoutant e10a233c80 STM32 PWM : avoid glitch after duty cycle change 2020-07-02 14:54:09 +02:00
jeromecoutant a0b718fc04 STM32 ANALOGOUT and DEEPSLEEP
keep DAC on during wait period
2020-07-02 14:18:44 +02:00
jeromecoutant c8737c593d STM32WB RNG: enable use from both M4 and M0+ core 2020-07-02 10:17:08 +02:00
jeromecoutant 0d277eefe4 STM32L4: I2C init parameters for L4+ MCU 2020-06-23 10:05:24 +02:00
Martin Kojtal e9b1df671e
Merge pull request #13143 from jeromecoutant/PR_H7_BARE
STM32H7: correct Ethernet issue in baremetal
2020-06-18 10:25:51 +02:00
Martin Kojtal 66343b0d25
Merge pull request #12937 from macronix/macronix_qspi
Modify the operation of setting qspi frequency when calling Octo controller
2020-06-18 09:43:45 +02:00
Martin Kojtal aafae5d644
Merge pull request #12751 from jeromecoutant/PR_WB_USB
STM32WB: enable USB Device
2020-06-18 09:42:42 +02:00
jeromecoutant b4d31ae863 STM32H7: correct Ethernet issue in baremetal 2020-06-17 18:39:34 +02: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
Martin Kojtal 0614e92c5b
Merge pull request #13083 from jeromecoutant/PR_H7_CUBE170
STM32H7 update drivers version to CUBE V1.7.0
2020-06-16 13:45:42 +02:00
jeromecoutant dcf2490b5a STM32F1 STM32Cube FW V1.8.0: update for MBED 2020-06-15 13:49:47 +02:00
jeromecoutant c99c8b5036 STM32F1 STM32Cube FW V1.6.1 => V1.8.0: target part
- SetSysClock update
2020-06-15 13:49:47 +02:00
jeromecoutant ce3fc30cf0 STM32F1 STM32Cube FW V1.6.1 => V1.8.0 2020-06-15 13:49:46 +02:00
jeromecoutant f13b06a7bc STM32F1 STM32Cube FW V1.6.1 => V1.8.0: Driver part 2020-06-15 13:49:46 +02:00
jeromecoutant 97bf6fa386 STM32F1 STM32Cube FW V1.6.1 => V1.8.0: CMSIS part 2020-06-15 13:49:46 +02:00
jeromecoutant 1152c651d9 STM32F1: targets inherit from non public default MCU configuration 2020-06-15 13:49:39 +02:00
jeromecoutant 533fe21750 STM32F1: directory restructuration 2020-06-15 13:48:04 +02:00
Anna Bridge a870fcface
Merge pull request #13001 from jeromecoutant/PR_BAREMETAL_SUPPORT_STEP2
STM32 baremetal support step2 (L1/L4/WB)
2020-06-12 14:44:14 +01:00
Anna Bridge 58975d1df4
Merge pull request #13091 from jeromecoutant/PR_BAREMETAL_SUPPORT
STM32 baremetal support step3/3 (F2/F4)
2020-06-12 14:42:35 +01:00
Anna Bridge 727cf54873
Merge pull request #13073 from jeromecoutant/PR_H7_FPGA
STM32H7: FPGA tests support
2020-06-11 14:39:31 +01:00
Martin Kojtal 878875c884
Merge pull request #13090 from jeromecoutant/PR_DEVICE_H
STM: move us_ticker_defines.h include
2020-06-10 11:53:57 +02:00
Martin Kojtal 0f2a28d52f
Merge pull request #13053 from jeromecoutant/PR_README
STM32 more information in README file
2020-06-10 11:43:24 +02:00
jeromecoutant 47407759a4 STM: move us_ticker_defines.h include 2020-06-09 11:04:23 +02:00
jeromecoutant 713618abe0 STM32F4 baremetal support 2020-06-09 10:25:41 +02:00
jeromecoutant adbd936cbc STM32F2 baremetal support 2020-06-09 10:24:36 +02:00
jeromecoutant 048f454a5a STM32H7: remove GENERIC_H745I 2020-06-08 15:33:42 +02:00
jeromecoutant 561f8d48bf STM32H7 STM32Cube FW V1.5.0 => V1.7.0 2020-06-08 14:33:10 +02:00
jeromecoutant 9936a53bd1 STM32H7 STM32Cube FW V1.5.0 => V1.7.0: HAL Driver part 2020-06-08 14:33:09 +02:00
jeromecoutant 21f262b5c3 STM32H7 STM32Cube FW V1.5.0 => V1.7.0: CMSIS part 2020-06-08 14:33:09 +02:00
jeromecoutant 7d181c1bf7 STM32H7: directory restructuration
- only files move
- sometimes files rename
+ targets.json update
2020-06-08 14:33:08 +02:00
jeromecoutant 551f8b4231 NUCLEO_WB55RG: enable USBDEVICE 2020-06-08 13:17:23 +02:00
Martin Kojtal 8d26d77690
Merge pull request #12482 from AGlass0fMilk/add-nucleo-g474re
NUCLEO_G474RE: Add new platform
2020-06-08 12:38:40 +02:00
jeromecoutant 28f8307afa STM32WB baremetal support
move BLE files to FEATURE_BLE
2020-06-08 12:06:01 +02:00
jeromecoutant 0a447ac798 STM32L4 baremetal support 2020-06-08 12:05:54 +02:00
jeromecoutant ba7deb4660 STM32L1 baremetal support 2020-06-08 11:46:56 +02:00
jeromecoutant 1292053bf9 STM32 more information in README file 2020-06-08 10:02:33 +02:00
jeromecoutant c9e0c4f6f7 STM32WB ReadMe quick update
See #12975
2020-06-08 10:02:33 +02:00
jeromecoutant 10a5b97396 STM32H7: NUCLEO_H743ZI2 pins update 2020-06-05 16:26:33 +02:00
jeromecoutant 1484ac0859 STM32H7: DISCO_H747I pins update 2020-06-05 16:26:23 +02:00
jeromecoutant b289d5a08f STM32H7: enable dual analogic pad 2020-06-05 16:26:22 +02:00
jeromecoutant 538552adea STM32H7 ADC issue correction 2020-06-05 16:26:22 +02:00
Martin Kojtal 59df4efaac
Merge pull request #13022 from jeromecoutant/PR_BSP
STM32: add weak TargetBSP_Init function
2020-06-05 16:01:25 +02:00
Martin Kojtal 3ef2b1642e
Merge pull request #12996 from pilotak/master
STM32F412 bypass PLL configuration when already done by bootloader
2020-06-05 10:48:41 +02:00
Martin Kojtal 8911f96c1b
Merge pull request #13014 from jeromecoutant/PR_H7CM4
DISCO_H747I_CM4 is supporting now hex format
2020-06-04 15:23:26 +02:00
jeromecoutant 76135d0820 STM32: add weak TargetBSP_Init function 2020-05-27 16:49:54 +02:00
jeromecoutant 876125ad49 DISCO_H747I_CM4 is supporting now hex format
- minimum STLink version: V3J7M2
2020-05-25 11:34:40 +02:00
rogeryou de9b283abe modify the div value when calling octo controller.
For ST OSPI controller driver(stm32l4xx_hal_ospi.c), the frequency it has be subtracted 1, so "div = div - 1;" should be removed.
2020-05-25 12:07:24 +08:00
George Beckstein 658d89be8c Apply linker fix as in #12690 to new NUCLEO_G474RE target 2020-05-20 06:39:17 -04:00
George Beckstein 6e2fa616c7 Added spi_api.c implementation 2020-05-20 06:39:17 -04:00
George Beckstein eb8d128a24 Updated system clock settings to run at 170MHz (max for this target). Affects both HSI and HSE modes. 2020-05-20 06:39:17 -04:00
George Beckstein 44ca862af3 Changed us_ticker configuration to use TIM5 instead of TIM2 to be consistent with the allowed PWM peripheral pins. 2020-05-20 06:39:17 -04:00
George Beckstein 2297e1b91e Updated clock configuration settings for NUCLEO_G474RE 2020-05-20 06:39:17 -04:00
George Beckstein c687ae312f Added missing analogin_device.c file and configured for STM32G4xx series 2020-05-20 06:39:17 -04:00
George Beckstein 613af0f604 Added support for ANALOGOUT 2020-05-20 06:39:17 -04:00
George Beckstein 934d60e63d Added support for FLASH API 2020-05-20 06:39:17 -04:00
George Beckstein 7f19c8ac6e Added support for SPI API 2020-05-20 06:39:17 -04:00
George Beckstein 06d74aa37a Added support for PWMOUT 2020-05-20 06:39:17 -04:00
George Beckstein f59ec66710 Added support for INTERRUPTIN 2020-05-20 06:39:17 -04:00
George Beckstein 5e25e004df Added support for I2C 2020-05-20 06:39:17 -04:00
George Beckstein cc86ec99d0 Added ANALOGIN support 2020-05-20 06:39:17 -04:00
George Beckstein 80c5d96420 Added support for WDT (untested). Checked datasheet for maximum LSI frequency 2020-05-20 06:39:17 -04:00
George Beckstein 3432960aa1 Implemented support for basic serial communication 2020-05-20 06:39:17 -04:00
George Beckstein ec2544023d Added basic support for NUCLEO_G747RE. Basic GPIO support and system initialization. 2020-05-20 06:39:17 -04:00
jeromecoutant 13ba114d12 STM32G4 DISCO_G474RE introduction
- Only script result
- Can't compile
2020-05-20 06:39:17 -04:00
jeromecoutant 2631bf8070 STM32G4 NUCLEO_G474RE introduction
- Only script result
- Can't compile
2020-05-20 06:39:17 -04:00
jeromecoutant fd2bac73c9 STM32G4 NUCLEO_G431RB introduction
- Only script result
- Can't compile
2020-05-20 06:39:17 -04:00
jeromecoutant 85e8a59e84 STM32G4 NUCLEO_G431KB introduction
- Only script result
- Can't compile
2020-05-20 06:39:17 -04:00
jeromecoutant 35e3ce9034 STM32G4 automatic adaptation for MBED 2020-05-20 06:39:17 -04:00
jeromecoutant b387ed6bc1 STM32G4 introduction
Import from STM32Cube_FW_G4_V1.1.0
2020-05-20 06:39:17 -04: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
jeromecoutant b57b12cc9f STM32L0 baremetal support 2020-05-18 17:27:42 +02:00
jeromecoutant 9b819c7f8b STM32H7 baremetal support 2020-05-18 17:27:32 +02:00
jeromecoutant 739b2048d4 STM32F3 baremetal support 2020-05-18 17:26:50 +02:00
jeromecoutant 96016aea17 STM32F1 baremetal support 2020-05-18 15:27:30 +02:00
jeromecoutant 794e0aa0cf STM32F0 baremetal support 2020-05-18 15:27:29 +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