主题中讨论的其他部件: BOOSTXL-DRV8305EVM
您好,
LAUNCHTXL-F2.8027万F + BOOSTXL-DRV8305EVM,
是否有如何使64k闪存的一部分持久化的示例?
我参加过这些论坛,但没有得到明确的答复。
我们非常感谢您提供任何帮助/建议。
谢谢!
Asha
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.
您好,
LAUNCHTXL-F2.8027万F + BOOSTXL-DRV8305EVM,
是否有如何使64k闪存的一部分持久化的示例?
我参加过这些论坛,但没有得到明确的答复。
我们非常感谢您提供任何帮助/建议。
谢谢!
Asha
您好,Manoj,
我想通过修改F2.8027万F.cmd文件和我的项目文件来使其正常工作:
在我添加的F2.8027万F.com文件中
" 。。
vib_buf_data :> D_RAML0 page = 1.
GRAPH_DATA :> D_RAML0 PAGE = 1
myPersistent :> D_RAML0 页=1----------- 我添加了"
然后在我的proj源文件中添加
uINT16_t test_persistent[4];
#pragma data_section(test_persistent,"myPersistent";
在我的main()中,我添加了以下代码,它似乎在重新启动调试器后保留了这些值:
IF (test_persistent[0]== 0)
{
test_persistent[0]= 2;
test_persistent[1]= 1;
test_persistent[2]= 3;
test_persistent[3]= 4;
}
否则,如果(test_persistent[0]== 2)
{
test_persistent[0]= 5;
test_persistent[1]= 7;
test_persistent[2]= 8;
test_persistent[3]= 9;
}
但是,如何保证test_persistent[]始终保存最新数据? 是否可以分配特定的闪存?
谢谢!
Asha