STM32WB55 LPTIM PWM from LSE appears broken.
I am trying to get my STM32WB5MM-DK to output a PWM from LPTIM1 clocked from LSE in STOP mode.
I created a fresh project with STM32SCUBEIDE selecting HSI clock for the main CPU and LSE clock for the LPTIM1.
Then in User Code 2 section i put the following:
LL_C2_PWR_SetPowerMode(LL_PWR_MODE_SHUTDOWN); //Shutdown CPU2
HAL_LPTIM_PWM_Start(&hlptim1, 999, 499);//DIV2 = ~16.4HZ 50% Duty
HAL_Delay(500); //PWM can be seen on scope here
HAL_PWREx_EnterSTOP0Mode(PWR_STOPENTRY_WFI); //PWM stopsHowever when i get to the stop mode, the pwm signal stops... what am i doing wrong?
