How to place array in specific bank and align it

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to place array in specific bank and align it

Jump to solution
1,208 Views
michaeldkfowler
Contributor IV

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);

Tags (1)
0 Kudos
Reply
1 Solution
1,104 Views
michaeldkfowler
Contributor IV

This worked:

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

 

View solution in original post

0 Kudos
Reply
4 Replies
1,105 Views
michaeldkfowler
Contributor IV

This worked:

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

 

0 Kudos
Reply
1,185 Views
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 Kudos
Reply
1,179 Views
michaeldkfowler
Contributor IV
The guide does not answer my question
0 Kudos
Reply
1,111 Views
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 Kudos
Reply