Programming Hex files on the command line in Windows, Linux or Mac

If you already have binary code for your microcontroller in the HEX format, because you downloaded it from a website or compiled it on the command line using the Linux version of the Microchip compiler, going through MPLAB just for programming can be a hassle. Luckily, Microchip makes some handy tools External link available with which you can program on the command line in Windows, Linux and Mac OS X.

To make it even easier, we created two ready-made software packages, one Windows version and one for Linux and Mac OS X. When you download and extract the ZIP file, you can write a program in HEX format to the Dwengo board without having to install any additional software. To do this, just copy your HEX file into the folder where you extracted the ZIP file, and rename it to code.hex. Hook up your Dwengo board and programmer, then click program.bat (Windows) or execute the file program.sh (Linux and Mac). After a short while, your Dwengo board will be programmed with the HEX file.