Cannot upload bootloader to arduino uno

Hello,

I am having an issue with uploading the bootloader to Arduino Uno board using Arduino IDE and an Arduino Mega clone board (non genuine) as the programmer.

The Atmega328p chip has been replaced on the Uno, this is why I am doing this.

I have had a look on this forum for any similar posts and found this link, which was not very helpful.

can anyone help? The error message I got was similar to the linked topic, it is as follows:

Using port: /dev/ttyACM0

Using programmer: stk500v1

Setting baud rate: 19200

Error: programmer is not responding

Warning: attempt 1 of 10: not in sync: resp=0x00

And so on until it has completed 10 attempts.

What does this mean? Am I receiving a null response from the target board? Why would this be the case when all I want to do is flash the bootloader (why should I be getting any responce?)

I am following these instructions from Arduino website and am using the digital and power pins. I am using the latest version of the IDE, and the OS is Arch Linux, if that helps.

Anyway, thanks in advance and any help appreciated.

Hi @jack_lp. Did you perform these steps from the instructions:

https://support.arduino.cc/hc/en-us/articles/4841602539164-Burn-the-bootloader-on-UNO-Mega-and-classic-Nano-using-another-Arduino#step-2%3A-burn-the-bootloader-in-arduino-ide

  1. Open File > Examples > 11.ArduinoISP > ArduinoISP .
    [...]
  2. Click Upload button Upload to upload the sketch to the board.

When you performed those instructions, did you have the Mega board connected to your computer with a USB cable, and the port of the Mega selected from the Tools > Port menu in Arduino IDE?

When you performed that step (6), did the upload complete successfully, or was there an error?

Yes I was able to upload the example ArduinoISP program to the mega board. There was no error, the output read:

Using port : /dev/ttyACM0
Using programmer : wiring
Setting baud rate : 115200
AVR part : ATmega2560
Programming modes : SPM, ISP, HVPP, JTAG
Programmer type : Wiring
Description : Wiring bootloader using STK500 v2 protocol
Programmer model : AVRISP
HW version : 15
FW Version Controller : 2.10
SCK period : 0.1 us

AVR device initialized and ready to accept instructions
Device signature = 1E 98 01 (ATmega2560)
Reading 5406 bytes for flash from input file ArduinoISP.ino.hex
in 1 section [0, 0x151d]: 22 pages and 226 pad bytes
Writing 5406 bytes to flash
Writing | ################################################## | 100% 0.93s
5406 bytes of flash written
Avrdude done. Thank you.

Do you have the correct Target board and port selected?

Follow this Tutotial

Here

ArduinoISP sketch are SS/, MOSI, MISO, SCK assigned DPin numbers for Arduino UNO as ISP Programmer by defualt. Have you changed them for Arduino MEGA as follows:

Arduino MEGA as ISP Programmer      Target Board Arduino UNO
53                                  SS/  (DPin-10)
51                                  MOSI (DPin-11)
50                                  MISO (DPin-12)
52                                  SCK  (DPin-13)
GND                                 GND