User loginNavigationNew photosRandom QuoteI’d like to be more hopeful, but what are the chances of that? |
PICkit 2 automatorSince I made my first mod to the PICkit 2 applet source, Microchip completely rewrote the applet. They use .NET, which I consider to be pretty much a virus, but I was considering getting all the MS development tools installed and getting up to speed with C# to work with it. But then I realized that it would be simple to just automate the existing applet with an external program, and that would mean I wouldn’t have any changes to integrate into the Microchip source (as well as not having the dreaded MS tools installed). So the result is a very simple script written with AutoIt, posted here for public consumption. Running the scriptThe script is called AutoPicKit.au3. A compiled version called AutoPicKit.exe is included in the ZIP file below. It was compiled with AutoIt v. 3.1.1. Read the beginning of the .au3 file for the details. Basically, if you run it with no command-line arguments, it’ll ensure the PICkit applet is open and try to write the most-recently-used .hex file. If you specify a .hex file on the command line, it’ll try to load and write that. If the full path is not specified, it assumes the script’s default directory. Using the script with the SourceBoost IDETo have SourceBoost automatically program a chip with the PICkit2 on a complete build:
Now you’ll automatically program your PIC at the end of a successful build.
|