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 USB: (Error -5008 @ 0xFFFFEC70) Unable to access the DAP

Hello, I'm developping on the TMDX570LS20SUSB kits, uploading with the embedded XDS100v2.

I usually use CCSv4.2.3.00004 (provided on the kit's dvd). Sometimes while I'm working on it, it crashes without any particular reason, I get a windows from the jvm telling "the program exited unexpectedly"  with all the jvm arguments. Recently I was uploading, as usual CCS switched to the DebugView, with the progress bar moving, but this time it never ended, I waited, and after more than 10min the whole program disappeared without even a windows message about the jvm...

I ran CCS again and tried to connect to the device, but I got:

 

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)
Trying to upload new code I got the same output.
I tried different frequencies up to 488Hz (the lowest allowed by my CCS), it just took more time to get the same result.
I also tried to erase the flash from nowFlash (tried v3.38, 3.39 and 3.40):

 

nowFlash version 3.40  Build  (OFFICIAL)
Config file c:\ti\nowFlash\v340\nowFlash.cfg Revision: 0
Accessing device 0 through port 0x000
User specified emulator type TIXDS100V2.
Using board configuration file c:\ti\nowFlash\v340\brddat\board_tixds100v2_v3_cortex_rxx.dat
Port driver "c:\ti\nowFlash\v340\drivers\tixds510cortexR.dvr" ... LOADED
Port address 0x000 target..initialize..connect....failed
Error 199 - Unable to connect to target on port address 0x000.
**************************************************************
 Press Enter to exit

Error connecting to the target:
Unknown error (Error -5008) @ -5008 (0xFFFFEC70)

Dap: Error connecting to the target: Unknown error (Error -5008) @ -5008 (0xFFFFEC70)
I downloaded CCSv4.2.4.00033 and tried it on a new kit, i got it broken the same way :(
I also used CCSv5.1.0.07001 on a 3rd kit and "burned" it again... here is the output from the console:

 

CortexR4: GEL Output:   Memory Map Setup for Flash @ Address 0x0CortexR4: Warning: (Error -1044 @ 0xFFFFEC70) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Release 5.0.429.0) 
CortexR4: Warning: (Error -1044 @ 0xFFFFEC70) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Release 5.0.429.0) 
CortexR4: Warning: (Error -1044 @ 0xFFFFEC70) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Release 5.0.429.0) 

After reading differents posts about similar problems, I tried the dbgjtag tool, but it doesn't help me much:

 

C:\TI\nowFlash\v340\drivers>xdsprobe.exe -f ..\brddat\board_tixds100v2_v3_cortex_rxx.dat -a

-----[Print the controller-open software log-file]---------------------------

This utility has selected an XDS510 class product.
This utility will load the adapter 'jioserdesusb.dll'.
This utility will operate on port address '0'.
The controller does not use a programmable FPGA.
The emulator adapter is named 'jioserdesusb.dll'.
The emulator adapter is titled '(null)'.
The emulator adapter is version '(null)'.
The emulator adapter is using 'Normal-Mode'.
The controller has a version number of '4' (0x0004).
The controller has an insertion length of '0' (0x0000).
The cable+pod has a version number of '0' (0x0000).
The cable+pod has a capability number of '0' (0x0000).
The local memory has a base address of '0' (0x000000).
The local memory has a word capacity of '1048576' (0x100000).

-----[Analysing the configure file and the scan-path]------------------------


The configure file indicates 4 JTAG devices should be in the system.
This test indicates zero JTAG devices are actually in the system.

This test cannot analyse the scan-path when the
configure file and the scan-path do not match.

C:\TI\nowFlash\v340\drivers>xdsprobe.exe -f ..\brddat\board_tixds1_rxx.dat -b

-----[Print the controller-open software log-file]----------------

