cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L432KC SRAM2_BASE incorrect in HAL header?

jschloss
Associate II

Hi,

The file stm32l432xx.h defines SRAM2_BASE as 0x10000000, but the datasheet https://www.st.com/resource/en/datasheet/stm32l432kc.pdf says that SRAM2 starts at 0x2000C000, is this a typo in the HAL header?

Thanks,

Jacob

#STM32L432​ #Hal​ 

1 ACCEPTED SOLUTION

Accepted Solutions

The Reference Manual says the SRAM2 is 0x10000000..0x10003FFF

For the L432 it shadows at 0x2000C000, see Figure 2 Memory Map

https://www.st.com/content/ccc/resource/technical/document/reference_manual/group0/b0/ac/3e/8f/6d/21/47/af/DM00151940/files/DM00151940.pdf/jcr:content/translations/en.DM00151940.pdf

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

View solution in original post

5 REPLIES 5

The Reference Manual says the SRAM2 is 0x10000000..0x10003FFF

For the L432 it shadows at 0x2000C000, see Figure 2 Memory Map

https://www.st.com/content/ccc/resource/technical/document/reference_manual/group0/b0/ac/3e/8f/6d/21/47/af/DM00151940/files/DM00151940.pdf/jcr:content/translations/en.DM00151940.pdf

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jschloss
Associate II

Oh ok, I didn't realize it was shadowed.

The manual could be clearer, there is also a reference to CCM SRAM which doesn't have any other explanation within the document, probably some cut-n-paste work going on here. Other RM make more explicit references to SRAMs getting mapped/shadowed at multiple addresses. @Imen DAHMEN​ 

Also bit-banding would only work on the 0x2000C000 situated memory.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Viktor POHORELY
ST Employee

Right, there should be put back name SRAM2 instead of CCM SRAM​ which appears accidentaly in latest releases of L4 RM's.

Imen.D
ST Employee

Hello @Community member​ ,

I will double check, but there should be put SRAM2 name in this platform instead CCM SRAM.

Your feedback has been reported internally for the related reference manual to update in coming release.

Thanks a lot for your contribution to the enhancement of our STM32 resources.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen