Place part of code on external flash ____attribute__((section(".name")) [IMXRT1064]

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

Place part of code on external flash ____attribute__((section(".name")) [IMXRT1064]

692 次查看
Alberto_isorna
Contributor II

Hello, 

I'm currently working with the MIMXRT1064-EVK, that has 4Mb of internal flash. 

I'd like to place some code, like the images, in the external flash by the Flexspi because this internal flash is not enough for me.

 

How could I achieve this? I'm trying to place it by setting the__attribute__((section(".rodata.$Flash2")))  to the variables but is not working.

find atteched my memory repartition.

 

 
 

Any help is wellcome, best regards,

Alberto. 

 

标签 (1)
0 项奖励
1 回复

665 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi  Alberto:

 

Please refer to Erich's @ErichStyger  article:

Defining Variables at Absolute address with gcc

https://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/

 

I hope it helps

 

Regards

Daniel

标记 (1)
0 项奖励