cancel
Showing results for 
Search instead for 
Did you mean: 

External SRAM with STM32L496

chris puglia
Associate
Posted on November 17, 2017 at 23:06

Hello,

I am trying to find examples of code where the external SRAM is mapped using the linker file. I saw an example of it being done here (

https://community.st.com/0D50X00009XkfB3SAJ

 ). However, all the uses of the SRAM eg.[the  HAL_SRAM_Write_32b() function] in the example code make use of locking. If anyone has examples of using external RAM as general purpose RAM it would be greatly appreciated. 

FYI this is being done on the STM32L496G-DISCO board

null
2 REPLIES 2
Posted on November 18, 2017 at 18:39

In order to use SRAM as a common space, you need to add a section to  * .sct,  * .ld and etc is the file.

Using definitions, create pointers to arrays and variables in this section.

Well, set up the IDE so that it would see this section is shared space.

Posted on November 24, 2017 at 15:24

Hello Chris, did you able to success with external SRAM access?