Hi guys, just checking if anyone else is using an Arduino as ISP and uploading sketches to other boards via the ICSP header pins?
I've got this situation that two of the Arduino-compatible boards I ordered from DX.com had either a faulty USB header or crappy FTDI, and I ended desoldering the mini-USB connectors out of the boards, leaving me two working boards, but with only the ICSP header pins as a sketch upload possibility. - And now that I've used this method, I kinda like it. Who needs an USB anyway, besides on that one board used as an Arduino ISP. :D
There's just one tiny little problem. When ever I'm uploading a sketch from Arduino IDE via another Arduino as an ISP, the IDE feeds a "-D" parameter to avrdude, which, of course fails (by the specs). Clearing the whole memory region of the target board, one sketch uploads ok, but the next fails - due to how the memory on ATmega328 works - yeah, I've read about that clear bytes to 0xFF blah-blah..
Now, the real question: is there a way to force the Arduino IDE v. 1.0.x feeding parameters "-e -Ulock:w:0x0F:m" to avrdude, instead of that "-D"? In Arduino IDE 1.5.x this should be possible; I read from one of the config files that parameters (and 3rd party tools, etc. etc.) are customizable, but 1.5.x works kinda funky with my ICSP-setup.
(Note: the ISP -> ICSP setup is equal to using pins 10-14, +5V, GND on ISP master, and pins 11-13, RST, +5V, GND on the target board.)
Seems like the Arduino ISP is designed to be used only as a bootloader uploader, but since the hardware setup & Arduino ISP software itself work as a sketch uploader too, couldn't/shouldn't this upload parameter be changed?
Oh yeah, my ISP board is UNO R3, and I've got that small capacitor between reset and ground pins..