cancel
Showing results for 
Search instead for 
Did you mean: 

read and write SRAM internal

vbruno1
Associate III
Posted on May 21, 2016 at 12:11

I would read and write about 10kB of 64kB SRAM internal with STM32F103ZE.

This micro have the SRAM at start address 0x20000000.

How can I use and save the area of RAM, sure this area isn't changed in real time during the program is running? 

What commands should I use?

Thank so much.
1 REPLY 1
Posted on May 21, 2016 at 16:42

Ok, so create a static allocation, dynamically allocate from the heap with malloc, or carve out memory in the linker script or scatter file.

Verify the content with a checksum, CRC, or hash of the region. Use as an array or pointer.

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