Part Number: TMS320F28069M
Tool/software: Code Composer Studio
Hello
I am having problem running the motors when running my modified lab 13f on my TMS320F28069M with two DRV8305EVM. The modification is to have HALL sensors instead of encoders.
This modification part I feel work fine because the st_obj[0].pos.conv.Pos_mrev is increased 1 with each manual turning of motor. The problem is that the motor does not run when I set gMotorVars[0].PosStepInt_MRev = 1 and then gMotorVars[0].RunPositionProfile = 1 (actually have to do it three times, motor locked first two times).
What is happening third time is that gMotorVars[0].SpinTAC.PosMoveStatus = ST_MOVE_IDLE->ST_MOVE_BUSY->ST_MOVE_IDLE very fast. I can manualy rotate the motor easy one revolution and then the motor locks the position. I also see gMotorVars[0].SpinTAC.PosCtlErrorID = 2002 during easy rotation. At the samt time gMotorVars[0].SpinTAC.PosCtlStatus = ST_CTL_IDLE during easy rotation and when locked it is changed to ST_CTL_BUSY.
Same behaviour for both motors.
I have tried so many things but I just cant get the motor to move. It feels like it knows where to go but refuse to move.
Should mention that I run several previous labs including 12a where motor runs smothly also with modified to HALL sensor. Same user_j1.h file used for user_mtr_on_j1.h and user_mtr_on_j5.h in the two labs.
Please help me.
Thanks
Johan