I burnt a freshly bought Atmega328p using the arduino IDE. Later I uploaded the following program:
char a;
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0) {
a = Serial.read();
Serial.println("I received: ");
Serial.println(a);
break;
}
}
So if I entered 'a' in the serial monitor it was supposed to print,
I received:
a
but instead it is showing:
I received:
a
I received:
I'm using FTDI breakout board as UART.
What to do?
(A snippet of the serial monitor is attached with this post)

