cancel
Showing results for 
Search instead for 
Did you mean: 

How to use usart after wake up from stopmode?

JWong.11
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
JWong.11
Associate

It has been solved already.

View solution in original post

2 REPLIES 2
JWong.11
Associate

It has been solved already.

Piranha
Chief II

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