Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
In recent days, I was working on field upgrade ability through USB. My application code needed some rework in the code section regarding the flash writing. Out of the blue, the application seems to fail consistently in sections that were working fine before.
Symptom: calling Fapi_setActiveFlashBank(Fapi_FlashBank0); resulted in instruction pointer pointing to 0x3e493 (Boot ROM ESTOP instruction). The debug trace is lost, RPC holds the address of USER10_ISR or PIE_RESERVED_ISR(), SP in low range. To restart the code I have to Terminate and restart the debug session.
How can I figure out what is going on?
In a similar situation (Fapi_initializeAPI(), landing at address 0x3e443), I backtracked code to an earlier state and step by step added the changes back in. This made the problem go away for a while. Now I am back at the problem mentioned above after more code changes.
I have used this prototype board for a while. The CPU is powered over USB.