So I bought an Arduino and then uploaded a few lines of code into it and then it just stopped accepting my uploads for some reason and it gives me this error
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xa7
so I tried out several things but they did not solve my problem, and then I tried the loopback test and it failed so what can I do now?
"I made sure of the port and the board I choose which is Arduino Uno by the way"
what code you uploaded that broke it?
1 Like
What do you have hooked up to it?
What code did you use?
Is it an Arduino UNO or a clone?
Provide a link to the amazon advert please.
If your board uses the CH340 TTL-to-USB converter (the chip closest to the USB port), the loopback test is non-conclusive.
Adding to @missdrew's comment, pins 0 and 1 are used for the communication with the PC. If you have anything connected to those pins, there is a chance that the upload fails.
1 Like
Nothing both the setup and the loop functions are completely empty.
Nothing just my laptop
no code was used except for the setup and the loop functions
It is a clone
Yes, I guess my board uses CH340 TTL-to-USB converter, but just to make sure how can I know for sure, and what can I do to make sure if my clone Arduino UNO is working properly, and when I upload to my Arduino I have nothing connected to the Arduino except my USB cable to upload the script.
And I guess that I have the CH340 TTL-to-USB converter because my laptop downloaded the driver for CH340 automatically when I connected my Arduino and I was able to upload to my Arduino twice and then it stopped working for some reason.
You can read the print on the chip; not always easy nowadays. Alternatively, use Windows device manager or, if using Linux, lsusb and dmesg; no idea about Macs. For device manager, right click the port in device manager and click properties.
Click the details tab and select hardware Ids
The VID and PID should match those in the second image. If not, you can look them up on the web to identify the chip.
Note that my post #4 was only to indicate what it said so you don't chase ghosts.
Can't quite help you further; is the correct board selected (you might accidentally have selected another board.
The time that it did accept the upload, did that code use pins 0 and 1? If so that could be tying up the serial port when trying to upload new code.
You could try holding the reset button on the board and the releasing as soon as the IDE says 'uploading'
What things did you try?
Did you try the good old power cycle/reboot trick?
I get those errors every now and then, and some patience helps.
Well I got the same values in the second image except for the first one I have REV_0254, do you know what board is this or is it the same

Well, I tried everything like checking the port and checking the board and disconnecting everything other than the USB connection.
What is the good old power cycle/reboot trick?
Well, I just got a brand new Arduino for the first time and it just suddenly did not work so I was pretty bummed out about it but I tried to fix it for over 7 hours now.
Exit the Arduino IDE and relaunch it
Turn the computer off, then on
I tried but it did not work
This is the code and the error I am getting
Does the LED on pin 13 turn on?
If not, you could try burning the bootloader
When I run into this error I switch to a different USB port.
There is a lenghty discussion here: avrdude: stk500_getsync(): not in sync: resp=0x00
to be honest it did not help me.