I tried flashing code in arduino R3 uno using arduino ide and it doesnt matter if i am flashing anything its printing 0 . So for example if i serial.begin(9600) in setup and i serial.println("hello world") it still prints 0 0 0 0 0 0 0 0 0 0
i am new to embedded world , any insights would be helpful :-
I am using macbook air m3 for flashing
I am using arduino ide version 2.3.3
I am using arduino R3
I tried every boud rate and flashed it accordingly .
Is my board dead or what ?
Sharing my code :
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("hello");
delay(1000); // Wait for 1 second
}
In post #9 it was mentioned that it might be a problem specific to the IDE.
You could check if it's an IDE serial terminal problem by connecting a different, stand alone, terminal emulator to the Arduino's com port and see whether or not you still see 0's. That experiment would determine whether it's a problem with the IDE terminal emulator or not.
I tried connecting other arduino board with same port of my laptop it works super fine but this board is printing 0 only while other board is printing anything which i flash
Here is a topic that I found with the same symptoms: Serial print only prints zeros. No solution, possible cause is abuse (not saying that you abused it).
Any history of the board? If it was new and you did not mistakes while connecting stuff, return it and get a refund.
Ah so it sounds like a hardware problem specific to that board that's printing 0's. If you have an oscilloscope, or logic analyser, you could check the serial tx signal coming out of the ATMega328p to see if it's broken at that point.