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.

TMS570LC43xx : Error connecting to the target

Hi,

my configuration is :

Board: TMS570LC43xx

Emulator: XDS100v2 / CCS Sutdio : 6.0.1

When i try to connect to the target, i have error message:

(Error -2062 @ 0x0) Unable to hat device. Reset the device, and retry....

All possible following solutions didn't work. The power-supplies seem good (led ok).

http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/194097.aspx

http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/308105.aspx

http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/121367.aspx

Is there another possible solution ? or another way to investigate ?

Thanks

Fabrice

  • Hi Fabrice,

    Supposing that the device itself is working the nRST during connect trick should usually work.
    Usually it's really the SW inside the device which causes such problems.
    First you can try to verify with an oscilloscope if the crystal does oscillate, if so this should be a good sign that the device is ok.
    After this please permanently short the crystal and retry to connect to the target via CCS without and with using the nRST trick.
    With shorting the crystal you should gain a little more time till the device starts executing any code.

    What i mean with nRST trick is to hold the push button on the HDK while pressing connect in CCS and releasing it immediately after you pressed connect, this usually helps.
    You can connect to the device with right clicking on the devices Target Configuration file in the Target Configuration window in CCS and selecting Launch Selected Configuration. After this you have to manually connect to the device via Run --> Connect Target or by pressing Ctrl + Alt + C.

    Best Regards,
    Christian
  • Hi Christian,
    but i have checked that my software run (MibSPI1 signals that I command are "alive").
    After several many trying the solution to connect was to press the Reset (S3 RST).
    So I'm connected, the CortexR5 is (Suspended) what to do now, to erase my code and to investigate what was wrong ?

    Best Regards,
    Fabrice

  • Hi Fabrice,

    Exactly first erase the flash and then try to figure out what's wrong.
    It's very hard to say what the problem is., it could be some "bad" configuration of the clock tree or flash memory.
    Maybe someone from the Hercules BU has a better idea, on what possibly could go wrong, than me.

    Best Regards,
    Christian
  • HI Fabrice,

     It could be a MPU setting problem. Soon as you are able to connect to the device per Christian's suggestion, then go to Tools->ARM Advanced Features and uncheck the MPU Enable box before you load your program.

      To investigate what portion of the code might be causing the emulator unable to connect to the device I will suggest that your replace:

    from

    resetEntry
    
    b _c_int00
    
    

    to

    resetEntry
            b   #-8

     With the above code it will prevent your code from executing things that makes the emulator unable to connect the next time. You will need to manually move the (PC) program counter to _c_int00.