forked from u-blox/ubxlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platform change for STM32 only: add support for STM32U5 on STM32Cube.…
… (#1196) The STM32U5 MCU, which is already supported via Zephyr, is now also supported on the STM32Cube platform. Two configurations are supported: the default STM32U5 integration from ST, which now uses ThreadX as the underlying OS [but see important note below], and a configuration which continues to use FreeRTOS as the underlying OS (i.e. as STM32F4 does). In order to make this possible all OS operations for STM32U5 builds go through CMSIS (V2). See the README.md files under the stm32cube platform directory for details of how the two differ and what limitations you may find. **VERY IMPORTANT**: there is a bug in the ST-provided CMSIS layer for ThreadX in that it does not free memory when a dynamic task is terminated, hence you will very quickly run out of memory; ST are aware of this, see STMicroelectronics/STM32CubeU5#48 and we await a fix. Until the fix is available PLEASE USE THE FREERTOS version for STM32U5, by defining U_PORT_STM32_CMSIS_ON_FREERTOS (as well as U_PORT_STM32_PURE_CMSIS) when building ubxlib, DO NOT USE the THREADX version. Existing STM32Cube users should note that the guts of stm32f4.mk are moved up a directory-level and renamed to stm32.mk; this file is included in stm32f4.mk so you should notice no difference.
- Loading branch information
Showing
66 changed files
with
7,966 additions
and
644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# OpenOCD config for STM32U5x | ||
source [find interface/stlink.cfg] | ||
transport select hla_swd | ||
source [find target/stm32u5x.cfg] | ||
|
||
# Reset configuration | ||
# use hardware reset, connect under reset | ||
# connect_assert_srst needed if low power mode application running (WFI...) | ||
reset_config srst_only srst_nogate connect_assert_srst | ||
|
||
# Target specific frequencies | ||
set _TARGET_SYSTEM_FREQUENCY 160000000 | ||
set _TARGET_SWO_FREQUENCY 2000000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.