Part Number: TMS320F28335
Tool/software: Code Composer Studio
Hi TI engineer:
We use F28335 in our application. Today when we are debugging our program on one of our chips , it occurs an error .After then It seems like the flash could be written and read, but couldn't be erased any more.
The problem is described as following:
1. When we load program to flash, it reports:
" Flash Programmer:Error erasing Flash Memory. Trouble writing Memory Block at 0x33a000 on page 0 of length 0x289"
2.When run flash_api code to erase flash, the api returns 0x18, we check the manual to find this:
0x18 means STATUS_FAIL_PRECOMPACT
Erase operation failed because the pre-compaction portion failed.
The pre-compaction is applied to all sectors on the device.
The FLASH_ST structure will return a fail address corresponding to the first sector fails this step
3. flash_api code could write and read the flash, but as it can't be erased, we can't change the data written in flash any more
4.We try to use DEPLTION RECOVERY in ONCHIP TOOL. The operation proved to be invalid; the depRecovery() return 0X18 too.
Could you tell us why this happen? And how should we do to use flash again?
Thank you very much.