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.

CCS/LAUNCHXL-F28069M: Motorware: Lab2a, Motor is not spinning

Part Number: LAUNCHXL-F28069M

Tool/software: Code Composer Studio

Hello, 

I am trying to spin my 7-12V small motor. (Brushless Motor Roxxy Outrunner C28-24-34)

After identifying the motor parameters , and updating user_j1.h , and then Setting the variable “gMotorVars.Flag_Run_Identify” equal to 1 again , the motor is not spinning. What could be the problem ? 

It is not clear in the instaspin_labs, how to make the motor spin ,

  1. should we debug the code again to spin the motor ? 
  2. should we set “gMotorVars.Flag_enableSys” =0 again or keep it 1?
  3. should we suspend the code from running after getting the motor parameter the resume it to spin the motor ? 

I am confused by these steps.

One more question, when repeating the lab, I see  strange number of the  gMotorVars.SpeedRef_krpm long 1677721 0x00A7DA@Program , last time it recorder 0.099 or something like that but not thing big number. However in both case the motor didn't spin.

  • 4. I am also having this sign next to the lab2a, and these advices, see picture below 

Please have a look at the motor parameters, I am not sure if I shall change something 

I Ran Run the Optimizer Assistant to generate data for code size versus --opt_for_speed setting, but this warning still appears. 

Here is a screenshot of the gui too.

The voltage seems to be 6V although the battery is 9V, I got a new battery however the motor didnt spin as well. 

5. In the instaspinlab pdf, there is this statement ''A spreadsheet was created to help setup user.h parameters based on motor parameters, control
frequencies, filter poles, etc. The spreadsheet can be found in this folder: '' when shall I use this spreadsheet ? should I use it to make this lab work ? As I could'nt understand where to use it . 

Two more questions:

1. In the (readme first instaspin lab) pdf , they say 

S1 set to ON-ON-ON

what do they mean, as the S1 on my launchpad is set L H H (emulation Boot ). Is this correct ? 

2. Where can I find the definitions of gMotorVars. ?? 

Note that I am using CCSv930 .

I hope you could help and direct me to solve these problems, as this lab took alot of time to make it work. 

Thanks in advance, 

  • Just use lab02a/lab02b/lab02c to identify the motor parameters, and then use the subsequent lab (lab05b or lab10a) to spin the motor with the updated user.h. The instaSPIN lab guide has a detailed description of operation steps.

    You might have a look at the LaunchPad user's guide as the following link to understand the switches configuration on the board.  The setting mode you mentioned enables the onboard emulator if you need to run/debug the code using CCS or GUI.

    http://www.ti.com/tool/LAUNCHXL-F28069M