HAL_TIMEOUT when call HAL_LPTIM_Counter_Start
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-12-03 11:28 AM
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
