Bootloader Error Elegoo Mega 2560 R3 to ATMega 328P U

UPDATE:
I borrowed an UNO R3 from a friend. That worked imendiately. No more trying to upload sketches to a microprocessor uside the Mega 2560. Two days of hell.

I am not able to burn the bootloader into an AT328P U microchip. I have tried using Arduino as ISP but the process starts and then after varying periods of time the process ends with error messages. Here is one of them.

" Arduino: 1.8.15 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Error while burning bootloader.

avrdude: stk500_recv(): programmer is not responding

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

avrdude: Yikes! Invalid device signature.

** Double check connections and try again, or use -F to override**

** this check. "**

I have checked connections several times and found them to be in order. I have searched with google and here in the forum but I have found no solution. Any suggestions would be appreciated.

If you want to burn the bootloader into a 328P, you will have to select a board with the 328P (e.g. Uno) and not the Mega.

You are aware that the SPI pins on the Mega are not 10/11/12/13 ?

1 Like

Thanks for the reply. I was not aware of the SPI pins but I am now. 50 thru 53 on the Mega. I don't have an Uno. Do I need to get one to be able to upload sketches to the AT328P?

The Arduino-as-ISP sketch works on a Mega as well (to my knowledge).

1 Like

Still cannot upload sketch to ATMega 328PU. I have no clue what else to try.

In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the upload when in verbose mode.

Please do this:

  1. Select File > Preferences from the Arduino IDE's menus.
  2. Uncheck the checkbox next to Show verbose output during: [] compilation
  3. Check the checkbox next to Show verbose output during: [] upload.
  4. Click the OK button.
  5. Attempt an upload, as you did before.
  6. After the upload fails, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
    This copies the full output to the clipboard.
  7. Open a forum reply here by clicking the Reply button.
  8. Click the </> 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.
    Code block
  9. Press Ctrl+V.
    This will paste the error output from the upload into the code block.
  10. Move the cursor outside of the code tags before you add any additional text to your reply.
  11. Click the Reply button to post the output.
1 Like

I just borrowed an UNO R3, from a friend, and viola, worked like a charm using that. Thank you for your response, I appreciate it.

I'm glad to hear of your success!

For future reference, I'll echo sterretje in saying that the Mega can be used as an "Arduino as ISP" programmer just fine.

1 Like

I couldn't get the mega to connect to the microprocessor. I searched all over google. Downloaded the Micro board Set. Nothing I tried worked. I am sure it was user error, but the UNO just imediately connected. Thanks again!

Arduino: 1.8.15 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\Ken\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Ken\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega2560 -cstk500v2 -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8: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\Ken\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"



     Using Port                    : usb

     Using Programmer              : stk500v2

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

avrdude done. Thank you.

Error while burning bootloader.

Please help the bootloader will not work

@kennl, do you have a port called USB in windows device manager? Do you have a programmer; if so, which one?

I'm probably not the one that can help but above might be important.

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