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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

304 Views
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. 

 

Labels (1)
0 Kudos
1 Reply

277 Views
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

Tags (1)
0 Kudos