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.

AM2632: Read Only area configuration support

Part Number: AM2632


Tool/software:

Hi,

I am using AM263x_CC controller with External Flash & TICLAN compiler.

As it doesn't support XIP , so whatever data flashed in External Flash will be executed in SRAM(?, please correct me)

so I want to create a dedicated Read Only Section in that SRAM area by updating existing Linker file(lnk_r5_am263_CLANG.cmd) this way:




And with these changes after compilation, the variables placed under the dedicated section in .map file with RX attributes.

Now, apart from these changes, do I need to update the MpuP_armv7r.c file too to have the R/W/RW access for that dedicated section ? 

Thanks !

  • Hi Nidhi,

    so I want to create a dedicated Read Only Section in that SRAM area by updating existing Linker file(lnk_r5_am263_CLANG.cmd) this way:

    Yes you can do that, make sure that the attribute the is set to ro.


  • And with these changes after compilation, the variables placed under the dedicated section in .map file with RX attributes.

    Now, apart from these changes, do I need to update the MpuP_armv7r.c file too to have the R/W/RW access for that dedicated section ? 

    Another thing that would be needed in syscfg, the MPU attribute setting chnage the region to Supervisor RD and User Read

    (In below picture select the address accordingly.

  • Hi Nilabh,

    Thanks for your reply and Thanks for confirming the updates related to MpuP_armv7r.c file.

    This changes would help to have dedicated RO region in SRAM area and this resolves my issue.