2019-11-11 02:43 AM
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?
2019-11-11 02:58 AM
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.