On 12/10/05, Timothy Weber wrote: > I just got the PICkit 2 recently - I needed to program a PIC16F916 and > my old programmer couldn't. It's nice. I like it. Me too. It will soon support lots of popular 18F and 16F chips. Later it will support dsPIC30 and even PIC24 and dsPIC33 (not so soon) if Dan Butler (the PICkit keeper in Microchip) continues his efforts. It is hardware ready for supporting all these chips. > However, I was surprised to find that it didn't install itself into > MPLAB as a programmer. And, it didn't seem to have a command-line > interface so I could launch it for one-key programming from SourceBoost, > another IDE I'm experimenting with. It is said that it will only be integrated later (maybe MPLAB 7.3 or 7.4, official 7.3 will soon be out). The command line option is nice to have. Currently there are some efforts to bring it to Linux by Mark Rages (in Python) and Jeff Post (in C). I am able to run both application running under Windows but it requires libusb-win32 device driver and may not be the optimum solution for Windows. The Microchip application uses HID 1.1 which is compatible to Windows 98SE and later Windows (Me, 2K, XP) and does not require a customized driver. > I grabbed the source to see if that would help me figure out if it had > any command-line options, and when I looked at it, realized it was done > in C++Builder 6, which I happen to have and know. > So, I got it compiling and added an "-auto " option to > automatically load the named file, write it out, verify, and exit on > success. Great! I wish I know a bit more of progrmaming so that I can do this. > In the meantime I also found out that it automatically reloads the hex > file if it's changed; if I'd known that, I might not have bothered! > Still, it's kind of nice to have a command-line option, and I also added > some sounds for success and failure, which I find handy. It is good to have a command line option so that some people can run scripts using PICkit 2. > I expect someone's already done some hacking on this, and I intended to > check on that before I started, but honestly it took so little time that > by the time I remembered to do that, I was nearly done. > > Anyway - if anyone's interested, I can post the modified EXE. I am interested. For Mark and Jeff's work, please refer to the pickit-devel Google group. http://groups.google.com/group/pickit-devel Regards, Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist