Two clicks to program a PIC

 In PIC, Windows

Sometimes you end up having to program a device with many different types of firmware. For a project I’ve used PICs on, this was the case. Here’s how to setup things so that all it requires is two clicks to load the firmware from windows explorer.

This trick uses the CCS ICD-64U programmer (it will probably work with any of their programmers). We first create a batch file (with a nice name like PIC.bat) in our favorite text editor that calls the loader and then pauses so we can read the output. You may have to adjust the location of the executable depending on your installation location.

@echo off
"c:\Program Files(x86)\PICC\ccsloader.exe" +VERBOSE +WRITE=%1

Next copy the batch file into %APPDATA%\Microsoft\Windows\SendTo and you’re done. Now find a firmware file, right click on it and then you should have the batch file listed as an option.

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Start typing and press Enter to search