2023-05-05 06:28 AM
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?
Solved! Go to Solution.
2023-05-05 07:38 AM
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.
2023-05-05 07:38 AM
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.