Other Parts Discussed in Thread: UNIFLASH
Tool/software: Code Composer Studio
Hi
I have a brand new F28335 control CARD with docking station, I'm using FLASH_API to erase and program. It worked fine for the last 3 weeks, but the last week when I tried to erase all the sector trough the FLASH_API it returns error 24.
I read the doc for FLASH_API and error 24 has something to do with erase fail .
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.
After that I couldn't load any program into flash using the debugger, it comes back with Load program error, like in this link
After that I tried to load a program into RAM and run the method from the FLASH_API which is called Flash28335_DepRecover, it took a while but it comes back with error 23 STATUS_FAIL_COMPACT
Erase operation failed because the postconditioning
(i.e. compaction) failed.
I also tried depletion recovery from UNIFlash but it fails all the time i try.
Now my question, what else can I try? is there an option for factory reset?
Thanks in advance for your help