Simple program that launches avrdude with arguments supplied from user-defined board presets.
It can be used as Microchip studio (Atmel studio) tool
- avrdude must be installed on your computer
- avrdude.exe working directory must be included in PATH enviroment variable How to?
>AVRDudeWrapper <source file> <preset file (optional)>
- Source file: Compiled binary file (any format that is supported by avrdude)
- Preset file (optional): json file containing presets included here. If not supplied default file is used
>Enter preset name:
arduino_UNO
Enter name of preset that you want to use
If left empy last used preset will be used
>Enter port name:
COM6
Enter name of port that you want to use
If left empy last used port of the selected preset will be used
You can create custom presets simply by editing presets.json file
{
"Name":"arduino_UNO",
"MCUName":"atmega328p",
"Programmer":"arduino",
"BaudRate":115200,
"LastUsed":18,
"Port":"COM3"
}
Json properties
- Name: Name of the peset
- MCUName: Name of the microcontroller
- Programmer: What programmer to use
- BaudRate: Communication speed to use
- LastUsed: Property determining the last used preset - Set this to 0
- Port: Communication port to use
For properties 2 and 3 please refer to avrdude documentation
How to use this as Microchip studio tool
1. Open Tools menu
2. Create new external tool
Command:
<AVRDudeWrapper directory>\AVRDudeWrapper.exe
Arguments:
$(ProjectDir)Debug\$(TargetName).a <path to presets.json>
For usage as Microchip studio tool second argument must be supplied