How to install arduino mega 2560 as isp programmer for atmel 644

So it doesn’t make any sense to try all your ideas when we don’t connect an capacitor?

You’re still free to try without and prove me wrong but according to the information I read online that is needed :smiley:.

As another sidenote, if you have another programmer like https://www.ebay.de/itm/USB-ISP-USBASP-AVR-Programmer-mit-10-auf-6-Pin-Adapter-und-Kabel-Arduino/393020847827 that is prebuilt for tasks like this and already has the right cable, it might be much less painfull (given that the header pinout is correct regarding reset and the chip is actually still working). The USBASP (and others) is also directly supported.

1 Like

Now we added a capaciator 10µf and flash again now it gets flashed but we got a verifaction error.
avrdude: verifying …
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x0c
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done. Thank you.

A flag must be given so that the chip is erased before upload.

Add -e in a new, indented line to the upload_flags.

Thats the complet error. But don’t know why. I checked the wireing. Flashed the arduino with the isp new. Connect the Capaciator. I swaped between the platform ini’s.

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATmega644 is 1E 96 09
avrdude: erasing chip
avrdude: reading input file “.pio\build\sanguino_atmega644\firmware.hex”
avrdude: writing flash (984 bytes):

Writing | ################################################## | 100% 0.97s

avrdude: 984 bytes of flash written
avrdude: verifying flash memory against .pio\build\sanguino_atmega644\firmware.hex:
avrdude: load data flash data from input file .pio\build\sanguino_atmega644\firmware.hex:
avrdude: input file .pio\build\sanguino_atmega644\firmware.hex contains 984 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.58s

avrdude: verifying …
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x0c
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done. Thank you.

the first ini

[env:sanguino_atmega644]
platform = atmelavr
board = sanguino_atmega644
framework = arduino
upload_port = COM3
upload_protocol = custom
upload_speed = 19200
upload_flags =
-e
-C
; use “tool-avrdude-megaavr” for the atmelmegaavr platform
$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-b
$UPLOAD_SPEED
-c
stk500v1
-F

upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i

the Second is the same i only change the board to board = sanguino_atmega644_8m

Seems like the chip isn’t responding at all. Were you ever able to get avrdude to output the correct device signature there?

What are your result on the checklist at How to install arduino mega 2560 as isp programmer for atmel 644 - #20 by maxgerhardt?

So i checked now everything. I wrote an small blinky where it loops through and blink. When i connect my wire to the Output pin 5 at the 644 the led Flashes perfectly until the reading error is comming. So

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATmega644A is 1E 96 09
avrdude: erasing chip
avrdude: reading input file “.pio\build\ATmega644A\firmware.hex”
avrdude: writing flash (942 bytes):

Writing | ################################################## | 100% 0.97s

until here it flashes perfect and correct. but then

avrdude: 942 bytes of flash written
avrdude: verifying flash memory against .pio\build\ATmega644A\firmware.hex:
avrdude: load data flash data from input file .pio\build\ATmega644A\firmware.hex:
avrdude: input file .pio\build\ATmega644A\firmware.hex contains 942 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.58s

avrdude: verifying …
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x0c
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done. Thank you.

here Stops but i don’t have any idea why. So the Programmer runs perfectly, the arduino as programmer too. I connected the Leds for heartbeat, error and programming. So it is another Reason why it fails. The double power isn’t it because i power the ship by the arduino. The Capiciator could be but i change it so booth couldn’t be broken. The Ship 644 is also working because i’ve got the LED output only at my output pin. Any other ideas? i change the wirering between SS for reset and D10 booth dosen’t work.