This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to limit the use of 4 part of ESRAM?

About my last question 

TI engineer told me that just use 3 of ESRAM and use 1 ESRAM as saving space.

But I didn't find a way to limit the program to just use 3 of them, could you tell me how to limit the program ?

  • One method would be to modify your linker command file to only utilize 3/4ths of the ESRAM and then access the additional 1/4th of ESRAM by means of pointers.

    A second method would be to utilize the MPU to protect a "save" area in the ESRAM. Please see the application note located here for more information on setting up and the MPU: http://www.ti.com/lit/pdf/spna120
    Additional information on utilization of the MPU can be found in the Cortex-R4 TRM located on the ARM website.
  • User,

    To leave 1/4 of the SRAM as 'storage area' remove it from the linker command file. i.e. take this out of the definition of RAM.