Author Topic: Program ATmega Via WinAVR Arduino-avrdude:stk500_getsync():not in sync:resp=0x00  (Read 133 times)

0 Members and 1 Guest are viewing this topic.

Offline 2XTopic starter

  • Frequent Contributor
  • **
  • Posts: 356
  • Country: gr
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


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/




« Last Edit: Yesterday at 11:29:09 pm by 2X »
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 6972
  • Country: ro
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.

Offline squadchannel

  • Frequent Contributor
  • **
  • Posts: 407
  • Country: jp
  • deepl translate user
internal pull-up on the RESET pin is useless 99% of the time. It is too weak.
Try replacing the diode with a 10Kohm.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf