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.

DRV8301-69M-KIT: Instaspin Lab 1b problem

Part Number: DRV8301-69M-KIT
Other Parts Discussed in Thread: DRV8301

We are trying to build a position based control system based on DRV8301-69M & instaspin FOC & Motion Lab experiments. 

We are using Leadshine BLDC motor & are able to run our BLDC motor with GUI composer. The same is not happening with Lab experiment 1b. We are also not able to see the graph output as explained in Lab 1b. When probed, we found that code is waiting for the variable  gMotorVars.FlagEnableSys to be set. We could not understand where it is set. 

We have also tried changing the motor parameters in user.h (values taken from GUI composer), but no result. We have also tried other lab experiments from 1b onwards. None of them are working for us.

CCS Version 7.2.0 used.

Regards

  • If you are using the DRV8301 kit, please skip labs 1b and 1c as they are intended only for custom hardware. When using custom hardware, labs 1b and 1c will help determine if the voltage/current feedback and scaling are correct. With the DRV8301 EVM, we already have known values for these boards and do not need to test the signal integrity.

    Please start with lab 2b for Motor ID, or lab 2c for low-inductance PMSM

    Sean
  • Sean,
    We have checked lab 2b. We are having same problem of program hanging at the following line.
    while(!(gMotorVars.Flag_enableSys)); (Line No:259 in proj_lab02b.c)
    We would like to know where the above variable is getting set.
    when we comment the above portion, the program memory is going to unknown location .

    Regards
  • The variable is meant to be modified in the expressions window of CCS. If you load the JavaScript file as instructed in the lab guide, you will see all the relevant variables for this lab and can modify them in the Expressions window. You just need to set it to '1' to move forward from the while() expression.

    Sean
  • Sean,
    Thanks for your reply. My problem is resolved.