I'd like to integrate loading of hex files created from sketches in Arduino 1.0 IDE via USB into a Windows Forms Application. I've read a lot about AVRDUDE, but it isn't clear to to me if this utility can do that, or if it's only for burning AVR's with a hardware programmer.
Is there by chance any native Windows C/C++ source code available? I suppose I could use the Windows ShellExecute() command to execute AVRDUDE, but I prefer to write native or managed code as part of my app.
I appreciate any guidance.
AVRDUDE can write to an avr using a bootloader, its what arduino uses to upload sketches
and you can find the source code
Thank you. Can you give me a command line example that would upload a hex program to an ATmega328-based Arduino? Right now, I use Nano's, but I will eventually make my own discreet Arduinos on a circuit board with ATmega328 DIPs and FT232RL chips.
I also wondered if AVRDUDE and/or Arduino IDE can be used to burn Arduino Bootloader into an ATmega 328 processor. Can this be done over USB, or is an EEPROM programmer required? If so, what unit could program the DIP package and might be reasonably priced and easy to use?
Enable verbose mode in Preferences in the IDE to see all the commands used to compile and upload a sketch.
I also wondered if AVRDUDE and/or Arduino IDE can be used to burn Arduino Bootloader
Can you give me a command line example that would upload a hex program to an ATmega328-based Arduino?
Enable verbose output in the preferences and you'll see the exact command line used by the Arduino IDE.
AVRDUDE -p atmega328p -c arduino -P COMx -b 19200 -U flash:w:filename.hex
Thanks Osgeld. That's straight forward enough for an Arduino weenie like me.