Hello,
I've been working with the atmega1284p in projects requiring a little more than the 328p, and have been prototyping on one board for a little while. I have been successfully uploading to the board and using it for various (yet basic) functions. Today I tried to upload a new sketch to the board and after I had done so (as it said it was done uploading, once again with no errors), I could no longer upload to the board.
I'm not quite sure what's happening, but every time I attempt to upload my sketch (with the same wiring that was working over and over) it now does not work, giving me this error:
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board.
I also had a "getsync" error in the beginning.
I have now taken all components off of my board so it is just the 1284p, its associated caps, resonators, and power wires, and the wires coming off from rx0, tx0, and the reset pin (with its 10k pullup and .1uf cap to the ftdi reset line). These are the same as on maniacbug's documentation( here : ATmega1284P on a Breadboard.sch | maniacbug.wordpress.com/20… | Flickr ). I was still getting these errors here as well.
I went ahead and re-uploaded the bootloader after this using the "Atmega_Board_Programmer" sketch to make sure everything was in order, and got that on with success.
When I try to upload now I either get the same recv error as above, or now one of a few new errors, including:
avrdude: arduino_read_sig_bytes(): (a) protocol error, expect=0x10, resp=0x00
avrdude: error reading signature data for part "ATmega1284P", rc=-3
avrdude: error reading signature data, rc=-1
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
and
avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x60
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0xe0
avrdude: stk500_cmd(): programmer is out of sync
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
I've spent a number of hours reading through different forums and posts now regarding these errors with no real conclusion as to what they mean.
I've checked numerous times for little wiring errors such as a cap or pin being loose or unplugged, I've pulled my chip out about 10 times now and made sure everything is placed correctly, but I can't manage to successfully upload to the chip anymore and don't know what's causing it. Normally with a diagnostic procedure of removing everything like this I am able to find the root of the problem, but not this time.
Any ideas what is going on?
Thanks