push big array to DDR3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

push big array to DDR3

635 次查看
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 回复

377 次查看
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 项奖励