Help with error code using Arduino Nano to ATMega328P chip

I am fairly new to using Arduino and came across an error message when trying to upload a program on to my AtMeag328P chip for the use of buttons. I am lacking a 16Mhz clock crystal and was told that if I select the internal 8 Mhz clock on the tools drop down it will also work with slightly slower effects. I am confused what the error messages mean and could use some help. Thank You!

Sketch uses 944 bytes (2%) of program storage space. Maximum is 32384 bytes.
Global variables use 13 bytes (0%) of dynamic memory, leaving 2035 bytes for local variables. Maximum is 2048 bytes.
avrdude warning: attempt 1 of 10: not in sync: resp=0x15
avrdude warning: attempt 2 of 10: not in sync: resp=0x15

avrdude error: protocol expects OK byte 0x10 but got 0x14

avrdude error: protocol expects sync byte 0x14 but got 0x01
avrdude error: protocol expects sync byte 0x14 but got 0x10
avrdude error: initialization failed, rc=-1
- double check the connections and try again
- use -B to set lower the bit clock frequency, e.g. -B 125kHz
- use -F to override this check
avrdude error: unknown response=0x12
Failed programming: uploading error: exit status 1

Welcome to the forum.

Can you buy a Arduino Uno R3 ? That is easier to start with.
It seems that you have something special.

Can you show a schematic and a photo and tell what it is ?
The Arduino Uno has a usb-serial chip and a ATmega328P. Both need a clock.
Suppose that you have a bare-bone ATmega328P and a programmer, then the ATmega328P still needs a clock. It is possible to change a fuse to select the internal clock, but that is for advanced users. It is also possible that the programmer gives a clock signal.

There is a section on the forum dedicated to "all things upload related". I've move your topic there.


I've attached a picture of the schematic I have set up to connect the Arduino to the ATmega328P chip. Disregard the LED, resistor, and voltage divider at the top of the board. I did burn a bootloader to it first and also loaded the blinker program through it to make sure I understood how to upload correctly. But once I attached the 328 chip it started having problems. After doing some research this evening I've noticed from multiple videos I'll need the crystal oscillator and the internal clock is for advanced users. Is there a possible substitute that I could use for the oscillator such as a function generator? I just have a lack of resources at the moment

I can't do the research now. There is a different core (called miniCore if I'm not mistaken) that should allow you to burn a bootloader that uses the internal oscillator of the 328P.

After that you use that core to compile and upload.

There is an alternative version of the "ArduinoISP" sketch (turns an Arduino board into a DIY "Arduino as ISP" programmer). This alternative version outputs an 8 MHz clock signal on pin 9 of the Arduino board being used as the programmer:

I second the recommendation for the excellent MiniCore if you want an easy way to use the ATmega328P running from the internal oscillator. It is available here:

Is your Gravitech-us Nano board working ?

Which tutorial do you follow for a bare-bone ATmega328P ? You need to follow a tutorial.
Here you can see how to connect it: https://www.gammon.com.au/breadboard
Both GND pins should be connected to GND. Both VCC and AVCC pins should be connected to 5V. The 100nF decoupling capacitors can make the difference between working and not working.
Do you know the fuse calculator ? AVR® Fuse Calculator – The Engbedded Blog

Why go through all that trouble ?
Can you just have fun with the Nano board ?
If you want to take a deep dive, then the ATtiny85 might be easier.
If you want to reduce costs, then there are better ways, for example with a Raspberry Pi Pico board.

I did use the sketch to turn the Arduino board as a ISP programmer and did download the MiniCore and selected the internal oscillator onto the 328P. I followed this video up to the point where I altered the button code to configure to what I specified it as.

I appreciate all the responses and help. I'm going to try these suggestions and see what works.

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