In the future, I’d like to upload new firmware to JeeNodes, Arduino’s, and other AVR boards through channels other than a serial port or USB. Uploading to a “slave plug” via I2C would be neat, for example.
That means the standard avrdude won’t do. Besides, after having coded various types of ISP sketches recently, I realized that the upload mechanism is really quite simple. If all you need is STK500 compatibility (as used by several ISP programmers and by the Arduino boot loader itself), then avrdude is overkill.
So here’s a demo “rig” for JeeMon which does the same thing as avrdude, i.e. upload a sketch over a serial port:
That removes the need to compile and install avrdude. Better still, this should work as is on every platform supported by JeeMon.
(Note: the above code is now part of JeeMon, but the source code can also be found here on the web)
Update – the above code has been integrated into JeeMon as new Upload rig – with dudeLoader renamed to “stk500″ and readIntelHex now called “readHexFile”. Here’s a new demo “application.tcl” using this:
Now works with the Arduino boot loader as well as with the Flash Board ISP programmer (add “19200” arg).
(Reminder: the Jee Labs shop will be closed from July 14th through August 14th)