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.

XDS100v2 can't connect to piccolo F28027

Other Parts Discussed in Thread: TMS320F28027

Hello

I am trying to connect an XDS100v2 debugger to a board with a piccolo on and when I try to connect to the target i get the following error message

"C28xx: Error connecting to the target: (Error -1041 @ 0x0) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Release 5.0.333.0)"

There was a similar post about this error and it was suggested to either run the dbgjtag.exe utility or re-install ccs. After running the dbgjtag.exe i got the following messages

"The test for the JTAG IR instruction path-length failed"

"The JTAG IR instruction scan-path is stuck-at-zero"

"The test for the JTAG DR bypass path-length failed"

"The JTAG DR bypass scan-path is stuck-at-zero"

So I am now wondering what to do... I am sure the XDS100 drivers are installed correctly since I can see the XDS100 Channel A and B in the device manager.

Any ideas?

 

Thanks

 

  • Jay Angelo said:

    "The test for the JTAG IR instruction path-length failed"

    "The JTAG IR instruction scan-path is stuck-at-zero"

    "The test for the JTAG DR bypass path-length failed"

    "The JTAG DR bypass scan-path is stuck-at-zero"

    Jay,

    Is it a custom board?  I would carefully check the JTAG connections.  It sounds like a broken scan chain to me.  Also check that the clock and power is proper to the device.

    Some JTAG debugging tips here:

    http://processors.wiki.ti.com/index.php/Troubleshooting_C2000_Debugger_Connection_Issues

    http://processors.wiki.ti.com/index.php/Debugging_JTAG_Connectivity_Problems

    -Lori

  • Hi Lori

    Thank you for the quick response, yes it is a custom board and yes after looking a bit i realized that I had not shorted 2 pins on the JTAG connector.

    After I did this though I attempted to connect to the target and received the following errors.

    C28xx: Failed Software Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.333.0)
    C28xx: Trouble Reading PC Register: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.333.0)
    C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.333.0)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read the register ST1.
    C28xx: Failed Software Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.333.0)
    C28xx: Trouble Reading PC Register: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.333.0)
    C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.333.0)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read the register ST1.
    C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.333.0)

    Would these be related to the software or the hardware setup? At the moment I have a 2.2k Ohm pull down resistor tied to the TRSTn pin as the data sheet says.


    Thanks

  • Also one more thing. I get the following warning before the erros.

    "The configured device (TMS320F28027), does not match the detected device ()."

    In my configuration file i have selected TI XDS100v2 USB EMULATOR with device TMS320F28027.

    Any ideas as to what the problem may be?

    Thanks

  • Jay Angelo said:
    Device is held in reset. Take the device out of reset, and retry the operation.

    Jay,

    Likely XRSn is held low?

    Regards,

    Lori

  • Hi Lori

    I checked the XRSn pin, it is physically not tied low to GND. before all the errors i get the following warning.

    C28xx: Flash Programmer: Warning: The configured device (TMS320F28027), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.

    The configuration file is setup for TMS320F28027 on TI XDS100v2, The GEL file i use is the F280270.GEL, I am not sure where the error might be (I don't think it is JTAG though since I can connect to the target)

     

    Thanks

  • Jay Angelo said:
    C28xx: Flash Programmer: Warning: The configured device (TMS320F28027), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.

    Jay,

    This is an indication that the PARTID within the device does not match the value that Code Composer believes it to be.   I would double check the markings on the top of the device to make sure it is a 28027.  Is this a new sample from a TI distributor?  Is there the possibility of trying a new device?

    Regards,

    Lori

  • Hi Lori

    The part is labelled as F28027PTT and is new from a distributor, I will try another one in the mean time.

     

    Thanks

  • Ok so to update the situation. I have it working, software was fine, debugger was fine. My problem was that I was feeding 3.3V power to the VDD pins (which are 1.8V) even after the internal regulator was enabled.

    Thanks

  • I'm glad you found the issue!  It can be frustrating trying to debug something like that.  I will add it to our troubleshooting notes.  Thank you for the feedback.

    Regards,

    Lori

  • thank you very much! I cost three days to solve the same problem with you!

  • Thanks Jay! I had the same error and had done the same mistake. Things are perfect now. Thanks again!

  • Hi, I'm also having a simillar problem
     "

    C28xx: Flash Programmer: Warning: The configured device (TMS320F28027), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
    C28xx: GEL Output:
    Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Failed Software Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.872.0)
    C28xx: Trouble Reading PC Register: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.872.0)
    C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.872.0)
    C28xx: GEL: Error while executing OnReset(1): target access failed at (ST1&~(0x0100)) [f28027.gel:272] at C28x_Mode() [f28027.gel:33] at OnReset(1) .
    C28xx: Trouble Writing Memory Block at 0x8000 on Page 0 of Length 0x81: (Error -1137 @ 0x8002) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.872.0)
    C28xx: GEL: File: C:\Users\Bruno\workspace_v5\Teste\Debug\Teste.out: Load failed. "

    I have follow the schematics from TI.
    My VDD is tied to a capacitor and then ground. Im powering the circuit from a 5V to 3.3 Regulator.
    Could that be the problem ?  

     

  • The problem was the value of the capacitors on the VDD pins .
    I change then a value bigger then 1u like it was pointed in the datasheet ( i used 10u ) and it all worked fine now.