STSPIN32F0 with STEVAL-SPIN3201 how to adjust HALL angle duration?
Hello, I have STEVAL-SPIN3201 with sinopro motor. One direction works smoothly and reverse direction is jitter, noisy and with above 2000rpm diver starts to trigger overcurrent condition. According to symptoms it is caused by bad Hall alignment. Hall sensor signal is clean so no filtering issue I suppose.
I'm using example code from workbench 5.Y.4 with HAL driver based on FW package 1.11.3 and cubeMX 6.6.1 . Generated code have setting for commutation delay in HALL timer setup:
sConfig.IC1Polarity = TIM_ICPOLARITY_RISING;
sConfig.IC1Prescaler = TIM_ICPSC_DIV1;
sConfig.IC1Filter = 8;
sConfig.Commutation_Delay = 0;but when I modify 0 to any other value, it is load to TIM2 CCR2 on startup but is changed to 10 after motor is started. I'm unable to find where is this changed.
Any hint how to adjust Hall alignment will be welcome.
Other question, is possible to use active motor brake when engine stops (just for few seconds) with this code or I have to implement it myself?
Thank you.
