Quantcast
Channel: C2000™︎ 微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 12291

静态指针数组如何保存在FLASH上.

$
0
0
CPU: TMS320F2812
CCS6.0
目的:   
         把数组testarray存在FLASH上, 并且把另一个数组testarrayaddress(保存有testarray数据地址)也存在FLASH上.
变量定义如下:
const int testarray[4]={0,1,2,3};
const int * testarrayaddress[2]={&testarray[1],&testarray[3]};
可是在编译后, 
const int testarray[4]={0,1,2,3}; 保存在FLASH上了.
而:
testarrayaddress数据就没有保存在FLASH上,
testarrayaddress的变量地址在RAM中, 请问如何写才能,都存在FLASH上? 谢谢!

Viewing all articles
Browse latest Browse all 12291

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>