Hi, My issue is related to debugging a XC167 on custom hardware with the Ulink2 debugger + uVision. It seems this has something to do with my reset supervisor circuit (simple reset IC- LM3722). I can confirm that I am able to program and run the device successfully after power up but cannot however get the device to enter debug mode. All that happens is that after the code is loaded the debugger sticks at some random address. However if I remove the reset IC from the board I am then able to debug successfully? Anyone come across this issue before?
Thanks in advance for replies, Kevin McGregor
Yes, external supervisor chips tend to interfere with debugging --- all kinds of it, not just JTAG.
You'll have to add circuitry to inhibit the supervisor's reset or power-off feature during debugging. Many supervisors have special input pins for exactly that purpose. Others will have to be disabled more radically (tie the supervisor's reset output high, or provide watchdog triggers independent of the CPU).
None of this has anything to do with Keil tools, though.