Closed nopnop2002 closed 2 years ago
Same here than #68. Use Serial.flush(). Entering and exiting sleep mode change the clock that's why you probably seen this.
Good!! It's solved.
void loop() {
//unsigned long nowMillis = millis();
//Serial.println(nowMillis);
Serial.println("serial printing");
Serial.flush();
for(int i=0;i<20;i++) LowPower.deepSleep(1000);
//for(int i=0;i<10;i++) LowPower.sleep(1000);
//for(int i=0;i<5;i++) LowPower.idle(1000);
//delay(1000);
}
Serial is not output normally when returning from DeepSleep
My Envitonment
STM32F103(8MHz Xtal) + platformIO
My config
My code
Problem
Serial is not output normally when returning from DeepSleep.
Serial is output normally when returning from Sleep.
Serial is output normally when returning from Idle.
Screen Shot