1.3.20 1.4.18 1.5.19 1.6.19 1.7.20 1.9.16 1.10.18 1.11.18 1.12.19 1.13.17 1.14.12 1.15.13 1.16.15 1.17.15 1.18.15 1.19.15 1.20.15 1.21.16 1.22.20 1.23.19 1.24.16 1.25.15 1.27.15 1.28.18 1.29.19 1.30.14 1.31.14 1.32.22 1.33.14 1.34.13 1.35.9 1.36.12 1.37.13 1.38.18 1.39.15 1.40.17 1.41.14 1.42.13 Random Access Memory (RAM)

The Random Access Memory (RAM) module provides an interface to perform write and read on the device's Internal SRAM or External DRAM memory locations

Using The Library

The Internal SRAM or External DRAM memory locations can be read/written using the simple memcpy based Read and Write API's.

This PLIB is mainly used by Memory Driver when configured with File system for treating RAM as a media to store files.

The example code below demonstrates how to write and read from RAM location.

uint8_t buffer[256];

RAM_Write( (uint32_t *) buffer, 256, 0x20000000);

RAM_Read( (uint32_t *) buffer, 256, 0x20000000);

Library Interface

Random Access Memory peripheral library provides the following interfaces:

Functions

Name Description
RAM_Read Reads length number of bytes from a given address in RAM
RAM_Write Write length number of bytes to a given address in RAM
RAM_IsBusy Returns the current status of RAM