FreeRTOS on STM32 v2 - 21d Low power modes (tickless mode and semaphore) - LIVE lab

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

Комментарии • 1

  • @alexandristomin1313
    @alexandristomin1313 2 года назад +1

    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 )))