Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 10 months ago.
Serial : Garbage value while printing
Hi,
I am using NXP LPC11U24. Whenever I try to printf a value from the mbed to pc via Serial class, I get an unwanted value at the start which is a repetition of what is to be printed. For example , a simple Hello World program with a time stamp was executed.
Import programmbed_Gen
Error in Serial Printing
The output obtained is
The value of this initial garbage changes as the statement in the current program to be executed changes. When the wait(0.1) in the program is un-commented. It gives the same error if a program with no wait has run before that. (Even if that program is cleared out from mbed memory and the buffer of terminal is cleared). But after that when it is reset it gives the correct results.
Switch bouncing, change in baud rate or terminal have already been ruled out and the buffer in mbed is suspected to be a problem.
It would be of great help if anyone can help in sorting out this problem
Thank You !
Akshat.