This is the documentation for the latest (main) development branch of HPM SDK. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

6.9. SRAM example

6.9.1. Overview

SMA example project shows performance of reading and writing data in internal or external SRAM memory.

6.9.2. Board Setting

External SRAM module is required.

6.9.3. Running the example

When the project runs correctly, and the serial port terminal will output the following information:

sram example
comparison test: from 0x48000000 to 0x48001000
**  u32 comparison succeeded
**  u16 comparison succeeded
**  u8 comparison succeeded

6.9.4. Hint

When SRAM interface is used to access external devices, such as FPGA, SRAM address space should be configured as non-cacheable.