How to place array in specific bank and align it

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

How to place array in specific bank and align it

ソリューションへジャンプ
594件の閲覧回数
michaeldkfowler
Contributor III

Hello,

 I am trying to place an array in a specific memory bank and align it. I tried the following and it didn't work:

 

__BSS(RAM) SDK_ALIGN(static ULONG usb_cached_memory[USBX_MEMORY_SIZE / sizeof(ULONG)], 64);

タグ(1)
0 件の賞賛
1 解決策
490件の閲覧回数
michaeldkfowler
Contributor III

This worked:

__attribute__ ((section(".bss.$NCACHE_REGION"), aligned(8)))static ULONG usb_memory[USBX_MEMORY_SIZE / sizeof(ULONG)];

 

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
491件の閲覧回数
michaeldkfowler
Contributor III

This worked:

__attribute__ ((section(".bss.$NCACHE_REGION"), aligned(8)))static ULONG usb_memory[USBX_MEMORY_SIZE / sizeof(ULONG)];

 

0 件の賞賛
571件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @michaeldkfowler 

Do you use MCUXpresso IDE? If yes, please refer to <MCUXpresso IDE User Guide> ->

19.13 Placement of specific code/data Items .

 

BR

Alice

0 件の賞賛
565件の閲覧回数
michaeldkfowler
Contributor III
The guide does not answer my question
0 件の賞賛
497件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @michaeldkfowler 

So how do you think I can help you?

How about send a simple project that includes your requirements,  I help you change.

BTW, which MCU do you used?

 

BR

Alice

0 件の賞賛