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.

TMS320F28335: Flash28335_API_V210库函数Flash_Program执行后返回故障码STATUS_FAIL_PROGRAM

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

最近在做OTA在线升级,调用库函数Flash_Erase擦除空的备份区,再调用库函数Flash_Program后写入程序数据失败,返回的是STATUS_FAIL_PROGRAM,仿真看FlashStatus结构体在首地址就没写进去,还是0xFFFF。尝试过在Flash_Program之前加CsmUnlock,解锁返回结果是success,但flash依旧写入不成功。另外,上述操作都是在关闭全局中断和看门狗状态下进行的。第一次使用这个lib,希望能够提供一些指导或者编程调试建议,感谢!