Skip to main content
StefanRickli
Associate
November 11, 2019
Question

STM32L452xx: Memory mapping calculation

  • November 11, 2019
  • 1 reply
  • 730 views

Looking at the datasheet of the STM32L452xx family, it's noted that SRAM size is 160K.

The memory mapping on page 86 notes the address range from 0x2000'0000-0x2028'0000.

But 160K is 0x2'8000 and not 0x28'0000, which would make the range from 0x2000'0000-0x2002'8000.

Am I making a calculation error, what am I missing?

Also, SRAM2 is mapped twice, between 0x100'0000-0x1000'8000 and 0x2028'0000-0x2002'F7FF.

Is that intended?

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
November 11, 2019

I believe the dual mapping is documented and intended. As I recall the 0x10000000 is TCM, check bus matrix diagrams.

The 0x20000000 space can also be shadowed at zero.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..