Skip to main content
JWong.11
Associate
January 8, 2019
Solved

How to use usart after wake up from stopmode?

  • January 8, 2019
  • 2 replies
  • 804 views

Everytime i wake up from stopmode i print my RTC time. However whenever i do that i print some weird symbols instead. Im using the STM32L053R8T6.

I just used:

printf("%d-%d-%d\n\r", Hour, Min, Sec);
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);

 I can only printf the right time once and then after it enters the StopMode and wakes up from it, it gives random symbols

This topic has been closed for replies.
Best answer by JWong.11

It has been solved already.

2 replies

JWong.11
JWong.11AuthorBest answer
Associate
January 9, 2019

It has been solved already.

Piranha
Principal III
January 9, 2019

...and btw newline for Windows OS is "\r\n" actually. :)