Bit hard to figure this one out - not for lack of trying!
I’ve successfully built a standalone breadboard version of an ATmega 1284p via Manicbug’s helpful post:
I can upload a simple Blink sketch which toggles an LED fine, but when I try some other example programs that are larger they compile fine but uploading fails. Upon hitting ‘upload’ the Rx Tx LEDs on the FTDI Basic rapidly blink for approx 2-3 secs then upload fails with a return message of:
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x62
avrdude: stk500_recv(): programmer is not responding
I’ve checked the wiring connections, tried powering the 1284p via a separate 5v and anything else I could think of and searched a bunch of posts on this, but not figured it out.
Could it be related to a time-out issue upon auto reset via the DTR pin on the FTDI Basic? It seems odd that it accepts Blink just fine, then without adjusting anything will not accept more complex sketches.
I’ve a 10K pull-up resistor on the RST pin per Manicbug’s setup & can upload Blink with or without it connected, but no change for other sketches…
Here’s my setup:
Arduino 1.6.5 on Mac OS X 10.11,
In IDE - Selected Board: MightyCore ATmega1284p
Correct USB port connected to: FTDI Basic from Sparkfun (also tried newer Module -same result)
FTDI Basic <----> 1284p
DTR line goes to RST on 1284p (physical pin 9 ) via 0.1 uF Cap,
RX ---- TX (D9, physical pin 15 )
TX ---- RX (D8, physical pin 14 )
5v ---- 5v (via breadboard rails to all appropriate pins)
Gnd ---- Gnd (via breadboard rails to all appropriate pins)
Any help greatly appreciated, thanks!