Programming ATmega 328P with Arduino uno

Hi,
I'm sure this has been asked lots of times, but here it is again:

I have Arduino 1.8.8, An Arduino Uno, and an Atmega328P chip, ( I doubt it has the bootloader on it.)

whe trying to load the Bootloader, I get:

Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno"

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xef
##########################################

###################################sync: resp=0xef
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xef
Error while burning bootloader.

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

What's missing?

I want to load the bootloader, an eeprom file and flash file.

Camerart.

What's missing?

A schematic of the connections. A description of how you are tying to bootload the 328.

Make sure that the wiring is OK and that you have the ArduinoISP sketch loaded onto the Uno before trying to bootload the chip.

groundFungus:
A schematic of the connections. A description of how you are tying to bootload the 328.

Hi G,

I've borrowed an Arduino Duo, plugged into the USB port, with the ATmega plugged into it.

Chose the COM port, and Ardiono as ISP, then clicked on bootloader.
C.

Danois90:
Make sure that the wiring is OK and that you have the ArduinoISP sketch loaded onto the Uno before trying to bootload the chip.

Gammon Forum : Electronics : Microprocessors : Atmega bootloader programmer

Hi D,

From your link it appears that it isn't as simple as put the chip to be programmed into the Duo, but an extra board is needed.

I also have a USBASP programmer that has the same socket as on the Duo, I now assume I need to connect both boards and try again. Is this true?
C.

Now, what is it? Uno or Due? :slight_smile:

Danois90:
Now, what is it? Uno or Due? :slight_smile:

Hi D,

A bit of dyslexia there!

UNO.

C.

Fair enough! Have you read this simple tutorial?

Hi D,

I don't have two boards, but I do have a USBASP and a UNO.

With the two boards connected by wires, and the USBASP opened with AVRDUDE, I flashed the bootloader, then with the UNO opened with ARDUINO, I programmed the 'blink' program.

Thanks, to all,

C.