Hello,
We have checked at on IMX7D(Rev 1.3) and doesn't find issue with the address 0x8020_0000
for code section with cache enabled/disabled.
Meanwhile, we do have the suggestion as per the below,
One can change the m_data to "0x9ff00000" in the platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_ocram.ld,
then follow the steps to load binary into the OCRAM from Getting started doc of FreeRTOS bundle.
If code size(text) is too higher that it cannot fit into the OCRAM then one can change DDR linker script from file platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_ddr.ld as per below,
m_interrupts ORIGIN = 0x9ff00000, LENGTH = 0x9ff00000
m_text ORIGIN = 0x9ff00240, LENGTH = <As per need>
m_data ORIGIN = 0x9ff08000, LENGTH = <As per need>
Then just follow the steps to load the binary at address "0x9ff00000" into external RAM.
Hope the above information will be helpful.
Have a great day,
Yuri
------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer
button. Thank you!