Arduino Uno cant upload code, reset button not working and loopback test works

Hi all,

I’ve been using Arduino Uno for a couple of months now and have some experience with it, but I’m by no means an expert. However, recently I started facing an issue when trying to upload code to my Arduino. Every time I try, I get the following error:

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xfd
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x48
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x40
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf2
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x52
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x1d
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x71
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x82
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x02

I tried pressing the reset button, but nothing happened. After doing some research, I came across some forum posts like this one, which suggested some potential causes for this issue. I also tried running the loopback test, and it worked fine, but my Arduino still doesn't upload code properly.

Is this issue related to the Arduino itself, or could it just be that the ATmega328P chip is faulty?

For reference, I’m running Zorin OS on an Intel Core i3 with 4GB RAM and Intel UHD 620 graphics.

Any help or insights would be greatly appreciated. Thanks in advance!

If you do not get a few quick flashes on the L-LED after releasing the reset button, the bootloader is malfunctioning or the 328P is damaged.

You can try to burn the bootloader if you have another Arduino or a programmer.

Did you terminate all serial monitors?

I have an Arduino Pro Mini, will that work?
And also, do I have to write a program on the Pro Mini for it to work? cause I don't have an ftdi adapter yet.

It's a clean install, just got a new pc

You don't have to write it as it's available; but you do need that FTDI adapter to upload that code to the Pro Mini and to send the bootloader through the Pro Mini to the Uno.

If the 328P on the Uno is electrically damaged, burning the boot loader will not fix that.

If you still have to buy a FTDI adapter, it might be worth to consider the Pololu USB AVR Programmer v2.1 instead. You can use it

  1. As the FTDI adapter
    • to program the Pro Mini.
    • to provide the serial communication over USB with the Pro Mini (basically the same as above).
    • to provide an additional interface with a PC for e.g. boards that have additional UARTs.
  2. As an ICSP programmer. In your scenario you would not need the Pro Mini.

Hey @sterretje, thanks for your reply!

I guess I’ll be more careful in the future. So, my project is building a 6-axis controller for flight simming, and I decided to go with the Unojoy option. However, since I can’t use the Arduino Uno anymore, I was thinking of trying it on the Arduino Pro Mini, which uses the same microprocessor.

The issue now is that I need to put the Pro Mini into DFU mode for it to work. Any ideas on how to do that? Since the Uno isn't working, I guess I could just remove the ATmega328P IC and program the Pro Mini directly.

Thanks in advance!

DFU mode for Unojoy is for the 8U2/16U2 serial-to-usb converter on Uno/Mega, not for the main processor (328P in your case). As the Pro Mini does not have a serial-to-usb converter, the DFU mode does not apply and a FTDI adapter (or the programmer that I linked) will not help you.

// edit
I think that you can hook up the Pro Mini to the Uno, just connect the Tx/Rx of the one to the Tx/Rx of the other one (or vice versa). And reset of the Uno to reset of the Pro Mini.

That will be a permanent setup so the Uno's 16U2 can run the HID firmware.

PS
You might want to consider to buy a Arduino Leonardo/Micro or a SparkFun Pro Micro that have native USB support so you don't need the 16U2 firmware.

Thanks a lot @sterretje for your reply.
I will put the Arduino Uno into dfu mode.
Also, to program a Pro Mini using a Uno, you missed on crucial step: Removing the IC.
And yes, I did consider buying a Pro Micro, but I'm saving money for a gaming pc right now, so I decided to discard the idea.
Thanks again!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.