STM32CubeL0 icon indicating copy to clipboard operation
STM32CubeL0 copied to clipboard

IS_LPTIM_PERIOD() lower value should be 0

Open DaniAtGH opened this issue 2 years ago • 0 comments

The Period start value has changed from 0 to 1 in the macro IS_LPTIM_PERIOD(). In my opinion the lowest autoreload value should be 0. I have tested a 1s period with the external LSE clock 32,768kHz and STM32L071CB: Timeout = 0x7FFF, due to processor errata = 0x7FFE, HAL_LPTIM_TimeOut_Start_IT(&lptimHandle, 1U, 0x7FFEU)). The LPTIM interrupt is raised every 999,95ms and before (with the HAL version 1.10.5) every 999,99ms (HAL_LPTIM_TimeOut_Start_IT(&lptimHandle, 0U, 0x7FFEU)). Same issue is also in STM32CubeL4.

DaniAtGH avatar Nov 20 '23 08:11 DaniAtGH