Other Parts Discussed in Thread: DRV8305, DRV8312, MOTORWARE
Hi,
I'm debugging some weird behavior, I have my own software project based on all the labs, While the motor is stopped it can switch between Spintac velocity, Spintac position, and just torque control. And when in velocity and torque mode It can select between sensorless and encoder. This same code base also switches between the BOOSTXL DRV8305 + 28069M dev kit and my custom board based on the DRV8305 + 28054M.
I've got Spintac position working in all cases using the encoder, on the 54M and the 69M micros, works mint so far.
With spintac velocity I can only get the 69M working with the encoder angle, using the 54M is run's for about ~2.5 roll overs in position and then cuts out and Iq gets ramped up like crazy and it faults on current limit.
If I set the velocity target to a lower speed it stays operating longer but it's roughly 2.5 rollovers on the encoder position when it happens
Using spintac velocity and the FOC sensorless angle input it works on both the 69M and the 54M.
Torque control is the same, using the encoder doesn't work on the 54M
I've searched thru a lot of the encoder stuff and can't find a difference between the 54M and the 69M code.
The only clear difference I can see is that the CTRL structure on the 69M is v1p6 and the 54M is v1p7. Could this explain what's happening?
I've also got the 54M running with "FLASH" defined, and the 69M running without it defined.
Any tips on where to look for overflow? or a way to clear it to see if it fixes the issue?
Cheers,
Alan