stm32duino / STM32LowPower

Arduino Low Power library for STM32
183 stars 52 forks source link

fix: set CPU2 low power mode for STM32WBxx #87

Closed fpistm closed 1 year ago

fpistm commented 1 year ago

Fixes #85

Typically, action performed by CPU2 on a dual core application. Since this example is single core, perform it by CPU1.

On STM32WB, both CPU1 and CPU2 must be in low-power mode to set the entire System in low-power mode, corresponding to the deepest low-power mode possible. For example, CPU1 in Stop2 mode and CPU2 in Shutdown mode will make system enter in Stop2 mode.