Jump to content

Writing into the SRAM

Recommended Posts

Hello All,


I am new to Stellaris programming and need your assistance. 


I am trying to read the SRAM contents at time of boot. For this, I need to write an input bit pattern into the SRAM to validate the results after boot.


Please let me know how to write into the SRAM and modify the SRAM contents.


I am using Stellaris LM4F120 and µvision4 as my IDE.






Link to post
Share on other sites

No idea about uvision4, but if you happen to have a "startup_<something>.c" file, you would put some code in the ResetISR() function to "color" the SRAM with a bit pattern.  Could probably be in C, not necessarily ASM.  Be sure not to color it all, since your own code uses SRAM for stack space.  You'll have to figure out by experimentation how far you can go with that.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...