Relocating code from FLASH to RAM (All file)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Relocating code from FLASH to RAM (All file)

跳至解决方案
1,931 次查看
cerma
Contributor IV

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.

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,875 次查看
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

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,876 次查看
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

 

 

0 项奖励
回复