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.

TMDSHVMTRINSPIN kit with TMDSCNCD28027F controlCARD

Other Parts Discussed in Thread: TMDSCNCD28027F, TMDSHVMTRINSPIN, MOTORWARE, LAUNCHXL-F28069M

Hi all,

I am using TMDSHVMTRINSPIN  with TMDSCNCD28027F controlCARD  and I am using the on main board XDS100v1 emulator and I made the Main board and Control card configuration according to the HW user's guide.

When I run the example project "lab02b" on the debugging after loading the program and start debugging ok, but when I set the flag "gMotorVars.Flag_Run_Identify" to 

start the motor identification the debugging hang and I got error, noting that the MCU doesn't stop and continue running the problem and i can see the correct output pulses on the IGBT module for the motor but the problem that I lost the connection between the MCU and the debugger.

The error message in the Console window is:-

C28xx: Error connecting to the target: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error. The cause may one or more of: invalid emulator serial number, blank emulator EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the emulator can be located. (Emulation package 5.1.232.0)
C28xx: Realtime was not enabled
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.232.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

And here's a screen image when the debugger hang and lose connection with MCU:-

Thanks for help

  • Hi Amr,

    I have moved your post to the InstaSpin forum. The experts there can help you.
  • it sounds like noise is disconnecting your USB-JTAG connection.
    Can you ground your motor?
    Can you try a USB cable with a ferrite core?

    I assume you are using the high voltage AC input to the kit...if possible can you try a DC voltage to the bus instead? 50-350Vdc
  • Yes I am using the high voltage AC input because I don't have a better filtered DC source than the one in the kit,
    and I can't earth the motor.

    I tried the other F28069M controlCARD which has on card USB-JTAG and it passes the motor identification phase and then the emulator also disconnects during the motor running in a random time and some times before I could finish the identification, then the MCU continues work disconnecting the JTAG connection so I it seems right that I have a real noise problem.

    Is there any recommendation to make the on-board USB-JTAG more immune to this noise and Is there any more details about that noise problem noting that the input and output square waves to the IGBT module look nice without so much noise?!


    Thanks for help.
  • I believe this is primarily caused by the noise of your AC input. Is there a way you can filter / clean it up?
  • Thanks Chris for your replies.

    I put filter for my AC before the input and the same filter worked very well for another market inverter with same specs I used before.

    I figured out that the problem happens as when the IGBTs switch on a notable voltage drop happens to the 5V and 3.3V on the board, also I tried output source for the 15V instead of the on board supply but still the same. 

    This's a photo of what happens to the 5V and 3.3V with every switching on of the IGBTs.

  • Also I noticed that the problem doesn't happen when I manually make the PWMs for the IGBTs switching with small duty cycle like 10%. I tried that by putting code in the Main ISR routine to always make the PWM duty for only 10%.
    Also the problem doesn't happen if I started the motor directly with preloaded parameters without the identification process.

    Thanks
  • Which version of MotorWare are you using?

    Which lab do you see this happening with?

    This sounds very similar to an issue we were seeing with LAUNCHXL-F28069M and proj_lab02a (motor ID from ROM).  We actually removed this lab from the release for this kit because we haven't yet corrected the issue.

    If you are only seeing this with proj_lab02a please let me know.  And please verify then that you do NOT see this issue with proj_lab02b (user memory for CTRL; motor ID).

  • also, see if this discussion (and solution on the last message) helps solve
    e2e.ti.com/.../1422670
  • I am using "motorware_1_01_00_12" and TMDSHVMTRINSPIN kit with TMDSCNCD28027F controlCARD, and the problem does happen with proj_lab02b and all labs.

    As I mentioned above the problem is not that the PWM is not correct, the problem is when the IGBTs switches on with any PWM duty a voltage drop happens to the 5V and 3.3V (even with external source not the on board auxiliary source) and then the on-board JTAG/USB gets into errors but the MCU continues running the program and identification but loses connection with the debugger.
  • if the USB/JTAG connection is dropping out can you try using a USB cable with a ferrite core?
  • Thanks Chris

    Ya I think the problem is with the USB/JTAG connection but I am using a USB cable with ferrite core, but most importantly that the FTDI is isolated from the MCU ?!
  • you are using the USB/JTAG on the controlCARD, right? Yes, it is isolated.

    are you using an AC input or DC to the HVKIT? Is your motor grounded?