Dear community,
I read tons of topics here about error "avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x3e" but no solution worked for me. Maybe I did not see a problem in my circuit...?
I am using ATMega328P with Ch340G. I have all drivers installed and working. I tryed dozens of boards, downgrading arduino core, used "old bootloader" option etc... There is no problem. I burn bootload with ICSP without problem. I even upload test sketch via ICSP. After plug-in USB cable, I see incoming data with serial monitor and my test program even respond to serial inputs. So there is also no problem. The problem is when I try upload new sketches via USB. From my point of view, there is a problem with synchronization but I not know how to fix this. Below is errors I am getting all the time, no metter If I try to use reset button before/while uploading. Circuit scheme is attached. Sid anyone think of anything that might be a problem?
avrdude: Version 6.3-20171130
** Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/**
** Copyright (c) 2007-2014 Joerg Wunsch**
** System wide configuration file is "C:\Users\Alex\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14/etc/avrdude.conf"**
** Using Port : COM8**
** Using Programmer : arduino**
** Overriding Baud Rate : 57600**
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x3e
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf8
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x38
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf8
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x3a
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xf8
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x3e
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf8
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x38
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf8
avrdude done. Thank you.
Thanks for help.
AB