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.

TMDSCNCD28379D: TMS320F28379D programming

Part Number: TMDSCNCD28379D
Other Parts Discussed in Thread: TMS320F28379D,

Hi,

I use a TMS320F28379D on a new board.

Schematics are based on TMDSCNCD28379D schematics for all MCU functions (power supply, support, ADC, XDS100V2 Emulator, Emulator interface).

Power supplies are ok, but when I want to load a program, I cannot connect to the MCU : 

What points can I verify to help me to solve the issue ? Any signals I can check ?

Thank you for your support.

Regards,

  • Hi,

    Did you replicate the XDS100v2 circuit on your board? If so, have you programmed the XDS100v2 FTDI device with the right firmware?

  • Hi Gus,

    Yes, I replicated the XDS100V2 circuit from TMDSCNCD28379D  on my board.
    But I didn't programmed the XDS100v2 FTDI. How do you do ? Do you have a procedure ?

    Is it possible to program only with the USB cable ?

    Thank you.

    Regards

  • Hello,

    But I didn't programmed the XDS100v2 FTDI. How do you do ? Do you have a procedure ?

    Download FT_Prog from:

    https://ftdichip.com/utilities/#ft_prog

    A user's guide for it is also available there.

    I believe you can use the XDS100v2 template from:

    https://software-dl.ti.com/ccs/esd/documents/xdsdebugprobes/emu_xds100.html#template-collection

    Note that you'll likely want to use the standalone one. The F28379D one in the above link is for the XDS100v2 on the LaunchPad only

    Thanks

    ki

  • Hello Ki,

    I've downloaded FT_Prog and when I scan, I can find the EEPROM : 

    I succeed to program the EEPROM, with initial parameters.

    But what are the settings to set for the standalone mode ? I found nothing on the user's guide and on the FT2232HL datasheet.

    As on the TMDSCNCD28379D board, JTAG port (ADBUS) is connected to the 28379D on my board.
    I used exactly the same schematic than the TMDSCNCD28379D board, except I didn't connect BDBUS0 (EMU_SCI-RX) and BDBUS1 (EMU_SCI-TX). But it doesn't matter because only Port AD (JTAG) is used to program the MCU ?

    Thanks for your support.

    Regards,

  • In the screenshot you provided, is that before or after you applied the template for the XDS100v2 standalone? I assume it is before, because it doesn't look like the data in the template was applied.

  • Hello Ki,

    It was before of course I applied a configuration, but I don't think it's the standalone one.

    What is the standalone template please ?

    As on the TMDSCNCD28379D board, JTAG port (ADBUS) is connected to the 28379D on my board.
    I used exactly the same schematic than the TMDSCNCD28379D board, except I didn't connect BDBUS0 (EMU_SCI-RX) and BDBUS1 (EMU_SCI-TX). But it doesn't matter because only Port AD (JTAG) is used to program the MCU ?

    Regards,

  • What is the standalone template please ?

    See the following link for a list of all available templates: https://software-dl.ti.com/ccs/esd/documents/xdsdebugprobes/emu_xds100.html#template-collection

  • Hello Ki,

    So if I load this program in the EEPROM:

    The program is loaded in the EEPROM (I didn't refresh after programming, that's why I have "BLANK DEVICE") .

    But when I try to connect Code Composer, I have this message : 

    What's wrong ? Which points can I verify to solve this issue ?

    Thank you for your support.

    Regards,

  • It looks like you opened the template but did not program the EEPROM.

    See the steps I did:

    1. Scan for the XDS100v2

    2. Apple the XDS100v2 Template

    3. After the XDS100v2 template has been applied, you should get a message like:

    4. Program the EEPROM

    5. EEPROM should now be programmed (not how "BLANK DEVICE" message is gone and a "Serial Number" is programmed)

    Note that there is a weird issue with FT_Prog where sometimes it doesn't program right and you have to try again. I don't know why, it is some flaky behavior with FT_Prog.

    Hope this works

    ki

  • Hello Ki,

    This is exactly what I did : 

    The EEPROM seems to be loaded, even if the "Device Output" is not the same than yours.

    But when I try to connect to the MCU with Code Composer, I have an issue: 

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    [Start: Texas Instruments XDS100v2 USB Debug Probe_0]
    Execute the command:
    %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity
    [Result]
    -----[Print the board config pathname(s)]------------------------------------
    C:\Users\perriflo\AppData\Local\TEXASI~1\
    CCS\ti\1\0\BrdDat\testBoard.dat
    -----[Print the reset-command software log-file]-----------------------------
    This utility has selected a 100- or 510-class product.
    This utility will load the adapter 'jioserdesusb.dll'.
    The library build date was 'Nov 21 2018'.
    The library build time was '00:08:45'.
    The library package version is '8.0.903.2'.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Which signals can I check ?

    Which points can I verify to solve this issue ?

    Thank you for your support.

    Regards,

  • The EEPROM seems to be loaded, even if the "Device Output" is not the same than yours.

    Yes, this looks good

    The XDS100v2 has been programmed and detected by your system and CCS. This part is now good.

    But your latest error is due to the JTAG connectivity test failing:

    https://software-dl.ti.com/ccs/esd/documents/ccs_debugging_jtag_connectivity_issues.html#invalid-data-read-back

    This is a low level connection failure, most often due to poor hardware connections or poor signal integrity on the JTAG scan chain. Please see the above link for more details on the error and suggestions on how to resolve.

    Thanks

    ki

  • Hello Ki,

    Thanks for your feedback. How do you know that the XDS100v2 is detected by CCS ? Is it mentioned in the report ?

    I'll try to scope all JTAG signals ; what should JTAG signals look like?

    - TRSTN : high or low level ?
    - TMS :  high or low level ?

    How can you set the bootmode to JTAG ? Can it be the issue ?

    Thank you for your support.

    Regards,

  • How do you know that the XDS100v2 is detected by CCS ? Is it mentioned in the report ?

    Yes. Your "Test Connection" attempted would have failed immediately if CCS was unable to detect a working XDS100v2. Your failure was when CCS was reading back bits it circulated on the JTAG scan chain. At this point, CCS has established a valid connection with the XDS100v2.

    I'll try to scope all JTAG signals ; what should JTAG signals look like?

    Please refer to this document:

    https://software-dl.ti.com/ccs/esd/documents/xdsdebugprobes/emu_xds_target_connection_guide.html

    Thanks

    ki

  • Hello Ki,

    Please find different JTAG signals scoped directly on the MCU chip pins when I tested the JTAG connection.

    MCU_TCK : 

    MCU_TDI : 

    MCU_TDO : 

    MCU_TMS : 

    MCU_TRSTN : 

    I've read possible cause : 

    Fullscreen
    1
    If the data read back is all ones (0xFFFFFFFF), it is possible that one of the JTAG lines has a short to VCC.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I don't think I've a short to VCC.

    Fullscreen
    1
    2
    If using an isolated JTAG debug probe, it is possible that both scenarios may happen if the target board or device is powered down. In this case, make sure power is properly applied across the system.
    Most of the F28x development kits return 0xFFFFFFFF if the device section of the kit is powered down (if the kit has an isolated JTAG), if the jumper settings disable JTAG access or if the bootmode is set to anything other than JTAG. Please carefully review the documentation of your kit.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    All power supplies on the board looks correct (F28379 power supplies and JTAG power supplies)

    Fullscreen
    1
    Certain devices such as F28x suggest a resistor to pull the TRST pin low. However, if the resistor is too small this error may manifest itself. This is reported in this e2e forum post.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    TRST high signal is 3V3, so I don't think it's could be the cause of the issue.

    What can I do to solve the issue ? Any point I can verify 

    Do I have to modify the Advanced Connection Properties ?

    How can I be sure that my MCU is working properly ? What must be the value of the /XRS pin ?

    Thanks for your support.

    Regards,

  • What can I do to solve the issue ? Any point I can verify 

    Do I have to modify the Advanced Connection Properties ?

    Did you try lowering the JTAG TCLK frequency?

  • Hello Ki,

    Yes I try lowering JTAG TCLK frequency (100kHz, 50kHz) and increasing frequency ( 5Mhz).

    Nothing change, I have always the same error message : 

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    [Start: Texas Instruments XDS100v2 USB Debug Probe_0]
    Execute the command:
    %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity
    [Result]
    -----[Print the board config pathname(s)]------------------------------------
    C:\Users\perriflo\AppData\Local\TEXASI~1\
    CCS\ti\1\0\BrdDat\testBoard.dat
    -----[Print the reset-command software log-file]-----------------------------
    This utility has selected a 100- or 510-class product.
    This utility will load the adapter 'jioserdesusb.dll'.
    The library build date was 'Nov 21 2018'.
    The library build time was '00:08:45'.
    The library package version is '8.0.903.2'.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Regards,

  • Hello Ki,

    Do you have any idea to help me to solve this issue ?

    Any points I can verify, measures I can take ?

    Thank you for your support.

    Regards,

  • Sorry, but I cannot think of any more suggestions. This is a bit beyond my area of expertise. I will reach out to some of my colleagues who have more hardware expertise and will keep you posted of any updates I get

    ki

  • We are still investigating the issue. Sorry for the delay

    ki

  • Would you mind sharing your schematics in a private email? I can take a look and at the JTAG section to see if anything stands out.

  • , thanks for sharing the schematics separately. As discussed in one-on-one thread, there is an issue with the connection of the TDO pin across the isolation device. This would be consistent with the scan-test failure. If possible, remove the isolation device and short the TDO traces across the isolation boundary for debug.

  • Hi Gus,

    Yes, it was the issue. Problem is solved now.

    Thank you very much for your support.