Arduino:1.8.8 (Windows 10), Kort"ATmega328 on a breadboard (8 MHz internal clock)"avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x15avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x15avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.avrdude: stk500_disable(): unknown response=0x12Feil oppstod under skriving av oppstartslaster.This report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.
Poor setup. You have to connect:- all Vcc and GND pins,- it is nice to have decoupling capacitors .1uF, close to power pins,- the reset circuit must be, at least pull-up resistor cca 10k,- AREF via 0.1uF cap. to the GND.
This is how I connected the Arduion Nano to the new Atmega328-AU chips:
I read again and, if you use Nano as programmer with Arduino v1.8.8, you have to connect cca 10uf capacitor between RESET and GND pins on Nano.
As an alternative, can I solder the new Atmega328-AU chip to another Arduino Nano (switch the cips) and burn the bootloader that way (burning a 8MHz bootloader to the chip with the 16MHZ crystal and all that still on the board)?
I just tried to add the following:On the prgogrammer (Arduino Nano):- A 10K resistor between RESET and GND
Wrong. It should be 10uF capacitor. We need to disable the the reset during bootloading by keeping the RESET high on the programmer. See the reply #4 again.