Hi All,
I need to move the code (code/rodata) of some files from Flash to Ram. I use MCUXpresso v11.2.0, iMXRT1061. I follow MCUXpresso_IDE_User_Guide.pdf (17.15.1 Relocating code from FLASH to RAM).
Nevertheless, I still see the same values in the report (SRAM-ITC still 0B):
My changes in linkerfile:
Settings my Project:
If I only move a function (AT_QUICKACCESS_SECTION_CODE()), then everything works.
Do I have to set anything else? Where am I making mistake?
But I need to move entire files.
Thank you for answer.
Jaroslav C.
Solved! Go to Solution.
Hi Jaroslav,
please remove *(.text*) from your .text section
why/more info you can read here (MCUXpresso IDE User Guide - 17.15.1 Relocating code from FLASH to RAM):
And if you want to use MCUXpresso managed linker file...
you must add linkerscripts to your project, like in the example "evkmimxrt1060_flash_component_nor":
...changes to memory map will effects linker file only in the managed linker file mode.
Regards,
Jozef
Hi Jaroslav,
please remove *(.text*) from your .text section
why/more info you can read here (MCUXpresso IDE User Guide - 17.15.1 Relocating code from FLASH to RAM):
And if you want to use MCUXpresso managed linker file...
you must add linkerscripts to your project, like in the example "evkmimxrt1060_flash_component_nor":
...changes to memory map will effects linker file only in the managed linker file mode.
Regards,
Jozef