This is my first time post and I am still pretty new to the Arduino community as well as the Arduino device itself. I have written plenty of code using the Arduino IDE and Arduino Uno so feel very confident from this side. Now I have tried to make my own circuit, to which the ATMEGA328P will be the brains of.
My first goal is to be able to have the circuit designed with a 10 pin port to which I can program the board and interact with it in the same way that I can when it is on the Arduino Uno.
Currently I have a circuit set up as follows:
The main parts being the ATMEGA328P and the section I labeled "Prog" which will be where the programming ribbon cable will get plugged in. I show the entire circuit as I am really not sure my problem so figured it is best to share all information when asking my questions.
Now I plug in an ATMEL 51 AVR programmer (Amazon link here), using the 10 pin ribbon cable to my port and try to upload a blank sketch (the one in the examples called "BareMinimum" but get the following errors:
avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
An error occurred while uploading the sketch
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
avrdude done. Thank you.
So something is preventing the code from uploading. I have tried using the "Upload" and "Upload from Programmer" options and same results.
What I have tried
I have tried using my programmer with a spare Arduino Uno, plugging into the 6 pin header and my sketch uploads without issue. This helps give me confidence that the driver and arduino software itself is not the problem.
When plugging the 10 pin ribbon cable, do I need to supply anything else to the circuit or do the 5 volts from the USB power the atmega328p? Are there any other "internal hookups" required for the atmega328p to receive the upload? I did post my circuit above but in my test set up I literally only have the programmer ribbon cable plugged in. Do I need more than this?
I greatly appreciate any help that I receive for my problem as I have tried for weeks to get this to work but am unsure where I am making my mistakes.