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:
- Setup connection between USB TTL CP2102 -> Arduino mini -> Atmega88
- Burn bootloader via Arduino as ISP success.
- Remove Arduino.
- 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)
- Do simple blink code and upload sketch with successful.
- 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
- 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!