Skip to main content
Graduate II
March 31, 2025
Question

stm32g051g8 LPTIM2 HAL_LPTIM_AutoReloadMatchCallback not being called

  • March 31, 2025
  • 1 reply
  • 336 views

I was wondering by which reason the HAL_LPTIM_AutoReloadMatchCallback is not being called. 

All the functions called in the inside the HAL_LPTIM_Init return HAL_OK. 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    April 10, 2025

    Hi @carlesls2,

    I am not an expert in the LPTIM, but I will try to help you.

    You need to check if the LPTIM is enabled or not, and also if it is clocked or not.

    You can also directly use this example: STM32CubeG0/Projects/NUCLEO-G031K8/Examples/LPTIM/LPTIM_PulseCounter at master · STMicroelectronics/STM32CubeG0 · GitHub .

    Thank you.

    ELABI.1