Error uploading sketches to atmega328p via FTDI chip

Hi,

I am making a microcontroller using a atmega328pu and the FT232RQ chip from FTDI for the USB. While prototyping I have used two atmega328p chips. One is from an Arduino and one I got on amazon. When inserted into an Arduino Uno, sketches can be uploaded to both chips. However when using the FTDI chip circuit, I was able to upload sketches to the chip that I removed from an Arduino, but attempting to upload sketches to the other atmega328 it shows this error:



avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x8b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x8b

avrdude done.  Thank you.

Problem uploading to board.  See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

I am trying to find out why both chips work with the Arduino Uno, but only the Arduino's chip works with my circuit.

Considerations:

  • I have burnt the bootloader onto both chips
  • tried using a FT232 board with no result
  • the non-functional chip can be reset

Settings :

Board : Arduino UNO
Port : COM14
Programmer : Arduino as ISP

Here is the schematic that I used.

Thank you for any help!

First of all, the chip from Arduino have programmed the bootloader and the chip you bought on Amazon probably have not. Bootloader is necessary for serial programming.
You can find more about it on this web.

I'm recommending to check your schematics against UNO R3 schematics and ATmega's datasheet for 328 circuit. Carefully with AREF directly connected to 5V. It can be destroyed under some conditions.

Remove R5
Connect C3 to DTR instead of RTS
Add Vcc supply decoupling caps for the ATMega328P

I'm not sure why your circuit works at all given the DTR/RTS mixup.

Also:

Quite correct. Bootloader is necessary, but also (!!) correct clock configuration; a factory-fresh 328P will use the internal oscillator at 1MHz. You need something like a USB-ASP or Arduino-as-ISP to burn the correct fuses + install bootloader onto the new 328P.

DTR and RTS acts same way by avrdude tool which is used for uploading.

Ok, fair enough. No need for R5 to be there though.

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