Skip to main content
vbruno1
Associate III
May 21, 2016
Question

read and write SRAM internal

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.
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    May 21, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..