cancel
Showing results for 
Search instead for 
Did you mean: 

stm32g051g8 LPTIM2 HAL_LPTIM_AutoReloadMatchCallback not being called

carlesls2
Associate III

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. 

1 REPLY 1
ELABI.1
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.