![]() ![]() ![]() ![]() ![]() Alan numitron clock Clapclap 2313/1386 SNES Pi Webserver USB Volume/USB toys Smokey amp Laser cutter WordClock ardReveil v3 SNES Arcade cabinet Game boy projects cameleon Home Presence Detector ![]() AlanFromJapan ![]() ![]() ![]() Akizukidenshi Elec-lab Rand Nerd Tut EEVblog SpritesMods AvrFreaks Gameboy Dev FLOZz' blog Switch-science Sparkfun Suzusho Datasheet Lib Reddit Elec Ermicro Carnet du maker (fr) |
avrstudioflasherLast update: Thu Jun 5 22:25:40 2025
This is a small tool I made since I didn't find the thing I wanted. If there is an easy way to do it instead of this software, run for it but just send me a mail before so I can do the same!
Moving out from WinAVR (a great distribution) and its Programmer's Notepad a kinda limited software (... and I'm staying polite) to AVR Studio 5 embedded in Visual Studio Shell. So great, nice, integrated and it's Visual Studio, the tool I use at work everyday of the week. Installation is fine, a few simple tutorials on how to use and you're in within minutes. Ok, now how do I upload this magnificent blink code to my micro controller ? I do what ? Tools > AVR Programming > Apply > Memories > Choose a file > Program ? And the window is modal ? You want me to do that each time ? No really, you're kidding, right ? Not Ctrl%20Shit%20P or simple shortcut ? I searched a little and seems it's not a trivial question since there's no nice answer that I could find. So let's open Visual Studio C#...
DownloadBinary file %20 config filehttp://code.google.com/p/alanarduinotools/source/browse/#svn%2Ftrunk%2FC_Sharp%2FArduino_Tools%2FAvrStudioFlasher%2FBinariesor AvrStudioFlasher.v1.0.0.0.zip Source codehttp://code.google.com/p/alanarduinotools/source/browse/#svn%2Ftrunk%2FC_Sharp%2FArduino_Tools%2FAvrStudioFlasherHow does it work ?
The program is launched with as a parameter the path to the Visual Studio project (where the .avrgccproj is located). Once there, it will fetch the makefile located in Debug\ subdirectory. Inside it will find the name of the .hex to search for and the type of MCU you're using in that project. Based on that info plus COM port and protocol (these are defined in the AvrStudioFlasher.exe.config) it runs avrdude (path to avrdude is also defined in the .config file). Cant find avrdudeSays it can't find avrdude ? Well, I guess it's not in your PATH environment variable. If you understand this comment you most likely know how to fix it. Otherwise, just give the full path to avrdude in the config file. You might have to install the WinAVR tool chain to have the avrdude installed. XML config file will look like something like:...
<add key="UploaderExe" value="C:\WinAVR\bin\avrdude"/>
...
Config file ?An xml file named AvrStudioFlasher.exe.config that must be in the same directory as AvrStudioFlasher.exe. This is what it looks like by default:<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="ProgrammerProtocol" value="avrispv2"/> <add key="COMport" value="COM1"/> <add key="UploaderExe" value="avrdude"/> <add key="Params" value="-p {mcu} -P {comport} -c {protocol} -U flash:w:"{hexfile}":i "/> </appSettings> </configuration> HOWTO install ?
|
||
All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated) electrogeek.tokyo ~ Formerly known as Kalshagar.wikispaces.com and electrogeek.cc (AlanFromJapan [2009 - 2025]) |