Skip to main content
GFont.1
Associate III
December 3, 2020
Question

HAL_TIMEOUT when call HAL_LPTIM_Counter_Start

  • December 3, 2020
  • 0 replies
  • 532 views

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

    This topic has been closed for replies.