Hello,
I believe I've recently introduced a bug into my code. When I try to reprogram a board running my firmware, it gives me the following output in CCS:
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: Flash Programmer: Error erasing Flash memory.
CortexR4: Flash Programmer: Error erasing Bank 0, Sector 0. Operation Cancelled.
CortexR4: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x20
CortexR4: Warning: (Error -1003 @ 0x2BC5) Internal error: Invalid parameter passed to function. Restart the application. If error persists, please report the error. (Release 5.0.429.0)
Cannot write to target
nowFlash gives me a similar error, about not being able to write memory at 0x0; I believe it gives me error 142. Notably, it seems to erase the first page just fine; it just can't write. I can also connect to these systems with JTAG, and have used this to verify the following:
Running from a valid clock source: either oscillator or FMzPLL at a valid setting, with CSVSTAT and CSDIS set appropriately.
CPSR is 0x600003D3 in one example: irq/fiq masked (I & F), in supervisor mode (M), endian bit (E) set, imprecise aborts disabled (A).
Running this on a fresh processor works fine, but then trying to reprogram it fails. I've managed to recover the processors by using nRST, or occasionally a lot of power cycling and system reset/cpu reset from the debug menu.
I believe something about my processor state is causing the F035 functions to fail and I could use some help narrowing down what could be causing the problem.
I'm using a TMS570LS10106SPGE with CCS 4.2.4.00033. I have a valid target configuration. I'm using a blackhawk XDS100v2 jtag emulator.
Thanks,
Tom