You select LSE 32768Hz clock source for LPTIM and divider 32 -> LPTIM counter clock is 1024Hz. But FreeRTOS timebase is SysTick, wich is reate 1000Hz, and osDelay(1000) not be a 1000ms :)! Solution: 1. Select the LPTIM clock source LSI 32000Hz (then LPTIM frequency will be 1000Hz as need for osDelay() correct) 2. Select RTC clock source LSE (for normal time, LSI has a bigger drift, LSE better) And you did the opposite )))
You select LSE 32768Hz clock source for LPTIM and divider 32 -> LPTIM counter clock is 1024Hz. But FreeRTOS timebase is SysTick, wich is reate 1000Hz, and osDelay(1000) not be a 1000ms :)!
Solution:
1. Select the LPTIM clock source LSI 32000Hz (then LPTIM frequency will be 1000Hz as need for osDelay() correct)
2. Select RTC clock source LSE (for normal time, LSI has a bigger drift, LSE better)
And you did the opposite )))