用28035的flash储存数据,利用仿真器下载程序到flash后运行能够顺利用API函数擦除flash,而掉电重新上电后就不能成功擦除了,返回STATUS_FAIL_PRECONDITION,请问这情况如何解决??
Susan Yang:
请您先参考一下之前的FAQ说明,看能否解决问题。若还是不行的话,请给出更加详细的信息,谢谢
Precondition Failure
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.
TI中文支持网



