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.

TMDSHVMTRPFCKIT setup help

Other Parts Discussed in Thread: TMDSHVMTRINSPIN, MOTORWARE, HVPMSMMTR, CONTROLSUITE

Hi, can someone with experience with the TMDSHVMTRPFCKIT help me?  I'm also using an F2806 controlCARD and the TI recommended Estun EMJ-04APB22 motor.  

I'm new to the platform and am trying to run the demonstration projects to familiarize myself.  I'm at the first one that attempts to move the motor (proj_lab02a) and it isn’t working as expected.  I've confirmed that my software is actually running (by instrumenting the code to flash an LED on the controlCARD).  I’ve also verified that there is power to the 3 phase inverter (177vdc as well as 3.3, 5 and 15v).  But, I do not see any activity on the PWM inputs — so obviously, the motor doesn’t do anything.

Any suggestions are appreciated.

Thanks!

  • Hi Steven,

    First of all, which platform are you using?

    • TMDSHVMTRPFCKIT (which includes the F28035 and F28335 controlCARDs)
    • TMDSHVMTRINSPIN (which includes the F28027F and F28069M controlCARDs)


    Thank you,
    Brett

  • Hi Brett. It's a TMDSHVMTRINSPIN. Working with the F2806 card. FWIW, the controlCARD is marked F2806? ISO controlCARD RELEASE 0.4

    [3264x2448 image open in new tab/window]

  • Hi Steven,

    Thanks.  The '?' is actually supposed to be an x, it looks like some of the silkscreen got worn away.  As seen on the marking of U1, the C2000 device you are using is the F28069M.

    The project that you are using is an InstaSPIN project, so I will move your post to the InstaSPIN subforum.

    Good luck on your project!


    Thank you,
    Brett

  • 1. please make sure you are NOT using CCSv 6.1.3 (Which is the latest version of CCS). If you are, uninstall and install a previous version
    processors.wiki.ti.com/.../Category:Code_Composer_Studio_v6

    2. please make sure the project you are using is
    C:\ti\motorware\motorware_1_01_00_16\sw\solutions\instaspin_foc\boards\hvkit_rev1p1\f28x\f2806xF\projects\ccs5\proj_lab02a

    3. reply - using Rich formatting - and drag & drop your user.h so I can review
  • Good info, Chris.  We are running version: 6.1.3.00034.

    Should I back-rev to 6.1.2.00015 or an older version?

    --

    That is the path to the project.

    --

    C:\ti\motorware\motorware_1_01_00_16\sw\solutions\instaspin_foc\boards\hvkit_rev1p1\f28x\f2806xF\src\user.h is attached

    0602.user.h

    I believe that the dip switches on the controlCARD only modify boot loader behavior.  But, you never know...  Could they be the source of our problem?

     

  • yes, fall back to a previous version. 6.1.2 should be fine

    your user.h is mostly fine.

    if you are using the ESTUN HVPMSMMTR you can lower this current though
    #define USER_MOTOR_RES_EST_CURRENT (1.0)
    #define USER_MOTOR_IND_EST_CURRENT (-1.0)

    note you should get values similar to
    USER_MOTOR == Estun_EMJ_04APB22
  • My expectation was to get similar values to the pre configured ones. I'll let you know how that goes after I reinstall.

    While uninstalling the 6.1.3 version of CCS, I discovered controlSUITE 3.4.0 and MotorWare 1.01.00.16 on the machine. Should I leave them in place or uninstall them as well. -- or reinstall them after back-reving CCS? Not sure what the dependency tree looks like.
  • you do NOT need to uninstall controlSUITE or MotorWare. Just CCS. In fact, you don't HAVE to uninstall CCS, you can install a previous version next to it...but it's safer to remove so you don't accidently use it IMO.
  • Hi Chris, I have CCS 6.1.2.00015 installed but still no success moving the motor.

    Can you recommend trying anything else?

    FWIW, we also tested the motor -- at least as a generator on an oscilloscope and saw the expected 3 sine waves, 120 degrees out of phase.  So, no reason to believe that's the problem.

  • what exactly is happening as you enable the flags?

    is there an error code?
    gMotorVars.UserErrorCode

    is there a Vbus?
    gMotorVars.VdcBus_kV

    do the offsets run and update to valid values?
    hal.adcBias.V.value[0] etc.

    do the states change?
    gMotorVars.CtrlState
    gMotorVars.EstState

    do you get any values for
    gMotorVars.Rs_Ohm
    ontroller_obj --> RoverL
  • I'm running the software in the debugger with STI enabled and real-time updates in the expression window.

    I see CtrlState change from Ctrl_State_Idle to Ctrl_State_OffLine (maybe others that are too quick to see)

    I see the gMotorVars.EstState step through State_RampUp, State_RatedFlux, State_Rs, State_OnLine and others. Finally ending up at either State_Error or State_Idle. The behavior is somewhat indeterministic.

    Rs_Ohm ends up very high 10e30 currently,
    VdcBus_Kv is 0.190 which is consistent with what we're measuring -- 190vdc.

    hal.V_bias is an array of 3 longs. All ~450000.

    RovertL on what obj?
  • Hi Chris, we're making progress. We found a pre-built application that's part of the installation: instaSPIN_FOC_F2806xM.exe

    I've run that exe -- it actually looks like the labs with a GUI front end. Anyway, running that, I am able to spin the motor. So we know that our hardware platform is good but the Code Composer Studio installation is bad.

    To troubleshoot that, I've installed a fresh machine with 6.1.2.00015 with the same result. No motor movement.

    Looking forward to your suggestions to get the CCS working...

    Thanks!
    Steven
  • It certainly seems like you are running an incorrect project meant for a different MCU or EVM. That would explain the Rs readings...ADC pins not assigned correctly.

    recheck the actual project you import and make sure it matches the path in my first post.
  • If I right click on the project in "project explorer" window, click properties.  The properties dialog shows: C:\ti\motorware\motorware_1_01_00_16\sw\solutions\instaspin_foc\boards\hvkit_rev1p1\f28x\f2806xF\projects\ccs5\proj_lab02a

    But that project produces non-functional software.  Is there a different path that would work?  I didn't modify any settings from their defaults.  Are any needed?  What are the correct settings for the project to build?

  • the code works just fine

    in the properties which effective compiler is being used?

    the error in your img isn't a sw error, it is a connection to the debugger error.  try power cycling everything. 

    does the code compile without errors?

    can you connect to the target?

    can you load the code?

    I assume so since you said it starts to run but gives very bad results

  • FYI that I'm using
    Version: 6.1.1.00022
    and compiler 6.2.11
  • I've power cycled many, many times.  Code compiles cleanly -- except the #warnings I've inserted to prove that my code is actually compiling.  Downloads as expected.  I've verified that it is actually my code that's downloaded by temporarily inserting my own LED blink rate.

    I've taken another fresh windows 7 machine and reinstalled from scratch motorware and ccs without controlsuite.  I'll let you know how that tests out.

    ----

    Is there a place in the source where I can confirm that my sources are for the 28069f and the target is the HV platform?  (other than the directory path to the project.)

  • no, just the project settings

    you have the right project

    check your compiler...that's the only other thing I can think of. after that we may need to try a webex.
  • Do the projects link with a HAL or library that defines the target platform? Or, is the platform implicitly defined by code of each project?

    I have a few more things to try, if they don't work, I'd appreciate it if we could do a webex.
  • implicit based on the included files in the project

    all these projects work fine...it has to be a HW issue (which the GUI would suggest isn't the case) or a compilation issue.

    give me your email address
  • I sent my email address in a PM.

    Also discovered this warning:

    This project was created using a version of compiler that is not currently installed: 6.2.3 [C2000]. Another version of the compiler will be used during build: 6.4.6. Please go to <a href="liveaction:OpenAppCenter">CCS App Center</a> to install the compiler of the required version, or migrate the project to one of the available compiler versions by adjusting project properties. proj_lab02a properties Problems

    I will try with the older compiler.
  • Final update, in case someone else has similar problems.

    To recap, we were having issues with an TMDSHVMTRINSPIN evaluation platform. Applications built in the Code Composer Studio (CCS v6) appeared to run on the controlCARD -- LEDs flashed as programmed but the attached motor wouldn't move. To further complicate the issue, the InstaSPIN-FOC GUI application seemed to work just fine.

    Thanks to Chris Clearman for finding our problem. In the main section of the evaluation board is a 3 pin jumper, J7. This jumper selects between a fixed overcorrect threshold and an adjustable one via a potentiometer. Moving this jumper to the correct position, resolved the problem. The board ships with the jumper installed closer to the controlCARD, we moved it to the inverter side. The positions are not labeled on the PCB so I'm not sure if the fixed or adjustable setting was problematic.

    Thanks again, Chris!