Relocating code from FLASH to RAM (All file)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Relocating code from FLASH to RAM (All file)

ソリューションへジャンプ
1,928件の閲覧回数
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,872件の閲覧回数
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,873件の閲覧回数
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 件の賞賛
返信