Skip to main content
Riscy00_UPP
Associate II
May 5, 2023 1:28 PM UTC
Solved

STMBW55 LPTIM1 PWM Mode Continuous is working but no interrupt

Attached is the IOC setup for simple continuous PWM Mode from LPTIM1 from STM32BW55 (all Cube IDE/MX updated with the library, etc).. RB2 showing the waveform as per Peroid and Pulse width (from 64MHz clock input) but I get no interrupt (enabled by IOC setting). I have looked thro the documents and could not find something useful. Have I missed something?

This topic has been closed for replies.
Riscy00_UPP
Riscy00_UPPBest answer
Associate II
May 5, 2023 2:38 PM UTC

This HAL_LPTIM_TriggerCallback() interrupt would not work due to a Software Trigger, so I replace it with HAL_LPTIM_AutoReloadMatchCallback() and it worked fine.

Sorry to bother you, you can close it.

BTW: The documentation for LPTIM is a mess, no guidelines when using CubeMX, demo code there is out of date. Too much what and too little how.

1 reply

Riscy00_UPP
Riscy00_UPPAuthorBest answer
Associate II
May 5, 2023 2:38 PM UTC

This HAL_LPTIM_TriggerCallback() interrupt would not work due to a Software Trigger, so I replace it with HAL_LPTIM_AutoReloadMatchCallback() and it worked fine.

Sorry to bother you, you can close it.

BTW: The documentation for LPTIM is a mess, no guidelines when using CubeMX, demo code there is out of date. Too much what and too little how.