Lingkai Dong
7f0c98d977
PSoC 6: remove debug sleep lock and hook from mbed_sdk_init
2020-11-27 17:10:24 +00: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
28eeee2b4c
Merge pull request #13922 from 0xc0170/cmake-nuvoton
...
CMake: add nuvoton targets
2020-11-27 11:02:53 +00:00
Ladislas de Toldi
eba8df7ed6
Delete objects.h
2020-11-27 09:24:31 +01:00
Hugues Kamba
43fb514832
CMake: Add support for Freescale MCUXpresso_MCUS targets
...
All Freescale MCUXpresso_MCUS targets supported by Mbed OS
can now be built with CMake.
2020-11-26 16:13:25 +00:00
Hugues Kamba
8ef0087314
CMake: Add support for Freescale KLXX targets
...
All Freescale KLXX targets supported by Mbed OS
can now be built with CMake.
2020-11-26 16:13:24 +00:00
Martin Kojtal
b20278a5f4
Merge pull request #13964 from hugueskamba/hk_cmake_arm_fm_support
...
CMake: Add support for all ARM FM Mbed targets
2020-11-26 15:55:43 +00:00
Martin Kojtal
22c1c6c7cf
Merge pull request #13951 from LDong-Arm/NRF52_DK-baremetal
...
MCU_NRF52832 (NRF52_DK, SDT52832B): use two-region memory model to support MicroLib
2020-11-26 15:54:46 +00:00
Hugues Kamba
6ccee16e87
MAX32610: Remove source files
...
The targets of this family are not supported by Mbed OS 6
2020-11-26 13:47:20 +00:00
Hugues Kamba
4a0718c697
MAX32620HSP: Remove source files
...
This target was not supported by Mbed OS 6
2020-11-26 13:23:18 +00: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
Hugues Kamba
ff5fca636b
MAX32600MBED: Remove support
...
The target is no longer supported by Maxim
2020-11-26 12:58:59 +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
Hugues Kamba
3f182c59ee
Silabs: Remove EFR32_1 rail files
...
Mbed OS 6 does not support Silicon Labs EFR32_1 rail
2020-11-25 13:17:02 +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
Hugues Kamba
eb4102be48
CMake: Fix failure due to BLE component dir move
2020-11-06 17:25:19 +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
8b21238e08
CMake: Fix failure due to events and netsocket dirs changes
2020-11-06 17:25:17 +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
Hugues Kamba
8a74bf1d04
CMake: Add support for NRF52840_DK target
2020-11-06 17:25:15 +00:00
Hugues Kamba
70d92298b8
CMake: Add support for K64F target
2020-11-06 17:25:15 +00:00
Lingkai Dong
810884b448
Add mbed_lib.json for PSOC6 SCL to exclude it from build metal build
...
SCL is for the Cypress Ethernet driver which is not currently
compatible with bare metal.
2020-11-06 10:08:24 +00:00
Lingkai Dong
7641f1cb3c
CYTFM_064B0S2_4343W: use cytfm_flash only if TFM and PSA are present
...
This fixes bare metal builds
2020-11-06 10:08:12 +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
Martin Kojtal
61bed01ee8
Merge pull request #13846 from 0xc0170/fix-stm32-usb-header
...
STM32 usb: fixing missing header file
2020-11-05 14:48:07 +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
jeromecoutant
39b724cd9d
STM32L4: Use HSI for LPUART
...
Impact all STM32L4x5 and STM32L4x6 targets
2020-11-04 12:41:56 +01:00
Heuisam Kwag
f661c2389c
fix compile error
...
Including unused header file, "cmsis-os.h", causes compile errors.
This commit fixes it.
Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-11-04 18:20:01 +09:00
kalle16lab
6bf039d44c
Update sleep.c
...
copyright date change
2020-11-04 11:09:37 +02:00
Martin Kojtal
097adb57a2
STM32 usb: fixing missing header file
...
Fixes #13838
2020-11-04 08:49:04 +00:00
Kalle-Gustav Kruus
3c848063f3
also added tickless option
2020-11-03 18:59:26 +02:00
Kalle-Gustav Kruus
851eca4ddb
added naieve way of sleeping seems to work at first glance
2020-11-03 18:05:21 +02: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
Peter B
02a12a8722
Update spi_api.c
...
Modified the spi_master_block_write() function yet again. SD related examples still read/erase/write the SD cards as expected and with these alterations the power consumption does not remain high after the SPI transaction has been finished. However i still only tested the SD functionality. Please test other SPI scenarios and different sensors as well to find out if this PR introduces unexpected bugs or not.
Changes:
- deleted the whole if (xfer.ui32NumBytes) condition as i did not find it logical (by that i mean xfer.ui32NumBytes was also true within the following else if (tx_length != rx_length){} block, so basically when the 2 buffers had different lengths an extra transfer has been done for nothing)
- removed the bool Rw = (rx_length >= tx_length) as the comparison >= has no sense anymore after if (tx_length == rx_length) on line 159.
2020-10-28 23:28:34 +01:00
Martin Kojtal
f57f2657f8
Merge pull request #13747 from RyoheiHagimoto/modify_renesas_deepsleep
...
Renesas: fix timing to wait UART completion in deep sleep function
2020-10-27 14:09:04 +00:00
Martin Kojtal
f9e62fe615
Merge pull request #13692 from RyoheiHagimoto/gr_i2c_slave
...
Fix I2C slave bugs on Renesas RZ/A series.
2020-10-27 14:08:47 +00:00
pea-pod
507181d262
Change MBED_STATIC_ASSERTs version for built-in
2020-10-27 08:30:40 -05:00
pennam
45ac79aa3b
STM32H7: define RCC_LSE_BYPASS to allow using PC_15 as gpio
2020-10-27 11:24:30 +01:00
Peter B
d56f942ae7
Update spi_api.c
...
Modified line 145: previously the fill character has been hard coded to 0x00. However in Mbed OS core SPI_FILL_CHAR is defined in the core to be 0xFF by default (one can change that through mbed_app.json for example). This mod allows us to use the same fill character that is defined for Mbed OS.
Also modified spi_master_block_write(): previously it called am_hal_iom_blocking_transfer on line 182, but that prevented succesful SD card writing operations. Now i changed that part to am_hal_iom_spi_blocking_fullduplex and SD functionality seems to be working.
2020-10-26 16:03:04 +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
c8711b600a
STM32L4 : targets.json update introducing subfamily level
...
Goal is to halp custom boards creation
2020-10-20 08:51:36 +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
RyoheiHagimoto
e3fea114ec
Fixed I2C slave bugs on Renesas RZ/A series:
...
Added the register operation when received the slave address.
2020-10-16 18:00:42 +09:00
RyoheiHagimoto
5931050b64
Fixed I2C slave bugs on Renesas RZ/A series.
...
Fixed following I2C slave bugs on Renesas RZ/A series:
- Send an incorrect value during slave mode.
- The behavior for the restart condition is wrong.
2020-10-16 17:58:40 +09: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
c8345a3490
Merge pull request #13595 from gutbag/add-nrf52-midi-baud-rate
...
Nordic: Support 31250 baud rate
2020-10-16 09:06:31 +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
Martin Kojtal
2514479360
Merge pull request #13743 from idea--list/master
...
Define SD and STORAGE for the MAX32630FTHR and prevent warnings during compilation on Mbed 5.12 and above
2020-10-15 15:06:48 +01:00
Martin Kojtal
2311398adf
Merge pull request #13738 from OpenNuvoton/nuvoton_m23_fault_handler
...
Nuvoton: Enable fault handler dump message on CM23 targets
2020-10-15 15:06:23 +01:00
Martin Kojtal
ab14eb60e2
Merge pull request #13677 from CharleyChu/topic/master_cytfm_471
...
psoc64: Update flash layout of CYTFM_064B0S2_4343W
2020-10-15 13:51:29 +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
Harrison Mutai
d1d6bf51b3
Add license notice to Arm copyrighted source files
...
Scancode found missing license notices in our source files. This commit
addresses those issues by adding an Apache-2.0 notice to source files
highlighted.
2020-10-15 10:46:35 +01:00
Martin Kojtal
e56d4298cb
USB STM32: fix header inclusion, removing mbed.h'
...
Fixes #13667 issue
2020-10-13 13:23:21 +01:00
Peter B
0db0f0d22a
alignment fixed
2020-10-13 10:27:51 +02:00
RyoheiHagimoto
15c28e919d
Modified the timing to wait UART completion in deep sleep function.
...
Moved waiting UART transmission completion to the out of critical
section. This is issued by the following pull request.
https://github.com/ARMmbed/mbed-os/pull/11816
2020-10-09 17:28:52 +09: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
Peter B
669c703e46
Prevent warnings during compilations for MAX32620C
...
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32620C on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
2020-10-08 17:28:12 +02:00
Peter B
fee7a1c79a
Prevent warnings during compilations for MAX32625
...
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32625 on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
2020-10-08 17:25:38 +02:00
Peter B
48c71b3649
Prevent warnings during compilations for MAX32630FTHR
...
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32630FTHR on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
2020-10-08 17:23:06 +02:00
Peter B
a9dfa0ceba
Define SD and STORAGE for the MAX32630FTHR
...
MAX32630FTHR has an on-board uSD slot, but targets.json did not contain info about this until now.
Handling it in targets.json is a better idea than doing it via mbed_app.json as most people can not figure out how to do that.
2020-10-08 16:08:40 +02:00
Chun-Chieh Li
82ce0243f9
Nuvoton: Enable fault handler dump message for M23 targets
...
Support targets:
- NUMAKER_IOT_M263A
- NUMAKER_IOT_M252
2020-10-08 14:18:25 +08: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
Johnny Robeson
394c976f5f
Remove unused Nordic TARGET_SDK_11
2020-09-30 20:22:48 -04: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
efd385d6ce
Merge pull request #13679 from OpenNuvoton/nvt_i2c_timeout
...
Nuvoton: Fix NuMaker I2C timeout
2020-09-30 15:57:53 +01:00
Martin Kojtal
05ea20c44a
Merge pull request #13681 from winneymj/nrf52840_SPIM3_Updates
...
Nrf52840 spim3 updates
2020-09-30 15:56:36 +01:00
cyliangtw
3916026dd7
Commit M451/NANO100 i2c_api again to resolve abnormal gitattribute
2020-09-30 10:27:16 +08:00
winneymj
d60af095ba
Fix spacing
2020-09-29 17:55:06 -05:00
winneymj
38e6bdc8f4
Fixes for nrf52840 SPIM 3 implementation. Specifically:
...
- Correct definition of SPI2C_INSTANCES when using SPIM vs SPI
- Use NRFX_SPIM_XFER_TRX macro vs manually filling structure.
- Fix compile error in NRFX_SPIM_DEFAULT_EXTENDED_CONFIG where ordering of members does not match structure nrfx_spim_config_t
- Use High Drive if using SPIM3 on MOSI and SCK pins.
2020-09-29 17:13:30 -05:00
cyliangtw
ffee35a5c8
Fix NuMaker I2C timeout,
...
some H/W timer count is 24 bits only, hardcode 0xffffffff causing
wrong judgement of timeout as while H/W timer counting overflow.
2020-09-29 21:01:18 +08:00
Charley Chu
57f36264c5
psoc64: Update flash layout of CYTFM_064B0S2_4343W
...
Only report the flash region that can be accessed by none-secure CPU
Signed-off-by: Charley Chu <haoc@cypress.com>
2020-09-28 17:10:42 -07:00
Heuisam Kwag
6ff504a89f
targets/s1sb6a: change UART_STDIO_PORT from UART0 to UART2
...
Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-09-29 08:32:49 +09:00
Heuisam Kwag
f0679cca36
tartgets/s1sbp6a: fix afe clock initial value
...
Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-09-29 08:32:49 +09:00
Heuisam Kwag
bc68113566
targets/s1sbp6a: fix uart baud rate setting of UART1~2
...
Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-09-29 08:32:35 +09:00
Heuisam Kwag
8fb4d80f29
targets/s1sbp6a: fix typo
...
Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-09-28 17:14:26 +09:00
Martin Kojtal
f38aa597c8
Merge pull request #13632 from sdrstone1/master
...
fix DAPLINK error for S1SBP6A Target using GNU Toolchain.
2020-09-23 15:58:53 +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
33a538ab6c
Merge pull request #13593 from LDong-Arm/platform_storage_default_requirements
...
STM32F: skip LittleFileSystem default instance and TDBStore tests
2020-09-17 15:21:40 +01: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
KollHong
dd1c59f588
Update startup_s1sbp6a.S
...
fix DAPLINK "The transfer timed out." error
2020-09-17 15:35:35 +09: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
Kevin Bracey
65bc41a96b
Optimise mbed_ticker_api.c
...
The generic code in mbed_ticker_api.c uses run-time polymorphism to
handle different tickers, and has generic run-time calculations for
different ticker widths and frequencies, with a single special-case for
1MHz.
Extend the run-time special casing to handle any conversion cases where
either the multiply or divide can be done as a shift. This is a speed
optimisation for certain platforms.
Add a new option `target.custom-tickers`. If turned off, it promises
that only USTICKER and LPTICKER devices will be used. This then permits
elimination and/or simplification of runtime calculations, saving size
and speed. If either both USTICKER and LPTICKER have the same width, or
same period numerator or denominator, or only one of them exists, then
operations can be hard-coded. This is a significant ROM space saving,
and a minor speed and RAM saving.
We get to optimise all the calculations, but the run-time polymorphism
is retained even if there is only one ticker, as it doesn't
significantly affect code size versus direct calls, and the existence of
lp_ticker_wrapper and various us_ticker optimisations requires it, even
if only LPTICKER is available.
2020-09-14 13:25:10 +03:00
Lingkai Dong
84f3444691
Add config target.internal-flash-uniform-sectors and set it to false for STM32L2/4/7
...
Some internal flashes have non-uniform sectors, and for those
ones we want to skip the initialization of default LittleFileSystem
on FlashIAPBlockDevice (unless the user specifies an address
range that's uniform).
This commit adds a config to indicate if sectors are uniform.
2020-09-11 09:49:53 +01:00