cpu/stm32: fix RAM_LEN for F427, F429, F437, F439 models #18919
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR fixes the
RAM_LEN
setting for STM32 F427, F429, F437, F439 models.While playing with
bootloader/riotboot_dfu
, I realized that the bootloader hard faults on astm32f429i-disc1
board hereRIOT/sys/riotboot/usb_dfu.c
Line 38 in 2d4c5a4
RIOTBOOT_MAGIC_ADDR
(which isRAM_BASE + RAM_LEN - 4
) is not accessible. Although these models have 256 kByte RAM, the upper 64 kByte are used as CCM data RAM accessible at0x1000 xxxx
. Accessing0x2003 xxxx
leads to the hard fault.Testing procedure
Use any
stm32f429i-disc1
board and flash thebootloader/riotboot_dfu
app:Without this PR, the board is not listed with
lsusb
anddfu-util --list
because it crashes in functionriotboot_usb_dfu_init
before the USB interface is initialized. With this PRlsusb
as well asdfu-util --list
should work.Issues/PRs references