由于程序空间有限,想把初始写数据的程序删掉,直接把数据存到FRAM,怎么做?
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.
hao qi ,
你是想把一些初始化数组直接放到FRAM区吗?
FRAM 是Data和Code动态分配的,但是总大小肯定还是受限于总共有多少FRAM的,譬如总共16KB FRAM, 那么分配到FRAM的code和Data总大小不能超过16KB。
具体如何分配,需要使用CCS中的CMD文件或者IAR中的.xcl文件来总体管理。
具体可以参考文档:“”MSP430™ FRAM Technology – How To and Best Practices“”
http://www.ti.com/lit/an/slaa628/slaa628.pdf
其中有cmd和xcl文件具体的Memory Partitioning Support in the MSP430 IDEs说明。你看想把哪部分放在FRAM中。