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.

6748 LCDK with XDS100v3 emulator

Other Parts Discussed in Thread: OMAP-L138

I'm trying to connect a Spectrum Digital XDS100v3 emulator to the 6748 LCDK. I've set the board switches to correspond to emulation boot mode (as per Table 11) and have set up the emulator connection properties as shown below based on the wiring of the EMU0/1 pins in the schematic:

When I use Test Connection to verify the emulator is communicating with the CPU I get the following results:

[Start]

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\Master\AppData\Local\.TI\2620625255\     0\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 'jioserdesusbv3.dll'. The library build date was 'Oct 29 2012'. The library build time was '14:44:30'. The library package version is '5.0.899.0'. The library component version is '35.34.40.0'. The controller does not use a programmable FPGA. The controller has a version number of '4' (0x00000004). The controller has an insertion length of '0' (0x00000000). This utility will attempt to reset the controller. This utility has successfully reset the controller.

-----[Print the reset-command hardware log-file]-----------------------------

The scan-path will be reset by toggling the JTAG TRST signal. The controller is the FTDI FT2232 with USB interface. The link from controller to target is direct (without cable). The software is configured for FTDI FT2232 features. The controller cannot monitor the value on the EMU[0] pin. The controller cannot monitor the value on the EMU[1] pin. The controller cannot control the timing on output pins. The controller cannot control the timing on input pins. The scan-path link-delay has been set to exactly '0' (0x0000).

An error occurred while hard opening the controller.

-----[An error has occurred and this utility has aborted]--------------------

This error is generated by TI's USCIF driver or utilities.

The value is '-233' (0xffffff17). The title is 'SC_ERR_PATH_BROKEN'.

The explanation is: The JTAG IR and DR scan-paths cannot circulate bits, they may be broken. An attempt to scan the JTAG scan-path has failed. The target's JTAG scan-path appears to be broken with a stuck-at-ones or stuck-at-zero fault.

[End]

I'm at a loss on what to try next. Any suggestions? Is the XDS100v3 incompatible with the LCDK?

 

