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.

C28xx: Error: (Error -150 @ 0x0)

Other Parts Discussed in Thread: TMS320F28335, UNIFLASH

Hi,

I am debugging a TMS320F28335 using XDS100V2 to control a power converter. While testing at higher voltage like 400V- 500V, the connection goes wrong and i get a message as below,

"C28xx: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.1.450.0)

C28xx: Unable to determine target status after 20 attempts

C28xx: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging"


This is creating a big trouble and I am not able to test the system at higher voltage. I have uninstalled all the older versions of CCS and related drivers before installing the latest version. Still the problem persists.

Thank you in advance,

Prasanna

 

  • Hi Prasanna,

    This issue seems due to radiating noise or emi. XDS100 emulators are very much prone to such board noises. Try to keep the emulator away from your power board. Here's an extract:

    A noisy system, noisy environment, poor signal integrity, etc. will create problems with the emulation connection.

    • It is recommended to use the standard Texas Instruments JTAG header (14-pin, 20-pin, 60-pin) design and pin out. Any deviation from the standard may pose potential communication problems
    • The JTAG signal trace length on the target board, between the JTAG header and DSP must be less than 2 inches. Otherwise the signals must be buffered.
    • The 'EMU' Must be pulled high to the target voltage to allow for emulator debugging

    Regards,

    Gautam

  • Goutam,

    Thank you very much for the reply.

    • I am using the standard 14-pin JTAG connector.
    • I have placed JTAG connector very close to the DSP. Placement is similar to the TI docking station.
    • I tried to place power unit away from the DSP board. The designed controller board does not have any high voltage signal. Voltage levels at the controller board is in signal level.

    I have connected 2.9k ohms pull up resistor across EMU0 and EMU1 as you have mentioned. Now, I could go to higher voltage levels than earlier. But it is giving different error message.

    "C28xx: Error: (Error -1041 @ 0x0) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.1.450.0)"

     Thank you once again for your support.

    With Regards,

    Prasanna

     

  • Try using CCS Uniflash, use the unlock option then try programming.

  • Gautam Iyer said:
    The 'EMU' Must be pulled high to the target voltage to allow for emulator debugging

    Hello Gautam,

    Actually we have the same problem time to time with our custom board.

    After we made the JTAG distance closer with MCU, it is better.

    However is it really necessary to also pull-up EMU pins? I use F28027 MCU.

    Thanks!

    Best regards,

    Maria

  • However is it really necessary to also pull-up EMU pins?

    Yes, it is necessary. It's recommended to pull-up the EMU pins with 4.7k ohms resistors. They should not be left open.

    Regards,

    Gautam

  • Hi Gautam,

    I can use CCS Uniflash, but that does not have debug mode. The main objective is to change few parameters online at higher voltage. Even when the connection is lost, the program still works fine as I am using flash release mode. But, the problem is that I will not be able to change any parameters without resetting the emulator once the connection is lost. 

    Thanking you,

    Prasanna UR 

  • Yup, I understand my previous post doesn't make much sense :)

    BTW did you try to get your board checked for noises? Because even after placing the emulator close to JTAG header and away from power board, you're unable to eliminate the frequent disconnections then thoroughly checking your board layout or radiating components like inductors etc by an expert is the only option left.

    Regards,

    Gautam

  • Gautam,

    I am trying to figure out possible radiated noise and even ground loop noise. For radiated noise, I am trying to shield the JTAG with metal case. Do you have any suggestions to attenuate conducted noise?

    Thanking you,

    Prasanna U R

  • Do you have any suggestions to attenuate conducted noise?

    I was about to suggest you the same: to shield your emulator. Here are few more ways to tackle noise due to emi and other reasons;

    4035.Tackle pcb noise using cap.pdf

    http://www.ti.com/lit/an/szza009/szza009.pdf

    Regards,

    Gautam

  • Hi, 

    I found using a short USB cable sorted the problem out. Mines about 7 inches long

    Hef

  • Yes that helps and also using a USB cable with inbuilt core is quite effective.

    Regards,
    Gautam