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/DRV8312-69M-KIT: Problem in running in lab13-A

Part Number: DRV8312-69M-KIT

Tool/software: Code Composer Studio

Hello Instaspin Users, 

I am trying to implement lab 13a for the position control using FOC, but I get an error id: 2, which  Invalid velocity reference maximum value, do anyone know how and where to modify this velocity value to make sure that my position control loop is running again. 

Thanks,

Sreekar Reddy.

  • 1. Make sure the motor parameters and inertia of the motor have been identified by lab02b and lab12a, both labs should run well first.
    2. Please check if the number of encoder lines is set correctly in user.h
    3. Please check if the ST_EREV_MAXIMUM is set properly which must be between 0.0 to 1.0.

    Check the configuration in the following functions according to the error ID.
    // setup the SpinTAC Components
    ST_setupPosConv(stHandle);
    ST_setupPosCtl(stHandle);