Hi Chris,
thanks for responding.
I am using Daniel Malik's Turbo-BDM-Light for Coldfire or whatever the official name is.
Target power cycling does not help. Neither does disconnecting or reconnecting the pod, or disconnecting the
USB connection. The communication between PC and pod seems to be fine also, because when I disconnect the pod from the target, I get some "Can't connect to target" message. With the pod connected to the target, I am able to run the hardware tests on the target without error (well, I abort them after a few seconds, because I only want to test the communcation), and I'm able to run erase/program/verify to the point where some code is downloaded into the target CPU and then fails with an "error reading" or "error writing".
Indeed, a DLL may stay loaded, but I also tried to shut Target and PC down, and restart everything, and the situation persisted. Maybe there is a certain sequence that must be adhered to, I don't know. I power cycled the target before booting Windows, but I don't know if that's relevant. The pod should not care, IMO.
You see, I have already tried to logically isolate what is wrong, and I was about to pronounce the processor dead, when the next day everything worked again, and with the system working I was able to plug/unplug the pod, disconnect/reconnect USB, power cycle, everything worked again and I haven't been able to reproduce the problem, until it came back yesterday. I'm new to working with the ColdFire, so I've only had 6 sessions so far, with the failure occurring twice so far. So my hope is the problem will be gone next time, but I don't know for sure, and it takes the fun out of working with ColdFire I can tell you, whatever the reason is.