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.
最近在做OTA在线升级,调用库函数Flash_Erase擦除空的备份区,再调用库函数Flash_Program后写入程序数据失败,返回的是STATUS_FAIL_PROGRAM,仿真看FlashStatus结构体在首地址就没写进去,还是0xFFFF。尝试过在Flash_Program之前加CsmUnlock,解锁返回结果是success,但flash依旧写入不成功。另外,上述操作都是在关闭全局中断和看门狗状态下进行的。第一次使用这个lib,希望能够提供一些指导或者编程调试建议,感谢!
有启用CSM吗?
Flash_Erase的返回值是什么?
file:///C:/ti/c2000/C2000Ware_5_00_00_00/libraries/flash_api/f2833x/28335/docs/Flash2833x_API_Quickstart.pdf
可以对着手册中的步骤再检查一下