I am trying to program an Atmega2560 chip using a raspberry pi. From the command line I am using the command:
sudo avrdude -p m2560 -C ~/AVR/gpio_config/cable1/cable_1.conf -c cable_1 -v -U flash:w:/home/pi/AVR/gpio_config/cable1/MP_US_6-7.hex:i
The writing process completes but the verification process always returns an error.
Using AVR Studio Version 7, I attempted to verify the flash and also get the same error:
If I program the Atmega2560 with the same firmware file from AVR Studio it writes and verifies with no errors.
I have verified the fuse bits and lock bit. The file is 152912 bytes. On the following site, http://www.nongnu.org/avrdude/us..., there is a note related the the Atmega2560 version that flashing above 128kb is not supported by all programming hardware. I was hoping the linuxgpio would fall under the "known to work...bit banger" classification.
I am powering the 2560 from an external source and have verified this response on multiple 2560 chips.