cancel
Showing results for 
Search instead for 
Did you mean: 

STMBW55 LPTIM1 PWM Mode Continuous is working but no interrupt

Riscy00_UPP
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Riscy00_UPP
Associate III

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.

View solution in original post

1 REPLY 1
Riscy00_UPP
Associate III

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.