TMS320F28379D: "Loading error " for Customized board with TMS320F28379D using XDS110 debugger

Part Number: TMS320F28379D

Tool/software:

Hi,

I am trying to program 28379D IC mounted on customized design board through external XDS110 debugger. It could flash the program for the first time when I started, but after that it is showing "loading error" whenever I am trying. I am using a recommended design circuit for the jtag which I have already used in other board. But I am not able to program this new board. I am attaching the jtag connection diagram 

Boot mode selection is kept 1,1 always. TRST pulled down by 10k. All signals are coming fine..I tried following things as fix which didnt work

1. Changing the TRST pull down resistor to 2.2k

2. Selection CPU1 core, while disabling CPU2 core

3. My power supplies are capable enough to deliver the current during flash (checked)

Please suggest what could be done next. Also, if its a hardware related error, then how come it worked for the first time.

Thanks

  • Hello,

    A couple things I need clarification on:

    but after that it is showing "loading error" whenever I am trying.

    Can you share a screenshot of the exact loading error message? Is the JTAG able to successfully connect to the device?

    Also, note from the TRM:

    Did you program the BOOTCTRL register with anything? Can you try putting the device into Wait boot and see if the JTAG is able to load a program?

    Here's a JTAG debug guide that may help with the issue: C2000 MCU JTAG Connectivity Debug

    Best,

    Matt

  • Hi Matt,

    I tried the wait mode option and it solved the problem. Thank you

  • Part Number: TMS320F28379D

    Tool/software:

    Hi,

    I have a custom designed board with 28379D and external xds110 debugger. 

    Here is the connection for JTag. I am operating in wait mode. But the Jtag connection is not getting established. I have an exact identical board where its working absolutely fine. But for this board I am getting following error

     

    I checked following things

    1. Both 3.3, 1.2V are coming fine

    2. Reduced the TCLK to 100kHz

    3. Change the boot settings

    4. Change the TRST  pull down resistor from 2.2k to 10k

    5. No short in in 3.3 or 1.2V in the board

    ** Initially it detected the JTag for the first time. But after debugging code for one time its giving same error

  • Hi,

    I merged your two threads together since they discuss the same topic.

    3. Change the boot settings

    This is happening in Wait and Flash boot right?

    Also, to clarify:

    1. How far away is the board from the debugger?
    2. Did you monitor XRSn to confirm it goes high during boot up?
    3. Are TDI and TDO being used as GPIOs at runtime?

    Best,

    Matt

  • Hi,

    This is happening when I am trying to see the jtag connection from build settings and its not flashing, showing the following error

    Answers to your other queries

    1. How far away is the board from the debugger: Its is connected through a small cable and with 20cm distance
    2. Did you monitor XRSn to confirm it goes high during boot up?- Yes, XRSn pin is high during boot up
    3. Are TDI and TDO being used as GPIOs at runtime?- I am not using TDI, TDO as GPIOs
  • Hello,

    Thank you for confirming that for me. A few more questions:

    1. Does this only happen after you program an application into flash?
    2. Is Wait boot still being configured?
    3. Can you share you target configuration file (.ccxml)?

    Best,

    Matt

  • Hi,

    1. Yes. This happens when I am trying to flash a program. Also, I checked the Jtag connectivity with "test connection" tab, there only I got this error msg

    2. Yes. Wait boot is configured

    3. 

  • Hi,

    You only get JTAG errors after programming the application the first time? 

    If so, please refer to this thread and probe the JTAG signals to confirm that your connections are proper.

    Best,

    Matt

  • Hi Matt

    First time I was able to program and flash the DSP. After from next time onwards whenever I am trying to flash , I am getting this error.

    I checked all the JTAG signals and the connection is also fine. There is no point shorted also. 

    Is it possible that somehow the IC is damaged? How to identify that

  • Hi,

    Does this happen when you try to load different programs (like a simple LED blink example)?

    Can you share the program's .out file and the linker command file (.cmd)? I can try to replicate the issue on my setup.

    Best,

    Matt