stm32duino / STM32LowPower

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

No serial output after first wake from deepsleep #110

Closed miroslavpetrov closed 2 weeks ago

miroslavpetrov commented 2 months ago

Describe the bug Using the unmodified example AlarmTimedWakeup.ino from the library and Seeed Lora-E5 Mini board, after the first wake up from deepsleep there is no output on the serial console.

To Reproduce Upload AlarmTimedWakeup example to the board.

Expected behavior I expect the serial port to continue working after wake up

Desktop (please complete the following information):

Hardware (please complete the following information):

miroslavpetrov commented 2 months ago

@fpistm any ideas?

fpistm commented 2 months ago

No. I will check when I will have some time.

fpistm commented 3 weeks ago

Hi @miroslavpetrov I've reproduced and try to debug deeply but hard with this series as debug with low power mode is a nightmare (several issue document in the errata sheet). In the case of STM32WL, the deepsleep rely on STOP 2 mode and so it requires to properly init the Serial after the deepsleep.