Question
LPTIM_COUNTER_START Problem
Hi,
I am using stm32431. I config LPTIM and call HAL_LPTIM_Counter_Start() but return HAL_TIMEOUT and no pulses is count. When I change HAL_LPTIM_Counter_Start() function putting 'HAL_OK' to be return forced, the pulses is counted normally, but not in every time, some yes some no.
The function that i changed:
if (LPTIM_WaitForFlag(hlptim, LPTIM_FLAG_ARROK) == HAL_TIMEOUT)
{
// return HAL_TIMEOUT;
return HAL_OK;
}
Why is returned HAL_TIMEOUT ?
P.S I know that need 5 pulses to begin count.
