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.

TMS570LS20216ASPGE Error on Boot - Unable to connect

Other Parts Discussed in Thread: UNIFLASH

I've been doing some testing with a TMS570LS20216ASPGE microcontroller development stick.  I am not sure what triggered the issue whenever I plug the device into a USB port, the red error light comes on immediately.  The JTAG led is flashing a little faster than 1 Hz after I issue the erase command.
I was having problems running the tests so I attempted to use nowFlash 3.42 to erase the memory on the board.  That resulted in Error 199 - Unable to connect to the device.  I searched through the forum and it looked like at least one other person had luck erasing the board with UniFlash.  I attempted this and received the following error.

Error connecting to target:

(Error -1170 @ 0x0)

Unable to access the DAP.  Reset the device, and retry the operation.  If error persists, confirm configuration (done), power-cycle the board (done), and/or try more reliable JTAG settings.

(Emulation package 5.1.402.0)

I'm out of ideas.  I've tried multiple reboots of both my machine and the device.  I've also tried different USB ports.  Any troubleshooting help would be greatly appreciated.

Thanks,

Aaron

  • Aaron,

    This issue might have occurred due to a bad program being loaded into the LS20216A flash. You're seeing the ERROR led come on, which is also an indication of such a problem.

    Try right clicking on the device CCXML in the Debug perspective of CCS. Then from the context menu - try 'show all cores'. You should see IcePick and DAP. If you connect to IcePick**, you can issue a 'System Reset'. Then try connecting to DAP after that.

    Next try connecting to the CPU. this may fail but it'll give you a 'retry' button. Try repeatedly resetting the device (warm reset) and hitting 'retry a bunch of times. Usually you'll hit a sweet spot - between the device coming out of reset and it executing whatever bad code is causing the part to not be able to connect - after a reasonable number of attempts this way.

    If it doesn't work, then you can try two mods to the hardware to increase your chances with the above procedure.
    1st - if you remove the crystal to slow the part down, this will increase the sweet spot size and make it easier to hit. try that first.
    Remember to retry more than once (10's of times even) until you connect.

    Then if that doesn't work, if you can modify your board so that VPP is initially 3.3V on power up but then you have a way to drop it to 2V during the procedure above this also can help. It's hard to do this ... you can't just lift VPP because it needs to be there initially .. but it should make a very big sweet spot.

    ** If you are unable to connect to IcePick then you might have blown the security key but this is usually not the case.
    However if you can't get IcePick then I'd call it a day - as the other steps above won't help then.
  • Hi Aaron,

    Were you able to unbrick your board?
  • Yes.  A combination of hard resets and resetting via the onboard switch eventually got the board to recognize the USB connection and I was able to erase and reprogram the board.