如果要在infomation flash中初始化一些系统参数和数据,在CCS中如何进行定义?
在IAR中可以使用_root关键字进入定义,使用 #pragma location = 0x1000 指定位置。
在CCS中的帮助文件里没有发现关于编译器的使用手册,希望TI的高手进行指点。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
lin,
information Flash毕竟还是Flash,我们一般很少直接通过编译器将某些数据定义到它的空间里面。
针对初始化的参数和数据的使用,我们一般都将information flash当做EEPROM来使用,你需要在第一次的编程中将参数和数据写到information flash的B,C,D三个sector中的一个,然后在下次烧写程序的时候,因为程序都是烧到相应的flash里面,烧写过程不对information flash端做任何的擦除操作。
这样的话,当系统起来后,就能从information flash里面去读相应的数据和参数了。
谢谢