EEVblog Electronics Community Forum
Electronics => Microcontrollers => Topic started by: 2X on January 07, 2025, 10:23:31 pm
-
Hi,
I am trying to program the ATmega128A-AU microcontroller via an arduino UNO with ISP in windows 11. I have use the below method before some years (in windows 10) and worked on the same MCU. Now always I am getting the same error "avrdude: stk500_getsync(): not in sync: resp=0x00".
The ATmega128A-AU is a brand new chip and also the Arduino Uno can be programmed from the Arduino IDE v2.3.4, so the bootloader of the arduino it works fine I assume. Any ideas?
Running AVRDUDE
https://www.ladyada.net/learn/avr/avrdude.html (https://www.ladyada.net/learn/avr/avrdude.html)
Write CMD commands:
avrdude -c arduino -b 19200 -p m128 -P COM3 -U flash:w:mega128_flash.hex:i //Flash Write
avrdude -c arduino -b 19200 -p m128 -P COM3 -U eeprom:w:mega128_eeprom.hex:i //Eeprom Write
avrdude -c arduino -b 19200 -p m128 -P COM3 -U hfuse:w:mega128_hfuse.hex:i //High Fuse Write
avrdude -c arduino -b 19200 -p m128 -P COM3 -U lfuse:w:mega128_lfuse.hex:i //Low Fuse Write
avrdude -c arduino -b 19200 -p m128 -P COM3 -U efuse:w:mega128_efuse.hex:i //Extended Fuse Write
Arduino as ISP and Arduino Bootloaders
https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/ (https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/)
-
Did you add a 10..100uF from Reset to GND (on the Arduino board that plays the role of a programmer)?
Without that, an Arduino board can not program another microcontroller, but I don't recall the exact error.
-
internal pull-up on the RESET pin is useless 99% of the time. It is too weak.
Try replacing the diode with a 10Kohm.