Closed Yannick-Marietti closed 6 months ago
The uart have to be low power compliant. Ex lpuart.
Extract from L476 ref man
Will chech deeply next week
Hi @Yannick-Marietti
I've tested and it works as expected using UART4 defined manually.
Just for information about deepsleep and wakeup from serial feature.
If the Serial is a LPUART then mcu will go in stop 2 mode, if not the stop mode 1 is used to be able to wake up.
See datasheet:
With default Serial of the Nucleo L476RG, Serial is USART2 so STOP1 mode is used same if we use UART4.
Result from Serial monitor:
Result from mySerial monitor:
The uart have to be low power compliant. Ex lpuart.
Thank you very much !
Clear, so we should avoid LPUARTs using LowPower.enableWakeupFrom(...) as wake-up won't work.
=> I just found my error coming back to my different codes ! I stupidly omitted the LoRa_Serial.begin() ... Copy-paste is a trap :)
Sorry for the time lost and thanks for the clarification about LPUART.
Hello It seems example SerialDeepSleep.ino does not work with an hardware serial diffrent form the "Serial" default. For example, on my computer, the attached (picture) code does not run beyond row 33.
Best regards
Yannick
Desktop (please complete the following information):
Hardware (please complete the following information):
Additional context Add any other context about the problem here.