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.

InstaSPIN BLDC … getting started issues

Other Parts Discussed in Thread: DRV8312, CONTROLSUITE, INSTASPIN-BLDC

Hi,

after my excursion to FOC land I'm getting back to evaluate BLDC and I've got several questions.

I'm running this on DRV8312 rev D kit and I have the kit and gui up and running,

talking about this code:

C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\~GUI\InstaSPIN-BLDC_GUI_DRV83xx_v104.exe

Now I need to run this under debugger and without the gui, is the following the correct project?

C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\InstaSPIN_BLDC

It seems that this has not been updated to CCS 6 as at least the syntax is wrong in:

C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\InstaSPIN_BLDC\AddWatchWindowVars_F2803x.js

Have I got the latest version of InstaSPIN BLDC , how can I tell?

I also noticed that there is this file:

C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\~GUI\DRV8312GUIv5.exe

(and corresponding .out file)

but where/what is the source code?

I've found:

C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\GUI_project and

C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128GUI_project_InstaSPIN_BLDC

br Kusti

PS

when I edited the AddWatchWindowVars_F2803x.js to conform to the syntax used in

the FOC lab scripts which work for me, the script engine did not like the syntax:

Before I edited I had (for example):

expAdd  "gMotorVars.SpeedRef_krpm" getQValue(24) 

so I changed this to, which looks to me identical to the lab scripts in FOC:

expAdd ("gMotorVars.SpeedRef_krpm", getQValue(24));

but that caused and error (missing ';' before statement), however this worked:

expAdd ("gMotorVars.SpeedRef_krpm");

so I'm a bit confused what's the matter….

  • Kustaa Nyholm said:

    Now I need to run this under debugger and without the gui, is the following the correct project?

    C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\InstaSPIN_BLDC

    Yes.

    Kustaa Nyholm said:
    It seems that this has not been updated to CCS 6 as at least the syntax is wrong in

    Nothing in C2000 has been "updated" to CCSv6.  In fact, almost everything in controlSUITE was done in CCSv4.  The CCS guys release new products much faster than we can keep up, and we certainly don't go back and update released projects for a new CCS.  Luckily CCSv5 and v6 are very similar and don't require any porting....but most of controlSUITE is in v4, so there may be some gotchas.

    Kustaa Nyholm said:

    Have I got the latest version of InstaSPIN BLDC , how can I tell?

    Yes, v128 is latest for this kit as that is what is in controlSUITE

    C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128

    Kustaa Nyholm said:

    RV8312GUIv5.exe

    (and corresponding .out file)

    but where/what is the source code?

    C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\GUI_project

    Kustaa Nyholm said:

    expAdd ("gMotorVars.SpeedRef_krpm", getQValue(24));

    v6 and v5 use the same scripting, so the v5 syntax should work. v4 syntax (used in controlSUITE .js files) is not compatible.

    This should work in v5 or v6

    expAdd ("gMotorVars.SpeedRef_krpm", getQValue(24));

    updated with a variable from the controlSUITE project.

     

  • Brilliant, thanks Chris!