This utility has selected an XDS510 class product.
This utility will load the adapter 'jioserdesusb.dll'.
This utility will operate on port address '0'.
The controller does not use a programmable FPGA.
The emulator adapter is named 'jioserdesusb.dll'.
The emulator adapter is titled '(null)'.
The emulator adapter is version '(null)'.
The emulator adapter is using 'Normal-Mode'.
The controller has a version number of '4' (0x0004).
The controller has an insertion length of '0' (0x0000).
The cable+pod has a version number of '0' (0x0000).
The cable+pod has a capability number of '0' (0x0000).
The local memory has a base address of '0' (0x000000).
The local memory has a word capacity of '1048576' (0x100000).

-----[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 Broken Path 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
All of the values were scanned correctly.

The JTAG IR Broken Path scan-test has succeeded.

-----[Perform the Broken Path 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
All of the values were scanned correctly.

The JTAG DR Broken Path scan-test has succeeded.

C:\TI\nowFlash\v340\drivers>

I also tried from Linux with CCSv5.0.3.00025:

 

root@computer:/opt/ti/CCS5.0.3.00025/ccsv5/ccs_base_5.0.3.00025/common/uscif# ./dbgjtag -f BrdDat/ccBoard0.dat -rv -Sgivendata,repeat=10

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

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'libjioserdesusbv2.so'.
The library build date was 'Jan  3 2011'.
The library build time was '23:12:04'.
The library package version is '5.0.281.0'.
The library component version is '35.34.29.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 now 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).

-----[Perform the Given Data scan-test on the JTAG IR]-----------------------

This test will use blocks of 512 32-bit words.
This test will be applied 10 times.
It uses all of the 10 different test-cases.

Do a test using 0x5533CCAA.
Scan tests: 10, skipped: 0, failed: 0
All of the values were scanned correctly.

The JTAG IR Given Data scan-test has succeeded.

-----[Perform the Given Data scan-test on the JTAG DR]-----------------------

This test will use blocks of 512 32-bit words.
This test will be applied 10 times.
It uses all of the 10 different test-cases.

Do a test using 0x5533CCAA.
Scan tests: 10, skipped: 0, failed: 0
All of the values were scanned correctly.

The JTAG DR Given Data scan-test has succeeded.

root@computer:/opt/ti/CCS5.0.3.00025/ccsv5/ccs_base_5.0.3.00025/common/uscif# ./dbgjtag -f BrdDat/ccBoard0.dat -A scanpath

-----[Analysing the configure file and the scan-path]------------------------

File: BrdDat/ccBoard0.dat
-------------------------
The configure file indicates 4 JTAG sub-paths should be in the system.
The configure file indicates 3 JTAG devices should be in the system.

Device: 0
---------
The device name is 'ICEPICK'.
The family name is 'ICEPICK_C'.
The product title is 'router'.
The product description is 'scan-path router'.
The device has a subpath count of 2.
The device has a custom JTAG DR register length.
The device has a custom JTAG IR register length.

The JTAG IR register bit length is   : 6
The JTAG IR pre-amble bit length is  : 0
The JTAG IR post-amble bit length is : 0
The JTAG DR register bit length is   : 1
The JTAG DR pre-amble bit length is  : 0
The JTAG DR post-amble bit length is : 0

An interrogation routine is not yet available.

Device: 1
---------
The device name is 'DAP'.
The family name is 'CS_DAP'.
The product title is 'router'.
The product description is 'CoreSight memory-map router'.
The device has a subpath count of 1.
The device has a custom JTAG DR register length.
The device has a custom JTAG IR register length.

The JTAG IR register bit length is   : 4
The JTAG IR pre-amble bit length is  : 0
The JTAG IR post-amble bit length is : 6
The JTAG DR register bit length is   : 1
The JTAG DR pre-amble bit length is  : 0
The JTAG DR post-amble bit length is : 1

An interrogation routine is not yet available.

Device: 2
---------
The device name is 'CORTEXR4'.
The family name is 'CORTEX_RXX'.
The product title is 'cpu'.
The product description is 'RISC micro-processor'.
The device has a custom JTAG DR register length.
The device has a custom JTAG IR register length.

The JTAG IR register bit length is   : 0
The JTAG IR pre-amble bit length is  : 0
The JTAG IR post-amble bit length is : 10
The JTAG DR register bit length is   : 0
The JTAG DR pre-amble bit length is  : 0
The JTAG DR post-amble bit length is : 2

An interrogation routine is not yet available.

 

root@computer:/opt/ti/CCS5.0.3.00025/ccsv5/ccs_base_5.0.3.00025/common/uscif# ./xdsprobe -f BrdDat/ccBoard0.dat -k

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

There is no hardware for programming the JTAG TCLK frequency.

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

 

I'm a bit hopeless now, I eventually could connect via the jtag header to check if the cpu is still working, but there is no official support about using it it seems.

Another piece of information, I'm also using the TMDX570LS20SMDK kit, and it also happened that CCS "disappears" suddently, but after restarting it I can still access the cpu and upload new code, so this problem seems to affect only the USB kits.

Any help to get those kits working back would be greatly appreciate!

regards,

Yasuki.

 

PD: serial number of the chips:

- TMS570LS20216ASPGEQQ1 CA-13A951W G4

- TMP570LS20216ASPGEQQ1 CA-12A943W G4

- TMS570LS20216ASPGEQQ1 CA-13A951W G4

 

  • Hi Yasuki,

    Wow - three TMDX570LS20SUSB kits all getting hung up in the same way?  Sorry you are having so much trouble with the kits.

    I'm not an expert in the scan chain but the length of 6 looks right - and it doesn't look like your scan chain is broken.   Interestingly enough we just created a similar problem on a different (unreleased board, different silicon). That's still being analyzed but it's the same DAP error that you are seeing and same #199 from flash470.   In our case, we suspect it has something to do with the code that we flashed into the device;  but problem is still being analyzed.

    Were you able to flash the USB sticks at least one time before this happened?   If so what kind of things is the code doing?  (would be great if you can post the code to the forum... so we can look at it.... the last code that you were able to program before they hung).  

    Best Regards,

    Anthony

  • Hi Yasuki,

    We would like to exchange at least one of your USB sticks for a new one, so that we can analyze the issue and get you a new one at the same time.    Once we understand the problem we'll know if there is a way to "un-brick' the other two sticks or if they need to be returned as well.

    Would you please contact me directly at 'a dash seely at ti dot com'  so that we can discuss the best way to get this exchange started?

    And again, we apologize for the trouble.

    Thanks and Best Regards,

    Anthony

  • Hi

    Im a getting an equal problem

    Previous posting about flashing with nowFlash didnt help..

    The error im getting if i try to upload my code:

    "Error connecting to the target:

    Error 0xC0002240/-5008

    Error during: Initialization, OCS, Control, 

    Unknown Error"

    Is it generally a problem with the TMS 570 USB stick, i mean hardware problem or some software config problem??

    Regards

    Burim

     

  • Anthony gave me one of those 'broken'  USB sticker. I use the following method to recover:

    1. Open nowFlash

    2. Hold on the nRST. For the TMS570LS21x USB stick, nRST (C5) can be reached from the back of the board. Shorting C5 with tweezers.

    3. Click 'Execute' on the nowFlash window.

    4. wait until the “initialize....connect…” popping up in the DOS window, like:

    5. release the nRST. At this time, nowFlash will start erase the device.

    6. In this step, nowFlash may tell you that the frequency is not correct. If so, change the frequency settings in nowFlash window to whatever nowFlash tells you and click 'Execute' again (you don't need to touch 'nRST' in this step). (e.g. on the one I received, it tell me the frequency is 10.5MHz, sounds like the device is running from LPO).

     7. Now the flash content is erased, everything is back to normal.

    Regards,

    Haixiao

  • Awesome Haixiao! it worked :)

    I had to try several times though, getting a lot of "Error 199" (I suppose wrong timings with the tweezer on C5).

    Once it started to connect I got the "Error 182 - Measured frequency 10.85 MHz not within +/-30% of target 140.00 MHz" message.

    I tried with a 11MHz target frequency but it didn't worked (the measured freq was around 7.2MHz) then I tried with 10MHz and it worked!

    nowFlash version 3.41  Build  (OFFICIAL)
    Config file C:\ti\nowFlash\v3.41\nowFlash.cfg Revision: 0
    Accessing device 0 through port 0x000
    User specified emulator type TIXDS100V2.
    Using board configuration file C:\ti\nowFlash\v3.41\brddat\board_tixds100v2_v3_cortex_rxx.dat
    Port driver "C:\ti\nowFlash\v3.41\drivers\tixds510cortexR.dvr" ... LOADED
    Port address 0x000 target..initialize..connect..reset..halt..complete
    Device ID value read=0x80206D0D on port 0x000
    Device is TMSx70Px type  with ECC, Unique ID=0x00000010, Minor Revision 1.
    Device Identification=TMS570LS20xx6.1
      Engineering Row ID=75175301
       Lot Number  =526881
       Flow Check  =0xf868
       Wafer Number=1
       Die Location: X=14, Y=16
    Target Frequency 10.00 MHz
    Configuration file: v3.41 , file rev: 0
    Algorithm library: pf035a.x70, Version 1.04
    Writing 0x20036800 to DUT address 0xFFFFFF70 to configure PLL1
    Writing 0x3FC0643D to DUT address 0xFFFFFF74 to configure PLL2
    Measured Internal Frequency = 10.83 MHz
    Command: -er -append -d -q -o 10.00 -emu TIXDS100V2 -p 000 -cpu CORTEX_RXX -targets 1
        Erasing from 0x00000000 to 0x00007FFF (ECC 0x00400000 to 0x00403FFF)
            214 total erase pulses.
            0 total compaction pulses
        Erasing from 0x00008000 to 0x0000FFFF (ECC 0x00404000 to 0x00407FFF)
            154 total erase pulses.
            0 total compaction pulses
        Erasing from 0x00010000 to 0x00017FFF (ECC 0x00408000 to 0x0040BFFF)
            0 total erase pulses.
            0 total compaction pulses
    [...]

        Erasing from 0x001E0000 to 0x001FFFFF (ECC 0x004F0000 to 0x004FFFFF)
            0 total erase pulses.
            0 total compaction pulses
        Elapsed execution time 33.25 seconds.
        Total elapsed time 54.91 sec
    No Errors

    After that I could program the flash again and everything works like charm!

    Thank you again :)

    Yasuki.

  • I am working on TMS470M series with USB XDS100v2 JTAG stick.

    i am getting following while connecting target from CCSV4

    Error connecting to the target:
    Error 0xC0002240/-5008
    Error during: Initialization, OCS, Control,
    Unknown Error

    I tried same sequence of steps but it didn't worked for me.

    please help me to get out of this issue.

  • Do you have a xds510usb emulator? If yes, try to access it from the JTAG(12 pin, not pop) at the back of the board. 

  • I am using USB XDS100V2 JTAG

  • I found that LED D1 for ERROR is glowing when connected to PC.

     What could be the possible reason ? Is it hardware problem ?

  • Has anybody found a root cause for this, maybe some incorrect register setting in the software?

  • There are lots of possibilities, for example:

    1. Enter low power mode

    2.Disabled the clock source you are using.

    3.switch to a non-exist clock source

    4. Configure the PLL to a very high frequency, CPU is halt due to the very high frequency.

    5. Write wrong value in the CPSR register, expecially the endiness bit.

  • Hello Haixiao,

    Can you please explain about the way to connect XDS510 Adapter as I don't see any connector?

    Also how do I supply Power to the USB Stick without connecting the USB Connector of the board?

    There are Solder Pads on the Board for XDS510 TI-14 Pin, but the labels are not there. So, which PAD goes to which TI-14 Pin connector?

    Thank you.

    Regards

    Pashan

     

  • You can still connect to the Pc USB port. But do NOT try to connect with CCS or nowflash.

    On the 14 pin JTAG connector, one pin is NC, right? I highlight the pin with BLACK color in the following pics.

    For TMS470M:

     

    For TMDX570LS20USB (not for TMDX570LS31USB):

  • Hello Weng,

    i am getting the same problem(erro 199) with CCS V3.3 and FLASH470 while flashing the PCB. But i am not getting how to hold the NRST pin in case of PCB. I can access only controller's pin. Any suggestion from you will be greatly appreciated.

    thanks&regards

    padmrish