cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L452xx: Memory mapping calculation

StefanRickli
Associate II

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?

1 REPLY 1

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
Up vote any posts that you find helpful, it shows what's working..