Studio 5/6 Invoke AVRdude for Arduino/other serial download

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What I'm doing to use AVRdude to push the .hex from Studio 6 so that after doing a build, I click on a menu to cause a download via a serial bootloader and AVRdude...

Added to Studio 6's tools/external menu an invocation of a windows .bat file. In that file I put avrdude command lines to send .hex to two AVR boards each with a USB link to the PC.

So on the Studio External Tools menu, in the "command:" text box, I have
$(ProjectDir)\ArduinoBootload.bat
and in the "Initial Directory box" I have
$(ProjectDir)

the batch file has the AVRdude command line(s), such as (ignore the line-wraps below)

avrdude -p m328p -c arduino -P \\.\COM18 -b 57600 -U flash:w:Debug\myProject.hex 
#avrdude -p m328p -c arduino -P \\.\COM18 -b 57600 -U eeprom:w:Debug\myProjectA.eep
avrdude -p m328p -c arduino -P \\.\COM19 -b 57600 -U flash:w:Debug\myProject.hex 
#avrdude -p m328p -c arduino -P \\.\COM19 -b 57600 -U eeprom:w:Debug\myProjectB.eep

(and I uncomment the lines I need)

Maybe fancier way to do this, but it's just one click in the menu.