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

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

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

1,089件の閲覧回数
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 返信

1,062件の閲覧回数
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 件の賞賛
返信