Hello there!
I have a problem with a board I developed based on F5659. It used to work very well
as it usually does. But since yesterday I experience problems when loading my program
to flash (I'm using IAR, the latest version).
Everyime I try to load my program to the chip, it says:
Could not erase device memory : (Erase) type = 0c01, address = 0x8000, length = 0x80000
I have verified that:
- the board voltage is fine (3.3V)
- the board voltage is fed back to the emulation tool
- the reset signal is sent (about 6 ~ 8 ms)
- There is a kind of signalling on TDI, TDO, TMS, TCK
Beside this, the same problem happens on all my boards (I have made 10 of them).
Another disturbing fact:
I have tried to modify the FET debugger preferences because I read some feedback about
it. It does nothing in my case. The voltage preferences have no invluence (override default
and set 3.3V), manual selection -> 4 wire JTAG.
I know that the boards are not fried because I can compile the program, make extra output,
and load the file using TI's field upgrade utility by USB.
And last thing I just noticed: If I select "attach to running target" in the preferences,
then connect (ctrl D), then the debugger is connected to the program. At that point, if I stop the
program, unselect "attach to running target" and then re connect (again ctrl-D), then
the new program is loaded (no erase problem anymore) and I can debug.
Then the subsequent stop, correct and reload all work as they used to.
But if I stop IAR completely or unplug the target, then I will back into the same
situation. So basically the IDE start up is as follows:
- Start IDE;
- Open preferences;
- Check "attach to running target"
- Control-D to go to debug mode
- Stop the program
- Reopen preferences
- Uncheck "attach to running target"
- Then ctrl-D to reload the new program
Does anyone know about this problem? Is there a better way than my workaround?
By the way, I have verified on CCS that I can't erase the flash either.
Thanks for any hint,
Pascal