Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE
Hi,
hope you can help me with an issue I have with the TMS320F28335 Processor Flash2833x_API library.
I have written a J1939 bootloader that uses the flash API to erase and program applications into flash.
The API worked perfectly until I started to really test the resilience of the software and the programming.
If I turn the power off while the API is erasing I get the STATUS_FAIL_PRECONDITION which we would expect.
After an erase failure the software calls the Flash28335_DepRecover() Function which returns SUCCESS.
Trying to erase after the Flash28335_DepRecover() SUCCESS result still fails with the error code STATUS_FAIL_PRECONDITION.
To recover the situation I need to re-connect the C2000 emulator from Code Composer (not reloading the code) reset the processor
and run the code and the flash recovers from its failed state.
Obviously we are missing an action that needs to be done to recover the Flash from its failed state after the Flash28335_DepRecover() has succeeded.
Power-cycling the board does not recover the Flash…. Only re-connecting the emulator with code composer.
Please help
thanks