Has anyone gotten the standalone programmer:
https://github.com/adafruit/Standalone- ... programmer
To download to an UNO? I've tried it on 3 different UNO's and I get:
Arduino 22 and 23
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: failed to write flash memory, rc=-4
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
on Arduino 1.0 the more generic:
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync
Works fine on a Duemilanove with a 328.
The other strange thing is that it starts downloading normally, and then both the TX and RX leds light constant (or at least as far as I can tell) together for a few seconds, then nothing for a while and then it gives the error. On the Duemilanove, it flickers back and forth for longer and successfully downloads.
I'm a bit mystified. Thinking it might have something to do with available flash size (which shouldn't be a problem, as the UNO theoretically has more space with it's tiny bootloader.) I tried truncating the images.cpp hex structure, and weird thing was the arduino output hex file (in the temp build directory ) was exactly the same size.
I could just use the Due, but I want to understand and I'm working on adapting the standalone programmer to use an SD card, and I'd want that to work on the UNO.
PS:
I tried to use AVRDude from the command line to do the same thing:
C:\Users\Kevin\Desktop>avrdude -c arduino -P COM18 -p m328p -U flash:w:adaloader
.cpp.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "adaloader.cpp.hex"
avrdude: input file adaloader.cpp.hex auto detected as Intel Hex
avrdude: writing flash (30022 bytes):
Writing | ################################################ | 95% 6.57s
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync
Thanks,
Kevin

