Failed to upload sketch to Atmega88PA via UART

Hi everyone,
I had an issue when trying to upload a sketch in Arduino to Atmega88PA-AU by using
MCUdude/MiniCore and here below is reproduce steps:

  1. Setup connection between USB TTL CP2102 -> Arduino mini -> Atmega88
  2. Burn bootloader via Arduino as ISP success.
  3. Remove Arduino.
  4. Setup USB TTL connection with Atmega88 via UART and follow minimal setup from GitHub - MCUdude/MiniCore: Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB


The DTS and RTS are the same port in my USB TTL. Are the capacitors is 100nF (specific 22pF for the crystal)

  1. Do simple blink code and upload sketch with successful.
  2. Edit code and upload again but have an error:
avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\xxx\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.0.8/avrdude.conf"

         Using Port                    : COM9
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

An error occurred while uploading the sketch
  1. Wait a few minutes and click upload again with success or simply do power off Atmega and power up again after a few seconds.

And here are some additional details:

  • Board: Atmega88
  • Bootloader: Yes
  • Clock: External 16Mhz
  • Compile LTO: disable
  • Variant: 88 / 88PA
  • BOD: BOD 1.8V
  • Programmer: AVR ISP (MiniCore)
  • Arduino 1.8.5 with Windows 10 64Bit Latest Update

So do I missing something or do anything wrong? Please help me figure out and thank you so much!

specific 22nF for the crystal

Should this not be 22pF?

missdrew:
Should this not be 22pF?

Ah, I'm sorry, it 22pF not 22nF

I have resolved this issue because my breadboard has broken, the +VIN and GND on two sides not connect together. So that with my pull up resistor not working as well! This is by bad, sorry everyone. :confused:

Do not apologize, it can be useful though.
+1