Skip to content

Commit

Permalink
cpu/stm32: fix RAM_LEN for F427, F429, F437, F439 models
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gschorcht committed Nov 15, 2022
1 parent 78ee505 commit 7b99a51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpu/stm32/stm32_mem_lengths.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b99a51

Please sign in to comment.