2021-03-02 10:20 PM
I want to let STM32L552CC into sleep mode.
I add
HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI);
Build is OK,
but when Debug ,the error appeared,
Why?
2021-03-02 10:45 PM
Looks like a problem with programming (flashing) your binary code, unrelated to HAL_PWR_EnterSLEEPMode.
Suggestions:
hth
KnarfB
2021-03-03 03:31 AM
When you activate some sleep modes your mcu stop react to debug. You need connect under reset and debug low power modes checkbox enabled in debuger config...