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.

BOOSTXL-DRV8323RS: Motor Control SDK Universal Project and Lab, Hall angle calibration

Part Number: BOOSTXL-DRV8323RS

Hello

I have been following  the Motor Control SDK Universal Project and Lab SPRUJ26 to run a 3-phase BLDC motor using FOC. 

It is not clear from the document  how you calibrate the hall sensor angle for a new motor.

I found this code in motor1_drive.c

#if defined(MOTOR1_HALL)
//!< the handle for the enc object
HALL_Obj hall_M1;
// Enable MOTOR1_HALL_CAL pre-defined sybmols, run the motor with FAST for angle
// calibration
// Copy hall_M1.thetaCalBuf[] to hallAngleBuf[]
// 1->1, 2->2, 3->3, 4->4, 5->5, 6->6, 6->0
// Disable MOTOR1_HALL_CAL pre-defined sybmols after calibration for normal operation
                                    // 6           1              2
                                    // 3           4              5
                                    // 6

I have tried this but it does not work as the values in hall_M1.thetaCalBuf[] do not update.

also in predefined symbols there is no reference to MOTOR1_HALL_CAL just HAL_CAL

Please advise

Regards

Ian