My Uno board worked fine and now it won’t upload a sketch. I get this error message:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
I’ve tried removing and re-installing the IDE. Swapped around the cable to different USB ports. It’s maddening. Worked fine before. Frustrating. Power on the board is good. Running Mac Ventura 13.7.8
Hi @tolandd. You described the Arduino board you are uploading to as "Uno". Something that can be confusing is there are multiple boards with "UNO" in their name. We need to be certain of exactly which one you have. The reason is that the problem might be caused by the IDE not being correctly configured for your specific board.
Please tell us which of the following boards you are attempting to upload to:
If you aren't sure which one you have, you can provide a picture of the board or a link to the place you bought it from and we'll see if we can identify it.
I am assuming a Uno 3, the basic one. If you had your previous sketch printing messages constantly to the monitor you may have a serial flood. This will be indicated when you enable the monitor, it will just keep showing stuff as fast as it can. If so that is a serial flood. Here are some possible solutions.
Steps to Recover Your Arduino Board from Serial Flood:
Power Off the Board: Completely turn off your Arduino board by removing the power source.
Disconnect the USB Cable: Unplug the USB cable from the board.
Hold the Reset Button: Press and hold down the Reset button on the board.
Alternatively, you can run a jumper wire from the RESET pin to the GND pin.
Reconnect the USB Cable: While still holding the Reset button, reconnect the USB cable to the board.
Start Uploading a New Sketch: Begin uploading a sketch that does not produce the same problem (e.g., the Blink sketch).
Release the Reset Button: When you see the Receive light blink, release the Reset button.
Modify Your Code: To prevent the issue from recurring, add a delay(3000); or a longer delay in the setup() function of your sketch. This delay allows you to recover easily from a serial flood.
Note: This problem often occurs when the serial output is flooded, indicated by the TX light being stuck on.