Serial buffer clear
Posted: Wed Jul 20, 2022 5:21 am
Sometimes i put a printf in the initialisation c program, which runs in an endless loop, for debuging purposes.
After i run the loop again and check the console for the outcome,
i realize that the printf is runing ones every loop and the console is flooded with the debuging message.
Even if the c program stops executing, the message keeps coming
.
The only remedy is to recycle the power on kflop board. The problem is that sometimes im doing remote debuging and there is none to do that.
IS there another way to flush the serial buffer?
Regards.
After i run the loop again and check the console for the outcome,
i realize that the printf is runing ones every loop and the console is flooded with the debuging message.
Even if the c program stops executing, the message keeps coming
The only remedy is to recycle the power on kflop board. The problem is that sometimes im doing remote debuging and there is none to do that.
IS there another way to flush the serial buffer?
Regards.