push big array to DDR3

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

push big array to DDR3

418件の閲覧回数
JackyUM
Contributor I

Hi all,

 

I am using MSC8156EVM board. I have to use big array in the program which the hap and stack are too small to store all of them. Could anyone tell me how to push this kind of data to the DDR3 so that I can store a huge amount of data? Please give me a simple example

 

Thanks

0 件の賞賛
1 返信

160件の閲覧回数
Jim95
Contributor III

Hello,

 

You can place a array in DDR or other  memories like this:

 

#pragma data_seg_name ".local_data_ddr0"#pragma bss_seg_name  ".local_data_ddr0_bss"uint8_t    buffers_space[TEST_NUM_OF_BUFS*TEST_DATA_SIZE];

#pragma align buffers_space ARCH_CACHE_LINE_SIZE

 Here it's in the DDR0 but you change the segment to place it in M3, DDR1 ...

 

Regards

 

Jimmy

0 件の賞賛