On 10/11/07, Xiaofan Chen wrote: > I want to remove all the functionality except the bootloader > function. > There are two ways to do this. > > If this is a success, I will then modify this code to a console > mode. Eventually the idea is to get a console version of > PICKit 2 host application. These two steps will be much more > difficult. I will give myself half a year or more to do this. Do > not laugh at me... Actually there is another way to get a console version of PICkit 2 bootloader application under Windows. It is already done by Jeff Post (pk2) and Mark Rages (pyk) with libusb. pk2/pyk are meant for Linux but they are also okay under Windows with libusb-win32. However it is a hassle to switch from the native HID driver to libusb-win32 device driver. So the other way is to write a replacement for libusb using the native Windows HID API which is quite well documented. I need to search for a Python wrapper for the native HID API. But HID API wrapper for GCC under Windows is available from AVR-USB project (not so complete) or I can modify from the Borland C++ 6 code from the original PICKit 2 V1.x PC application. http://www.obdev.at/products/avrusb/index.html This might be a easier route if I only want to get the console version of bootloader done. Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist