cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_TIMEOUT when call HAL_LPTIM_Counter_Start

GFont.1
Associate III

Hi,

I am using stm32L431 and trying to use LPTIM to count pulses.

When I call HAL_LPTIM_Counter_Start() return HAL_TIMEOUT in

if (LPTIM_WaitForFlag(hlptim, LPTIM_FLAG_ARROK) == HAL_TIMEOUT)

 {

  return HAL_TIMEOUT;

 }

But if I comment this part of function, works fine and the pulses is count correctly.

but I think it was not necessary to comment on this part of the code, obvious kk.

Can anyone help me ? Thanks

0 REPLIES 0