Skip to main content
Explorer
May 20, 2025
Question

STM32L552 LPTIM1 counter mode interupt

  • May 20, 2025
  • 1 reply
  • 308 views

Hello,

I'm new to stm32 microcontrollers. I'm trying to figure out how to configure LPTIM1 in counting mode, external clock in using cubeMX. Is there any examples on how to set it up?

Is this even possible?

Thanks in advance.

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 22, 2025

    Hello @Hooks77

    Yes, it is possible to configure LPTIM1 in counting mode using an external clock in STM32CubeMX. There are examples that describes how to configure and use the LPTIM peripheral to count pulses through the HAL API. 

    You can check this project in the STM32CubeG4 package with CubeMX configuration.

    Hope that helps!