This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I have a SEGGER J-Link EDU that I am attempting to connect to program/debug a TMS570LS0432 with. I am using this microcontroller on my own custom board, and have gotten the debugger to work with a development board for the microcontroller (TMS57004 Launchpad). When attempting to connect to the microcontroller, I receive the following error:
I'm sort of at a loss as to what the hold up could be. Some things of note that I've noticed/tried so far are:
1.) I've tried putting a 2.7k pullup from nRST to VCC on the JTAG header to ensure that the device is in reset when attempting to program, as per this thread, but it doesn't seem to fix the issue.
2.) The connections from the debugger to my board aren't using the 20 pin ribbon cable that came with the J-Link, as my board doesn't follow any standard pinout. I'm only connecting one of the ground pins on the debugger to the board, and although I'm sure it would be ideal if I connected more, I can't imagine this being my issue (I'm not trying to connect at a high speed).
3.) I've referenced the schematic for the TMS57004 and there's nothing different between my debugging circuit and the one on the Launchpad. I don't have any pullups on TMS, TDI, or the clock lines, but these are marked as DNP on the schematic (which seems off to me, but I'll trust it).
4.) The light on the J-Link turns orange after I attempt to connect and stays that way until I close J-Link Commander.
I'm running a little thin on ideas as to what could possibly be wrong with my setup. It's certainly possible that there's an issue with my board, but as far as I understand, the only thing that could cause a problem would be an issue with power supply, and that all seems to be in order, so I'm kind of at the end of what I can check without actually connecting the debug probe. Does anybody happen to know why I can't connect the J-Link EDU to a custom board? Are there any hardware/design considerations I may have missed? Is there any way to check if the microcontroller is even working if it's never been programmed and I can't connect to it with my debug probe?
Thank you for your time,
Thomas Meier
nTRST is pulled high by the debugger when attempting to program, and I've verified this with an oscilloscope. It is not held low or high by anything on the board, but I've also tried to just hold it high with a 10k pullup, with no change.
I don't have a good scope on hand to accurately assess that the clock signal is clean or otherwise, but I've captured the signal with a logic analyzer and it seems to be consistent, if not a little beyond my ability to interpret. At 4000KHz programming speed, every eight pulses, there is one that is slightly longer than the others.
I'm guessing that since it's so consistent, this is an inherent part of how JTAG works, although I'm including this note in case this is *not* intended.
I don't happen to have an XDS debugger of any sort on hand, unless there is a way I could somehow route the one from a development board to my own hardware.
After screwing with this a bit more, I have a couple questions. I'm guessing its an issue with my hardware.
1.) I have continuity across the Kelvin ground and the power supply ground. These are definitely not connected on my PCB; are these connected internally in the microcontroller?
2.) I'm having an interesting issue concerning grounding because of a missed trace on my PCB. The schematic is attached; the -3.3V net (which is a misnomer, this is ground) is not connected to the GND net that the processor/1.2V regulator is on. This was fixed by adding a jumper between the GND and -3.3V nets. However, upon throwing a logic analyzer at it, I noticed that I get absolutely no activity on TMS, TDI, TDO, etc. I start getting things on these lines when disconnecting this ground. The interesting thing is that with these grounds left unconnected, and before attempting to program, I get 0V between the reference pin and output pin on the regulator, but after attempting to program, I get 1.2V across these. Note that the ground ("-3.3V') on the JTAG header is not connected to the same ground that the microprocessor is on; I have absolutely no idea how the debugger attempting to connect seems to ground the regulator.
Is there anything I don't know about the microcontroller that could explain this? This is obviously a design issue, and is probably way outside the realm of what you're able to answer, but I though I'd ask in case you happen to know anything that could explain it.
Thank you for your time,
Thomas Meier