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.

F28335 使用Flash_API在线升级 ,升级相同的bin文件,多次升级后,有时会出现flash擦除失败的现象,并返回异常码#21

F28335 使用Flash_API,调用Flash_API库使用串口(UART)在线升级 ,通过下载器下载后,进行在线升级,发现在线升级相同的项目,相同的Bin文件,多次升级测试,有时会突然出现flash擦除失败的现象,并返回错误码#21,重新上电后,程序确实没有擦除,只要出现过一次串口升级失败,之后再也无法通过串口(UART)在线升级了,但是重新通过下载器下载程序,又可以使用串口在线升级

  • 请您看一下 processors.wiki.ti.com/.../FAQs

    Q: Why is the following the error message generated,"Flash API Error #21 The Erase operation failed the precondition step" while using the CCS flash plugin? ===

    A: The most likely cause of this error is accidently stopping the flash erase process before it successfully completes. The error indicates a bad sector or sectors in flash memory. Verify the bad sector(s) by performing the following to avoid using them.

    . Invoke the flash plug-in, CCS->Tools-> On-chip programmer.
    . Perform the erase operation only on all the sectors. You should see the same error.
    . Perform the erase operation only on each individual sectors. By performing this, you should see which of your flash sectors are bad.
  • flash扇区没有坏,因为串口升级失败后,通过编程器还是可以直接下载的,并且通过编程器下载后,又可以串口升级了,但是重复升级后,又会出现flash擦除失败,感觉存在一定的随机性
x 出现错误。请重试或与管理员联系。