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.

TMS570 Board error

Other Parts Discussed in Thread: HALCOGEN

Hello,

I am receiving the following error when trying to flash the code after building it

 

Error connecting to the target:
(Error -5008 @ 0xFFFFEC70)
Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).
(Release 0.0.0.0)

 

Please help me in identifying the problem and to resolve it too.

 

Thanks in advance,

Renjith George

 

  • Hi Renjith,

    Which board ,more exact what for a device do you use?

    Do you use the CCS integrated flash function or nowflash? What are your configurations? (Target Configuration file/nowflash settings)

    Please give more information about your environment, then its easier to indentify the problem!

     Regards,

    Matthias

  • Hi,

    Are you working with the USB dev kit, or the Prototyping board? Are you using the Code generated from Halcogen?

    If you are using Halcogen check if the system.c is equal with this that i am appending

    0871.system.zip

    Regards

    Burim

    PS: Has the same problem with the USB kit, not solved yet

  • Dear Matthias,

    I am using the "TMDX570LS20SUSB - TMS570 Microcontroller USB Kit" purchased from TI(the chip is TMS570LS20216SPGE).

    https://estore.ti.com/TMDX570LS20SUSB-TMS570-Microcontroller-USB-Kit-P1885.aspx.

    I tried both CCS integrated flash and nowflash.

    In CCS integrated flash i use the following configuration file  -1641.FlashBootloader.zip

    When using the Nowflash i use the following settings -1882.nowFlash.zip

    Please let me know if you require any more information.

     

    Thanks in advance,

    Regards,

    Renjith George

     

  • Dear Burim,

     

    I am working on the "TMDX570LS20SUSB - TMS570 Microcontroller USB Kit" from TI.

    Yes i use the code generated by the halcogen for the initialisation(core registers, stack etc etc).

    The system.c file i was using was different(modified after Halcogen generation).2313.system.zip

     

    With Best Regards,

    Renjith George

     

     

  • Ranjith,

    as far as i understood from your posts, you are not able to Erase the flash memory of the TMS570 anymore.

    This can happen if you put the CPU into sleep mode for example.

    I did not verified your PLL settings you made in the nowFlash GUI, why do you need them? NowFlash should work without these specified.

     

    In many situations where the JTAG access dose not work anymore the following procedure can help:

    Trigger the nRST pin of the MCU during the JTAG emulator connects to the device and than release it when it has connected.

    The picture below shows the point in time where the nRST should be release approximately, to get the right point in time is a little tricky but possible.

     

    Unfortunately the TMS570LS2021 USB Stick has no switch for the nRST.

    But it is possible to trigger the nRST with a simple cable connected to GND (available on the two separate header pins on the front of the USB stick). The nRST pin of the device is relative easy to access at the resistor R41 or capacitor C5 on the back of the USB stick. The following image shows the right point on the USB stick (red circle).

     But be careful to not short anything else on the board, as this could seriously damage the USB stick.

     

    Best Regards,

    Christian

     

  • Dear Christian,

    Thanks. Now my board is working :) .

    Good and timely help by Christian.

    Thanks & Best Regards,

    Renjith George

     

  • You're welcome, Renjith.

    Can you please than mark my answer as a "Verified Answer", so that this thread is marked as answered.

     

    Thanks,

    Christian

     

    By the way, the new TMS570LS31x USB stick the has a nRST button on it, which makes life easier. (http://www.ti.com/tool/tmdx570ls31usb)

  • Renjith,

    Note that the actual cause of the issue is something the code did to the processor, most likely to the "E" bit of the CPSR. Check all writes to the CPSR and make sure that no bit is accidentally getting set or cleared. The ARM instruction set supports an instruction called "CPS" (Change Processor State) that can be used for common purposes such as enabling or disabling interrupts, and switching CPU modes. It is recommended to use this simple instruction instead of the read-modify-write instructions used to change bits in the CPSR.

    Regards,

    Sunil

  • Hi Christian,
    I have a similar problem.
    But I have LAUNCHXL2_570LC43. and i have no idea of hardware details.

    Pressing the reset button dosent help
    Please tell me what to do: Below is my post (already created):
    e2e.ti.com/.../585287

  • Hi Sunil,
    I have a similar problem.
    After writing a code related to pLL, it got messed up.
    Please tell me what to do: Below is my post (already created):
    e2e.ti.com/.../585287
  • Okay, got it,
    from e2e.ti.com/.../585287,
    trying the reset and connecting to cortex-r target a few times did the trick.
    Thanks
  • Okay, got it,
    from e2e.ti.com/.../585287,
    trying the reset and connecting to cortex-r target a few times did the trick.
    Thanks