Burning bootloader to atmega 328pu from uno

Hi - I am trying to burn a bootloader to a new atmega 328p u using an elegoo uno r3 and the isp provided with arduino 1.8.13 development environment. I have used the uno many times, so I know that the board is recognised by the pc and is working correctly. I have mounted my new chip on a breadboard and connected it to the uno according to the diagram shown. I have uncommented a line in the arduinoisp software as shown.
I get the error message 'error while burning bootloader'.. Can anyone please spot anything that I have missed, or make any suggestions as to what to try next ?

Hi @g4oep. I'm going to ask you to provide the full verbose output from a "Burn Bootloader" operation.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Check the box next to Show verbose output during: ☐ upload in the "Preferences" dialog.
    This preference applies to "Burn Bootloader" operations in addition to uploads.
  3. Click the "OK" button.
    The "Preferences" dialog will close.
  4. Attempt a "Burn Bootloader" operation, just the same as you did before.
  5. Wait for the "Burn Bootloader" operation to fail.
  6. You will see a "Error while burning the bootloader: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button in that notification.
  7. Open a forum reply here by clicking the "Reply" button.
  8. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  9. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  10. Move the cursor outside of the code block markup before you add any additional text to your reply.
  11. Click the "Reply" button to post the output.

Click this button to upload images.

Please check if any of your jumper wires are faulty.

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -cstk500v2 -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 



avrdude: Version 6.3-20190619

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch



         System wide configuration file is "C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"



         Using Port                    : usb

Error while burning bootloader.

         Using Programmer              : stk500v2

avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)



avrdude done.  Thank you.





This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Thank you. I have done that. I hope this is what you expected. I do not understand the reference to a USB device. Do You ?

OK, great. That makes the situation clear. The reason for the error is that you selected the wrong programmer from Arduino IDE's Tools > Programmer menu.

Select Tools > Programmer > Arduino as ISP from the Arduino IDE menus and then try performing the "Burn Bootloader" operation again, just as you did before. Hopefully it will be successful this time.

Many thanks. I will give it a try and report back tomorrow

Magik ! It worked. Thank you !

I am more pleased than I can express that, thanks to your help, I have succeeded with this. I have now bootloaded 3 atmegas that I was about to bin as useless. The problem had been bugging me for over a year ! I don't understand how, in all the internet resources I have consulted, the necessity of changing the default setting to accommodate this form of hardware has not been mentioned before ! Many thanks for your help.

1 Like

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