Arduino Uno; corrupted bootloader or fried?

Hi, I am unsure if my Arduino Uno has a broken bootloader or is totally fried (or something completely different happend?).
I tried to upload a c program with this commands, which worked perfectly fine in the past:

avr-gcc -Os -DF_CPU=16000000UL -mmcu=atmega328p -o main.bin main.c
avr-objcopy -O ihex -R .eeprom main.bin main.hex
sudo avrdude -F -V -c arduino -p ATMEGA328P -P /dev/ttyACM0 -b 115200 -U flash:w:main.hex

I suspect that i had a terminal on another desktop still sending serial data to the arduino (but i am unsure) and this corrupted something.
Even with verbose output i only get:

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe0

and so on.
I got this before when something was connected to the 0th or 1st pin, but there isnt anything.
So i searched and started to suspect my bootloader got corrupted. ok, luckily enough i had something that i could identify as an arduino nano. Then i followed this guide :

But only got the same message when pressing "burn bootloader". Also something about being unable to clear chip, but i am not able to reproduce it (again, dont know why).I read that a capacitor between the reset and the ground of the programmer could help - only had a 100microF; didnt work, same message.
Since i am out of ideas what i could do i ask: Did i fry my arduino or what is wrong here?
Also did a system update on arch today, any chance that that had some impact?
Thanks in advance for any help

A couple of things to check before you condemn the Uno board:

  1. Is the board listed when you run lsusb?
  2. Is the board definitely on /dev/ttyACM0?
  3. Is there anything else open that might be occupying the serial port. e.g. the Arduino IDE?
  4. Have you eliminated a problem with the USB cable by trying another one?
  5. can you post the dmesg output when you connect the board please?
  1. Yes: Bus 001 Device 007: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
  2. Also yes, checked that too, because i already had that one before
  3. No, absolutely sure after a restart of the pc
  4. Also yes, tested the usb with another device
    5.:
[ 8098.528396] usb 1-4: new full-speed USB device number 7 using xhci_hcd
[ 8099.014202] usb 1-4: New USB device found, idVendor=2341, idProduct=0043, bcdDevice= 0.01
[ 8099.014209] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 8099.014212] usb 1-4: Manufacturer: Arduino (www.arduino.cc)
[ 8099.014214] usb 1-4: SerialNumber: 44236313735351901272
[ 8099.030252] cdc_acm 1-4:1.0: ttyACM0: USB ACM device

That does look like it should. For good measure you might check that your username is still in the uucp and dialout group. Things might have changed now but Arch didn't have the latter by default, although I don't think any update should have changed groups or group memberships. You can check with group owns /dev/ttyACM0 by checking the output of:

ls -al /dev/ttyACM0

Its also unlikely but you might also check that that brltty or modemmanager have not been (re)installed.

Other than that I am not sure. Assuming that all connections were correct, including the ground wire, then the programming procedure should have worked. I assume, that since use are using thee Nano as a programmer, when wiring it you are bearing in mind the Nano as the programmer and the UNO as the target, i.e. pin 10 on Nano to RESET on the UNO?

Ok, still doesnt work. Could it be a problem that the nano still has the old bootloader?

Why are you referring to the Uno in your title? And posted in the Uno section?

This indicates that you're trying to access the (new) boot loader which would be correct for an Uno. If you're indeed using a Nano with old bootloader, change that to -b 57600 for the old boot loader.

For reference, this is the full upload command that the IDE issues on my Windows system for the old boot loader

"C:\Users\bugge\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\bugge\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v  -patmega328p -carduino "-PCOM4" -b57600 -D "-Uflash:w:C:\Users\bugge\AppData\Local\arduino\sketches\B7B3B30553AE764F980A73897BC5C40E/sketch_jan29a.ino.hex:i"

Because i am trying to program an uno. I used a nano to burn the bootloader on the uno after the nano stopped working. And said nano has the old bootloader

The "old bootloader" is not relevant; your Nano only acts as a programmer.

  • Did you program the Nano as a programmer with the ArduinoISP sketch?
  • Did you select the Arduino As ISP programmer?
  • Did you select the port of the Nano?

I think that you are missing steps. The -b 115200 is not indicating that you try to burn a boot loader.

Do you have the IDE (1.x or 2.x) installed?

OK, i figured out a way to get the bootloader on the uno: I removed the capacitor i read about, so everything is back to the instructions in the guide. Then i got this error:Error while burning the bootloader: Failed chip erase
Since it says in the guide that i should check the cable between pin 10 and reset, I did, was perfectly fine connected. So i tried pressing down the reset button while running "burn bootloader" and it worked. Now i re-installed my old program on the uno. Says it did it successfully, but something still does not work. Shouldnt be a program issue, since i didnt change anything, probably something with the wires, which i had to disconnect in the process.
Thanks for the Help everyone.

False Hope, it delivers weird signals to the digital pins and after 2 trys it, again, refuses to upload. Pretty sure that it died.

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