Other Parts Discussed in Thread: C2000WARE
After getting help in a previous thread I've been able to make a lot of progress developing my custom board, but I'm intermittent occurrences of "Error connecting to the target: (Error -2131 @ 0x0) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)". I've read through a lot of other threads regarding this error, but my circumstances are someone odd.
Basically, I can power up my custom board and start a debug session via my XDS200 and Blackhawk JTAG isolator. However, after halting the debugger and trying to start a new session (to upload modified code, for example), I will sometimes (maybe one out of four) get the error. And once I see this error, it will persist until I completely power cycle the board.
Some other potentially useful clues:
- Even resetting via pulling XRSn low has no effect.
- While debugging I am often controlling a large SMPS on the same board. But I've never seen any debugger issues appear while in the middle of a JTAG session. And that power circuitry is always disabled when I halt one session and attempt to start another. So I don't think EMI is the culprit. I believe it's actually occurred without ever activating the SMPS a couple times. I also don't think ESD is a factor.
- But even after the issue manifests my blinking LEDs suggest that the code in FLASH is running as I would expect.
- I've seen this behavior on all three of my custom boards so far. I even reflowed the MCU one just to make sure it wasn't an assembly defect. The previous thread I linked above shows the JTAG connections on the custom board, I believe I've followed the hardware guidelines faithfully.
- I've tried watching the supply rails on a scope for dips/bumps/spikes, but haven't seen more than +/-100mV on VDDIO and VDDA and maybe +/-40mV on Vdd.
Basically I haven't been able to correlate this behavior with anything else. Any suggestions are appreciated.