Change Low side polarity Gate Driver issue in Motor Control [SOLVED]
Hello everyone
In my Motor Control application I use low side active low gate driver L6398. Because of the shortage of this component, we need to use L6399 in which low side gate driver is active High.
We developed application using Motor Control Suite (5.4.1), and we use STM32F303 uC.
I've tried to change polarity of the CHxN in MX_TIM1_Init() but it doesn't work: every time a start the motor I get Over current error. The changes I made are in bold
Before (L6398 Gate Driver)
sConfigOC.OCNPolarity = TIM_OCNPOLARITY_LOW;
After (L6399 Gate Driver)
sConfigOC.OCNPolarity = TIM_OCNPOLARITY_HIGH;
Obviously I change polarity for all 3 channel.
I've tried to change Idle state too from
sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_SET;
to
sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET;
but never changes.
Do I have to change something else? Do I have forgot some other changes to do?
Many thanks
Roberto
