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.

Error while executing OnTargetConnect(): Could not read register ST1: target is not connected

Other Parts Discussed in Thread: TMS320F28335, UNIFLASH

I am using TMS320F28335. I am getting following error, when I try to download program.

C28xx: Unable to determine target status after 20 attempts
C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
C28xx: GEL: Error while executing OnTargetConnect(): Could not read register ST1: target is not connected
at (ST1&~(0x0100)) [f28335.gel:312]
at C28x_Mode() [f28335.gel:82]
at OnTargetConnect()

If I use Test Conection, it looks like it has valid connection.

following is message with Test Connection Message.

The JTAG DR Integrity scan-test has succeeded.

This morning, my power supply reset during programming. I suspect this is device lock issue. Is there any way to unlock device ? Is there anyway, I can avoid to replace chip.

Is there anyway to stop device lock, even if device reset during programming ?

Regards,

Jigar

 

  • Hi jigar
    Using UNIFLASH try to ERASE the code after erase try to load the code.
  • Hi Jigar,

    As you mentioned above that power got interrupted while flashing, if the same happened while erasing the device then there's no way you can get back/ unlock the device.

    Regards,
    Gautam
  • I was not able to connect to target with multiple laptop and power cycle. I was getting same error message I mention above.

    I tried UNIFLASH multiple time to erase flash, it was not working (All sector was selected to erase).

    Finally I tried to erase only one sector at a time using UNIFLASH, it worked....Now I am able program/erase device using CCS.

    Thank you for reply

  • Sounds very odd! I hope you're able to debug the device now.
  • Yes I am able to debug device. Does following message suggest device is locked ?

    C28xx: Unable to determine target status after 20 attempts
    C28xx: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
    C28xx: GEL: Error while executing OnTargetConnect(): Could not read register ST1: target is not connected
    at (ST1&~(0x0100)) [f28335.gel:312]
    at C28x_Mode() [f28335.gel:82]
    at OnTargetConnect()
  • Are you still getting this error? This means "Not able to connect to device" as it seems to be busy.
  • No I am not getting any error, It is working good for me.

    I just want to figure out what happened.
  • Goodluck!

    Regards,
    Gautam