Relocating code from FLASH to RAM (All file)

cancel
Showing results for 
Search instead for 
Did you mean: 

Relocating code from FLASH to RAM (All file)

Jump to solution
197 Views
cerma
Contributor III

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):

cerma_0-1611583463750.png

My changes in linkerfile:

cerma_1-1611583492443.png

Settings my Project:

cerma_2-1611583515033.pngcerma_3-1611583526210.png

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.

Labels (1)
0 Kudos
1 Solution
141 Views
jozef_maslik
Contributor II

Hi Jaroslav,

please remove *(.text*) from your .text section
jozef_maslik_0-1613556735521.png

why/more info you can read here (MCUXpresso IDE User Guide - 17.15.1 Relocating code from FLASH to RAM):

jozef_maslik_1-1613556777213.jpeg

 

And if you want to use MCUXpresso managed linker file...

jozef_maslik_2-1613556986381.png

you must add linkerscripts to your project, like in the example "evkmimxrt1060_flash_component_nor":

jozef_maslik_3-1613557053219.png

...changes to memory map will effects linker file only in the managed linker file mode.

jozef_maslik_4-1613557398913.png

 

Regards,
Jozef

 

 

View solution in original post

0 Kudos
1 Reply
142 Views
jozef_maslik
Contributor II

Hi Jaroslav,

please remove *(.text*) from your .text section
jozef_maslik_0-1613556735521.png

why/more info you can read here (MCUXpresso IDE User Guide - 17.15.1 Relocating code from FLASH to RAM):

jozef_maslik_1-1613556777213.jpeg

 

And if you want to use MCUXpresso managed linker file...

jozef_maslik_2-1613556986381.png

you must add linkerscripts to your project, like in the example "evkmimxrt1060_flash_component_nor":

jozef_maslik_3-1613557053219.png

...changes to memory map will effects linker file only in the managed linker file mode.

jozef_maslik_4-1613557398913.png

 

Regards,
Jozef

 

 

View solution in original post

0 Kudos