Problem with programming an Atmega328P via Arduino UNO

Hi, I'm trying to program an Atmega328P on breadboard via an Arduino Uno.
But I encountered several problems, first of all the process doesn't work.
First of all I loaded this sketch onto the Arduino UNO.


After that, I wanted to load this test sketch onto the Atmega328P to see if it worked.

void setup() {
  pinMode(9, OUTPUT);
}

void loop() {
  digitalWrite(9, HIGH);  
  delay(1000);                      
  digitalWrite(9, LOW);   
  delay(1000);                      
}

Using these settings:

But it doesn't work, I discovered that it is the Arduino Uno that is programmed, in fact if I then connect a LED to pin 9 of the Arduino it flashes.

That's the circuit:


What should I do?
Thanks for the help!

Did you click on "Upload" or "Upload Using Programmer"


I click here on upload because i don't see other icons

In the MENU click on Sketch, you will see Upload Using Programmer
Click on that to program the IC
You will first need to re-program the Uno with the ISP sketch

1 Like

YOOOOOOOO THAKS YOU SO MUCH! IT WORK NOW! :grin:
Have a nice day!

Glad you are happy.
You too.

1 Like

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