Thanks.

 

  • Hi

    I moved to this to the CCS forums to see if the emulation experts can help on this. I am not aware of any issues that should cause XDS100v3 not to work, although we have not tested this explicitly with LCDK as far as i know.

    Please make sure you are looking at the wiki  topics on XDS100v3

     http://processors.wiki.ti.com/index.php/XDS100#XDS100v3_Features

    Regards

    Mukul

  • Hi,

    Although I don't have a XDS100v3 and a LCDK, I know that users have been successful in connecting to this board using this configuration. I can also see from the screenshot that the option Converter Usage is correctly configured. I would leave the EMU pin configurations with its default settings (disabled).

    I don't think the EMU pin configuration would cause this issue, but if returning these settings to their default configurations do not work I would move on to the error reporting and its implications.

    The dbgjtag output indicates the emulator can be properly recognized but one (or both) the JTAG data pins (TDI/TDO) are either floating (disconnected or broken cable), shorted to ground (stuck-at-zero) or to Vcc (stuck-at-ones).

    The first thing is to do a proper continuity check on any adapter or cable you may be using between the emulator and the board (it may be a 20-pin to 14-pin, a short flat cable or something else). Then I would check if the TDI/TDO pins on the board's JTAG connector are shorted to Vcc/Gnd. At last, I would see if the processor itself is working - that could be easily tested by running the kit's Demo software.

    Hope this helps,

    Rafael

  • Rafael,

    Thanks for the feedback.

    I have checked the continuity of the cable between the XDS100v3 and the 6748 LCDK, no problems there. The TDI/TDO pins on the LCDK are not shorted to VCC or GND.

    I have access to a Blackhawk USB560v2 STM emulator. I tried it and it connects fine (see Test Connection results below). I can also load and execute a program using the Blackhawk which implies the 6748 processor is working fine. Unfortunately I cannot use the USBv2 for my development. 

    With no emulator connected the board does NOT boot into the demo applications. I assume this means there could be an issue with the board, processor, or perhaps the NAND flash got corrupted.

    Based on my testing the problem may be with the XDS100v3 or the 6748 LCDK board. Is it possible the XDS100v3 has a version of firmware that is incompatible with the LCDK? Or, could the board .dat file have incorrect settings which prevent the emulator from communicating with the LCDK processor? Do you think it's worthwhile to try to re-flash the LCDK NAND using the procedures outlined here? (I'm wondering if these would work since they seemed to be tailored to the OMAP-l138 LCDK version.)

     Thank you.

     

    Thanks again.

     

     

     

    [Start]

     

    Execute the command:

     

    %ccs_base%/common/uscif/dbgjtag.exe -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

     

    [Result]

     

     

    -----[Print the board config pathname(s)]------------------------------------

     

    C:\Users\Master\AppData\Local\.TI\2620625255\

        0\0\BrdDat\testBoard.dat

     

    -----[Print the reset-command software log-file]-----------------------------

     

    This utility has selected a 560/2xx-class product.

    This utility will load the program 'bh560v2u.out'.

    Loaded FPGA Image: C:\TI\ccsv5\ccs_base\common\uscif\dtc_top.jbc

    The library build date was 'Oct 29 2012'.

    The library build time was '14:52:09'.

    The library package version is '5.0.899.0'.

    The library component version is '35.34.40.0'.

    The controller does not use a programmable FPGA.

    The controller has a version number of '5' (0x00000005).

    The controller has an insertion length of '0' (0x00000000).

    The cable+pod has a version number of '8' (0x00000008).

    The cable+pod has a capability number of '7423' (0x00001cff).

    This utility will attempt to reset the controller.

    This utility has successfully reset the controller.

     

    -----[Print the reset-command hardware log-file]-----------------------------

     

    The scan-path will be reset by toggling the JTAG TRST signal.

    The controller is the Nano-TBC VHDL.

    The link is a 560-class second-generation-560 cable.

    The software is configured for Nano-TBC VHDL features.

    The controller will be software reset via its registers.

    The controller has a logic ONE on its EMU[0] input pin.

    The controller has a logic ONE on its EMU[1] input pin.

    The controller will use falling-edge timing on output pins.

    The controller cannot control the timing on input pins.

    The scan-path link-delay has been set to exactly '2' (0x0002).

    The utility logic has not previously detected a power-loss.

    The utility logic is not currently detecting a power-loss.

    Loaded FPGA Image: C:\TI\ccsv5\ccs_base\common\uscif\dtc_top.jbc

     

    -----[The log-file for the JTAG TCLK output generated from the PLL]----------

     

      Test  Size   Coord      MHz    Flag  Result       Description

      ~~~~  ~~~~  ~~~~~~~  ~~~~~~~~  ~~~~  ~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~

        1   none  - 01 00  500.0kHz   -    similar      isit internal clock

        2   none  - 01 09  570.3kHz   -    similar      isit internal clock

        3    512  - 01 00  500.0kHz   O    good value   measure path length

        4    128  - 01 00  500.0kHz   O    good value   auto step initial

        5    128  - 01 0D  601.6kHz   O    good value   auto step delta

        6    128  - 01 1C  718.8kHz   O    good value   auto step delta

        7    128  - 01 2E  859.4kHz   O    good value   auto step delta

        8    128  + 00 02  1.031MHz   O    good value   auto step delta

        9    128  + 00 0F  1.234MHz   O    good value   auto step delta

       10    128  + 00 1F  1.484MHz   O    good value   auto step delta

       11    128  + 00 32  1.781MHz   O    good value   auto step delta

       12    128  + 01 04  2.125MHz   O    good value   auto step delta

       13    128  + 01 11  2.531MHz   O    good value   auto step delta

       14    128  + 01 21  3.031MHz   O    good value   auto step delta

       15    128  + 01 34  3.625MHz   O    good value   auto step delta

       16    128  + 02 05  4.313MHz   O    good value   auto step delta

       17    128  + 02 13  5.188MHz   O    good value   auto step delta

       18    128  + 02 23  6.188MHz   O    good value   auto step delta

       19    128  + 02 37  7.438MHz   O    good value   auto step delta

       20    128  + 03 07  8.875MHz   O    good value   auto step delta

       21    128  + 03 15  10.63MHz   O    good value   auto step delta

       22    128  + 03 1E  11.75MHz  {O}   good value   auto step delta

       23    512  + 02 3E  7.875MHz   O    good value   auto power initial

       24    512  + 03 0E  9.750MHz   O    good value   auto power delta

       25    512  + 03 16  10.75MHz   O    good value   auto power delta

       26    512  + 03 1A  11.25MHz   O    good value   auto power delta

       27    512  + 03 1C  11.50MHz   O    good value   auto power delta

       28    512  + 03 1D  11.63MHz   O    good value   auto power delta

       29    512  + 03 1D  11.63MHz   O    good value   auto power delta

       30    512  + 03 13  10.38MHz  {O}   good value   auto margin initial

     

    The first internal/external clock test resuts are:

    The expect frequency was 500000Hz.

    The actual frequency was 499110Hz.

    The delta frequency was 890Hz.

     

    The second internal/external clock test resuts are:

    The expect frequency was 570312Hz.

    The actual frequency was 569214Hz.

    The delta frequency was 1098Hz.

     

    In the scan-path tests:

    The test length was 16384 bits.

    The JTAG IR length was 6 bits.

    The JTAG DR length was 1 bits.

     

    The IR/DR scan-path tests used 30 frequencies.

    The IR/DR scan-path tests used 500.0kHz as the initial frequency.

    The IR/DR scan-path tests used 11.75MHz as the highest frequency.

    The IR/DR scan-path tests used 10.38MHz as the final frequency.

     

    -----[Measure the source and frequency of the final JTAG TCLKR input]--------

     

    The frequency of the JTAG TCLKR input is measured as 10.37MHz.

     

    The frequency of the JTAG TCLKR input and TCLKO output signals are similar.

    The target system likely uses the TCLKO output from the emulator PLL.

     

    -----[Perform the standard path-length test on the JTAG IR and DR]-----------

     

    This path-length test uses blocks of 512 32-bit words.

     

    The test for the JTAG IR instruction path-length succeeded.

    The JTAG IR instruction path-length is 6 bits.

     

    The test for the JTAG DR bypass path-length succeeded.

    The JTAG DR bypass path-length is 1 bits.

     

    -----[Perform the Integrity scan-test on the JTAG IR]------------------------

     

    This test will use blocks of 512 32-bit words.

    This test will be applied just once.

     

    Do a test using 0xFFFFFFFF.

    Scan tests: 1, skipped: 0, failed: 0

    Do a test using 0x00000000.

    Scan tests: 2, skipped: 0, failed: 0

    Do a test using 0xFE03E0E2.

    Scan tests: 3, skipped: 0, failed: 0

    Do a test using 0x01FC1F1D.

    Scan tests: 4, skipped: 0, failed: 0

    Do a test using 0x5533CCAA.

    Scan tests: 5, skipped: 0, failed: 0

    Do a test using 0xAACC3355.

    Scan tests: 6, skipped: 0, failed: 0

    All of the values were scanned correctly.

     

    The JTAG IR Integrity scan-test has succeeded.

     

    -----[Perform the Integrity scan-test on the JTAG DR]------------------------

     

    This test will use blocks of 512 32-bit words.

    This test will be applied just once.

     

    Do a test using 0xFFFFFFFF.

    Scan tests: 1, skipped: 0, failed: 0

    Do a test using 0x00000000.

    Scan tests: 2, skipped: 0, failed: 0

    Do a test using 0xFE03E0E2.

    Scan tests: 3, skipped: 0, failed: 0

    Do a test using 0x01FC1F1D.

    Scan tests: 4, skipped: 0, failed: 0

    Do a test using 0x5533CCAA.

    Scan tests: 5, skipped: 0, failed: 0

    Do a test using 0xAACC3355.

    Scan tests: 6, skipped: 0, failed: 0

    All of the values were scanned correctly.

     

    The JTAG DR Integrity scan-test has succeeded.

     

    [End]

     

  • Hi,

    Bytejammer said:

    With no emulator connected the board does NOT boot into the demo applications. I assume this means there could be an issue with the board, processor, or perhaps the NAND flash got corrupted.

    Hmm, I am really not sure what may be happening in this case; this scenario obviously brings the suspicion to the board. If you configured the board for NAND instead of Emulation boot, this indicates the contents of the NAND flash are corrupted (check this link for a bricked board), or u-boot is silently causing a hardware fault on the board.

    Bytejammer said:

    Based on my testing the problem may be with the XDS100v3 or the 6748 LCDK board. Is it possible the XDS100v3 has a version of firmware that is incompatible with the LCDK? Or, could the board .dat file have incorrect settings which prevent the emulator from communicating with the LCDK processor? Do you think it's worthwhile to try to re-flash the LCDK NAND using the procedures outlined here? (I'm wondering if these would work since they seemed to be tailored to the OMAP-l138 LCDK version.)

    Given the BH560v2 connection was successful, I would bet the XDS100v3 is at fault. I had a colleague here test the exact same configuration as yours and it worked.

    Settings are as follows:

    • auto generate
    • only one xds100v3 installed
    • Disabled - Both EMU pins remain hi-z
    • Disabled - Both EMU pins remain hi-z (there are 2)
    • Don't isolate JTAG signals at final disconnect
    • Is bypassed, use 1149.1, mimic XDS100v2
    • Fixed default 1.0MHz frequency  

    If you change your configurations to the ones above and the emulator still does not work, the unit may be defective. In this case you will have to do a RMA directly with the emulator manufacturer to repair it or check with your distributor to return your product if this is still under warranty.

    Hope this helps,

    Rafael

  • Rafael,

    I re-flashed the NAND using the process outlined at the link you provded and it worked, so it appears the LCDK hardware is fine. After that I retried the emulator one last time using your recommended settings. It didn't work (still complains of a broken scan chain). Hence, the emulator must be defective.

    Thank you for your help!