cancel
Showing results for 
Search instead for 
Did you mean: 

In Hall sensor mode, it works intermittently.

MDAI
Associate

Hello. I am using MCSDK 6.3.0, NUCLEO-F446RE, evalstdrive101. When the engine is running in Hall sensor mode. There are interruptions in operation due to signal failures from the Hall sensors. I tried two new engines of this type, the problem is repeated. Help solve this problem. Maybe it is possible to increase the value in the program code more than 0.1-10? Thank you!1.png

photo.jpg

2 REPLIES 2
GMA
ST Employee

Hello @MDAI,

Thank you for your report. 
Concerning "Input capture filter duration" parameter, you are right, these is an issue on our side in HALL_Init() function of hall_speed_pos_fdbk.c file, please replace this line:

   /* Set IC filter for Channel 1 (ICF1) */
//  LL_TIM_IC_SetFilter(TIMx, LL_TIM_CHANNEL_CH1, ( uint32_t )(pHandle->ICx_Filter) << 20);
  LL_TIM_IC_SetFilter(TIMx, LL_TIM_CHANNEL_CH1, ( uint32_t )(pHandle->ICx_Filter));



If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
MDAI
Associate

Thanks for your answer. The engine began to work a little better but the interruptions still persist. Input capture filter duration: in program code you can forcefully increase it further
10 µsec? Thank you!