STM32LowPower icon indicating copy to clipboard operation
STM32LowPower copied to clipboard

No serial output after first wake from deepsleep

Open miroslavpetrov opened this issue 1 year ago • 2 comments

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):

  • OS: Mac OS Sonoma 14.5

  • Arduino IDE version: 2.3.2

  • STM32 core version: 2.8.0

  • Library version: 1.2.5

  • Tools menu settings if not the default: Core logs enabled, Optimize: smallest, Runtime Newlib nano, UART: Enabled(generic serial), Board part number - Lora-E5 mini

  • Upload method: manual export compiled binary and drag and drop to STLink drive

Hardware (please complete the following information):

  • Board Name: Seeed Wio-E5 Mini based on STM32wle5jc
  • Hardware Revision: v1.0

miroslavpetrov avatar Jul 01 '24 09:07 miroslavpetrov

@fpistm any ideas?

miroslavpetrov avatar Jul 03 '24 10:07 miroslavpetrov

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

fpistm avatar Jul 03 '24 11:07 fpistm

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.

fpistm avatar Aug 14 '24 15:08 fpistm