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上? 谢谢!
mangui zhang:
不行直接指定地址吧 指定到flash中
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上? 谢谢!
Linda:
回复 mangui zhang:
您好!
请参考以下编译器对于不同section的位置设定:

TI中文支持网
