This is a Tool designed for Code::Blocks to help you Upload your hex file to a MCU
- Code::Blocks
- DFU-Programmer
- WinAVR (not required, used to generate .hex file)
-
Download the AIO-DFU from the Releases tab or click here
-
Save it somewhere (e.g "C:\Program Files (x86)\dfu-programmer-win-0.7.2\aio-dfu.exe")
-
Open Code::Blocks
-
Configure a new Tool:
-
Menu Bar → Tools → Configure tools... → Add
-
Name: [A name for the tool, doesn't matter]
-
Executable: the location of aio-dfu.exe (e.g "C:\Program Files (x86)\dfu-programmer-win-0.7.2\aio-dfu.exe")
-
Parameters: You should add 2 Parameters, seperated by space
-
1st: Location of the dfu-programmer.exe sorrounded by "" (e.g "C:\Program Files (x86)\dfu-programmer-win-0.7.2\dfu-programmer.exe")
-
${TARGET_OUTPUT_DIR}${PROJECT_NAME} (exactly this)
-
-
should look something like this: "C:\Program Files (x86)\dfu-programmer-win-0.7.2\dfu-programmer.exe" ${TARGET_OUTPUT_DIR}${PROJECT_NAME}
-
Working directory: [leave blank]
-
For Launching options you can choose the second option if you don't want to see the Console popping up everytime you program
-
Click OK
-
-
Click Close
-
-
Optionally, you can add a keyboard shortcut:
-
Menu Bar → Settings → Editor... → Keyboard shortcuts (scroll down on the left side)
-
Under Commands open Tools and click on you Tool's name
-
Add a shortcut on the right side
-
Click OK
-
-
Thats it ✌️
You can test it by either Selecting the Tool under Tools or pressing the keyboard shortcut (don't forget to click on the button on your MCU-board)
Feel free to explore and modify the source code
-
Clone this repo:
$ git clone https://github.com/ThomasW2005/AIO-DFU.git
-
Compile with GCC:
$ g++ aio-dfu.cpp -o aio-dfu.exe -O3 -Wall
Under Construction