1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/stm32: fix RAM_LEN for F427, F429, F437, F439 models

These models have 256 kByte RAM, but the upper 64 kByte are used as CCM data RAM accessible at 0x1000:0000. The access to 0x2003:xxxx leads to a hard fault.
This commit is contained in:
Gunar Schorcht 2022-11-15 22:29:34 +01:00
parent 78ee505aa1
commit 7b99a5152f

View File

@ -159,12 +159,14 @@ ifeq ($(STM32_TYPE), F)
RAM_LEN = 32K
else ifneq (, $(filter $(STM32_MODEL), 411 446))
RAM_LEN = 128K
else ifneq (, $(filter $(STM32_MODEL), 412 427 429 437 439))
else ifneq (, $(filter $(STM32_MODEL), 412))
RAM_LEN = 256K
else ifneq (, $(filter $(STM32_MODEL), 413 423))
RAM_LEN = 320K
else ifneq (, $(filter $(STM32_MODEL), 415 417))
RAM_LEN = 192K
else ifneq (, $(filter $(STM32_MODEL), 427 429 437 439))
RAM_LEN = 192K
else ifneq (, $(filter $(STM32_MODEL), 469 479))
RAM_LEN = 384K
endif