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.
您好、
我将浏览建议的擦除闪存存储的方法。
当我转储存储器时、所有设置为0xFF 将会产生第三个扇区。
我忘记了该扇区是否有不同的保护
提前感谢、Lukas
Fapi_StatusType retVal = InitFlash(); retVal = Fapi_setActiveFlashBank(Fapi_FlashBank0); int i = 0; EALLOW; for(i=0;i<14;i++) //14 sectors, erase one by one { Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, (uint32 *)SectorAdrsBank0[i]); // Wait until FSM is done with erase sector operation while (Fapi_checkFsmForReady() != Fapi_Status_FsmReady){} } EDIS;
代码在 RAM 中执行
#pragma CODE_SECTION(".TI.ramfunc");
但是、包含的和使用的 FlashAPI.lib 库是否可以存储在闪存中的该位置?
尊敬的 Lukas:
我将在几天内回顾并返回给您。
谢谢、此致、
Vamsi
非常感谢、您的另一篇文章解决了我的问题:
e2e.ti.com/.../tms320f28377d-running-library-functions-from-ram
必须更改我的链接器脚本才能从 RAM 运行库
GROUP { .TI.ramfunc { -l FlashAPI_F28002x_FPU32.lib } } LOAD = FLASH_BANK0_SEC0, RUN = RAMLS4567, LOAD_START(RamfuncsLoadStart), LOAD_SIZE(RamfuncsLoadSize), LOAD_END(RamfuncsLoadEnd), RUN_START(RamfuncsRunStart), RUN_SIZE(RamfuncsRunSize), RUN_END(RamfuncsRunEnd), ALIGN(8)
尊敬的 Lukas:
很高兴它能为您提供帮助。 我要关闭此帖子。
谢谢、此致、
Vamsi