user28035: I have a microcontroller: ATMega328P.
I don't have any Arduino Uno board.
I want to program the ATMega328P using my FTDI programmer.
But when I try to program the ATMega328P without Arduino board I always get this error: 
avrdude: stk500_recv(): programmer is not responding
I've followed this YouTube Tutorial to build this.
And ended up with this diagram:

All the connections seems OK.
I choose the board: "Arduino Pro or Pro Mini" because only with this one I can choose the correct processor: "ATMega328P (5V, 16MHz)"
The port is correct: "/dev/ttyUSB0"
And as for the the programmer I've choose: "USBasp", which I don't know if this is correct. I've used this FTDI programmer to program the STM32 microcontroller and the programmer was "Serial", which I don't see the very same option here.
I'm lost, what am I missing up here?
BTW I've seen this, this and this but couldn't get it fixed.


user42539: A new chip cannot be programmed in that manner until it has the Bootloader installed. The Bootloader starts after a reset and monitors the serial interface to see if something is attempting to download code via the serial port.
Selecting a Programmer has no effect on serial download, that only comes into play when Programming via the SPI pins SCK/MOSI/MISO/Reset/Power/Gnd.
Your "design" needs a couple more parts: 0.1uF caps between VCC and Gnd, and AVCC and Gnd.
The Cryslal and 22pF caps could also be a lot closer to the device - like right next to it.
I can't read the FTDI markings, so I can't tell if you have Rx and Tx swapped there.

28035: <p>I have a microcontroller: <code>ATMega328P</code>.
I don't have any <code>Arduino Uno board</code>.</p>

<p>I want to program the <code>ATMega328P</code> using my <code>FTDI programmer</code>.</p>

<p>But when I try to program the <code>ATMega328P</code> without <code>Arduino</code> board I always get this <strong>error</strong>: </p>

<p><code>avrdude: stk500_recv(): programmer is not responding</code></p>

<p>I've followed this <a href="https://www.youtube.com/watch?v=Sww1mek5rHU&amp;t=31m39s" rel="nofollow noreferrer">YouTube Tutorial</a> to build this.</p>

<p>And ended up with this diagram:</p>

<p><a href="https://i.stack.imgur.com/9TGcM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9TGcM.png" alt="enter image description here"></a></p>

<p>All the connections seems OK.</p>

<p>I choose the board: <code>"Arduino Pro or Pro Mini"</code> because only with this one I can choose the correct processor: <code>"ATMega328P (5V, 16MHz)"</code></p>

<p>The port is correct: <code>"/dev/ttyUSB0"</code></p>

<p>And as for the the programmer I've choose: <code>"USBasp"</code>, which I don't know if this is correct. I've used this <code>FTDI programmer</code> to program the <code>STM32 microcontroller</code> and the programmer was <code>"Serial"</code>, which I don't see the very same option here.</p>

<p>I'm lost, what am I missing up here?</p>

<p>BTW I've seen <a href="https://arduino.stackexchange.com/questions/22191/avrdude-stk500-recv-programmer-is-not-responding">this</a>, <a href="https://arduino.stackexchange.com/questions/16732/program-an-atmega328p-and-use-it-without-arduino-board">this</a> and <a href="https://arduino.stackexchange.com/questions/29348/atmega328p-programming-with-arduino-libraries">this</a> but couldn't get it fixed.</p>

<p><a href="https://i.stack.imgur.com/Gssiz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gssiz.png" alt="enter image description here"></a></p>
 42539: <p>A new chip cannot be programmed in that manner until it has the Bootloader installed. The Bootloader starts after a reset and monitors the serial interface to see if something is attempting to download code via the serial port.</p>

<p>Selecting a Programmer has no effect on serial download, that only comes into play when Programming via the SPI pins SCK/MOSI/MISO/Reset/Power/Gnd.</p>

<p>Your "design" needs a couple more parts: 0.1uF caps between VCC and Gnd, and AVCC and Gnd.</p>

<p>The Cryslal and 22pF caps could also be a lot closer to the device - like right next to it.</p>

<p>I can't read the FTDI markings, so I can't tell if you have Rx and Tx swapped there.</p>
