From 4bbdf443bd8dfcf0baf696d715b9df0ec2a1df15 Mon Sep 17 00:00:00 2001 From: Telekomak <65535357+Telekomak@users.noreply.github.com> Date: Wed, 26 Oct 2022 16:31:45 +0200 Subject: [PATCH] Create README.md --- README.md | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf8b56f --- /dev/null +++ b/README.md @@ -0,0 +1,81 @@ +# avrdude Wrapper +Simple program that launches avrdude with arguments supplied from user-defined board presets. + +It can be used as Microchip studio (Atmel studio) tool + +## Requirements +- [avrdude](https://github.com/avrdudes/avrdude/releases/tag/v7.0) must be installed on your computer +- avrdude.exe working directory must be included in PATH enviroment variable [How to?](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/) + +## Usage +``` +>AVRDudeWrapper +``` + +1. **Source file:** Compiled binary file (any format that is supported by avrdude) +2. **Preset file (optional):** json file containing presets [included here](https://github.com/Telekomak/avrdudeWrapper/blob/master/presets.json). ***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*** + +## Custom presets +You can create custom presets simply by editing presets.json file + +```json +{ + "Name":"arduino_UNO", + "MCUName":"atmega328p", + "Programmer":"arduino", + "BaudRate":115200, + "LastUsed":18, + "Port":"COM3" +} +``` + +**Json properties** +1. Name: Name of the peset +2. MCUName: Name of the microcontroller +3. Programmer: What programmer to use +4. BaudRate: Communication speed to use +5. LastUsed: Property determining the last used preset - **Set this to 0** +6. Port: Communication port to use + +***For properties 2 and 3 please refer to [avrdude documentation](https://www.nongnu.org/avrdude/user-manual/avrdude.html)*** + +## Microchip (Atmel) studio +How to use this as Microchip studio tool + +**1. Open Tools menu** + +![image](https://user-images.githubusercontent.com/65535357/198051581-42f5c990-267e-4564-9096-5d99d98ab91c.png) + +**2. Create new external tool** + +![image](https://user-images.githubusercontent.com/65535357/198052301-ae3f5735-cd58-4694-90d6-88c001556e40.png) + +**Command:** +``` +\AVRDudeWrapper.exe +``` + +**Arguments:** +``` +$(ProjectDir)Debug\$(TargetName).a +``` +***For usage as Microchip studio tool second argument must be supplied*** + +## Resources: +- [avrdude documentation](https://www.nongnu.org/avrdude/user-manual/avrdude.html)