Go Down

Topic: Building a hex uploader (Read 904 times) previous topic - next topic

a.mlw.walker

Hi
So has anyone taken apart the IDE sourcecode to make a java hex uploader - standalone - or even looked at the code?
I program my AVR currently using AVR ISP MKII, and I am making a circuit for a simple midi controller. I am going to publish my circuit on the web along with code, but I want the circuit to include the ability to upgrade the firmware on the mega2560 if people want to use other peoples code - but I want the toption to be there for people who dont want to get down and dirty with source code.
My plan is to build a simple app that just replicates SHIFT clicking the upload button - I can build a simple programmer into the circuit (I dont want to use a bootloader).
Has anyone gone near this? I know how to program Java, I just havent got experience in how one might upload hex?
Any thoughts?

MichaelMeissner

#1
Aug 13, 2012, 05:19 pm Last Edit: Aug 13, 2012, 05:22 pm by MichaelMeissner Reason: 1
I believe the IDE uses avrdude to actually upload the image to the board.  So, you should be able to use avrdude directly (assuming you have a hex file).  You will need to figure out all of the options the IDE passes to avrdude, but you can turn on verbose messages in the IDE, it will show you the options.


CrossRoads

Take a look at NickGammon's work here too on loading from SD card.
http://www.gammon.com.au/forum/?id=11638
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up