gnupic: Thread: [gnupic] Pickit 2 under Linux


[<<] [<] Page 2 of 2 [>] [>>]
Subject: Re: [gnupic] Pickit 2 under Linux
From: Xiaofan Chen ####@####.####
Date: 10 Nov 2005 14:00:09 +0000
Message-Id: <a276da400511100559m4e6aed11g924b7245ee4d6b9b@mail.gmail.com>

On 11/9/05, Xiaofan Chen ####@####.#### wrote:

> Yes I am referring to the V1.03 firmware. I have posted one work-around
> to the google-group. It is not so elegant though since it involves libhid.
> I have something in my mind to fix this issue and hopefully I can come
> out the patch soon.
>
> Reagrds,
> Xiaofan
>

Here is the patch to make pk2-1.34 working with the original
V1.01 firmware which has the bug of using the same configuration
index value for 2 configurations.

1) change the following line:
const static int pickit_configuration = 2;	// 1: HID; 2: vendor specific
to
const static int pickit_configuration = 1;	// 1: HID; 2: vendor specific

2) Add the following code before setting the configuration, i.e. line
244 "(if (usb_set_configuration(d, pickit_configuration))" for Linux.

			// The following is required for V1.01 firmware
			#ifndef WIN32
				{
				int retval;
				char dname[32] = {0};
				retval = usb_get_driver_np(d, 0, dname, 31);
				if( retval == 0 && strcmp(dname, "usbhid") == 0 )
					{
					usb_detach_kernel_driver_np(d, 0);
				        }
				}
				#endif
                          //end of added codes
				if (usb_set_configuration(d, pickit_configuration))
						bad("Error setting USB configuration.\n");

The function of the added codes is to detach the kernel usbhid driver
which claims the PICkit 1 HID configuration.

The added codes are also okay with firmware version 1.03 which has the
configuration index bug-fix.

Regards,
Xiaofan
Subject: RE: [gnupic] Pickit 2 under Linux
From: Chen Xiao Fan ####@####.####
Date: 22 Nov 2005 00:41:58 +0000
Message-Id: <3B8AEFFADD3DD4118F8100508BACEC2C0A2893DE@spex>

The next revision of PICkit 2 firmware will support 
the 18F USB chips as well quite some popular 16F and
18F chips. It is scheduled to be released by end of 
this year.

Take note that the chip supported is from Microchip.
Mark's Python based pyk already supports 
16F73/74/76/77, 16F676 and 16F737/747/767/777
with the first revision firmware. Pyk supports
most of the chips supported by Microchip. The
latest pyk also supports the bootloader function.

With the next firmware, PICkit 2 will be truly a
hobbyists' programmer since it will work under Linux 
and Windows and supports most popular under-40pin 
(read: DIP version available) modern Flash PICs.

Together with Wisp628 (with xwisp2 1.8.1), I think
these two programmers are worth a try if you want to
try a new PIC programmers. Wisp628 is easier to be
built by oneself. PICkit 2 (US$35+shipment) is good if 
you want to buy a ready-made programmer.

Regards,
Xiaofan

Existing support:
PIC10F200/202/204/206/220/222
PIC12F508/509/510
PIC16F54/57/59/505/506

PIC12F629/635/675/683
PIC16F630/636/676
PIC16F684/688/689/690/785
PIC16F913/914/916/917/946

New 16F support to be added by next release:
PIC16F627A/628A/648A 
16F73/74/76/77 
16F818/819 
16F873A/874A/876A/877A
 
18F devices to be added by next release: 
DS39592:
PIC18F1220/1320/2220/2320/4220/4320
DS39622:
PIC18F2221/2321/2410/2420/2455/2480/2510/2520/
PIC18F2525/2580/2585/2610/2620/2680
PIC18F4221/4321/4410/4420/4455/4480/4510/4520/
PIC18F4525/4580/4585/4610/4620/4680

-----Original Message-----
From: Julian Green
Sent: Wednesday, September 21, 2005 6:55 PM
To: ####@####.####
Subject: RE: [gnupic] Pickit 2 under Linux 

Can it do a pic18f2550?

Julian
Subject: RE: [gnupic] Pickit 2 under Linux
From: Chen Xiao Fan ####@####.####
Date: 22 Nov 2005 01:47:26 +0000
Message-Id: <3B8AEFFADD3DD4118F8100508BACEC2C0A2893E0@spex>

By the way, the latest pyk/pk2 package works under Windows 
using libusb-win32 device driver besides Linux.

To run pyk/pk2 under Windows, I have written a mini-howto. 
I also put up the source+Win32 binary packages at the 
following thread:
http://groups.google.com/group/pickit-devel/
Thread: "Mini-howto: how to run pk2 and pyk under Windows".

Or you can directly use the following link but be careful
of URL truncation.
http://groups.google.com/group/pickit-devel/browse_thread/thread/e4ff7529a1c
dd68d/f3812040c5426c0e?hl=en#f3812040c5426c0e

If you have problems specifically related to Windows, please
do not bug Mark and Jeff since they normally use Linux. You
can post to the pickit-devel group and I will try to help
you there. 

Anyway, the Windows support is just a byproduct and the Linux 
support is more interesting since Microchip will take care of 
PICKit 2 Windows.

Regards,
Xiaofan
Subject: RE: [gnupic] Pickit 2 under Linux
From: Chen Xiao Fan ####@####.####
Date: 22 Nov 2005 05:06:06 +0000
Message-Id: <3B8AEFFADD3DD4118F8100508BACEC2C0A2893E7@spex>

Correction to the previous post (missing
18F2550 and 18F4550):

Chip supports for PICkit 2 from Microchip:

1) Existing support with V1.01 firmware:
PIC10F200/202/204/206/220/222
PIC12F508/509/510
PIC16F54/57/59/505/506

PIC12F629/635/675/683
PIC16F630/636/676
PIC16F684/688/689/690/785
PIC16F913/914/916/917/946

2) New 16F support to be added by next release:
PIC16F627A/628A/648A 
16F73/74/76/77 
16F818/819 
16F873A/874A/876A/877A
 
3) 18F devices to be added by next release: 
DS39592:
PIC18F1220/1320/2220/2320/4220/4320
DS39622:
PIC18F2221/2321/2410/2420/2455/2480/2510/2520/
PIC18F2525/*2550*/2580/2585/2610/2620/2680
PIC18F4221/4321/4410/4420/4455/4480/4510/4520/
PIC18F4525/*4550*/4580/4585/4610/4620/4680

Subject: Re: [gnupic] Pickit 2 under Linux
From: Xiaofan Chen ####@####.####
Date: 21 Dec 2005 23:03:29 +0000
Message-Id: <a276da400512211503w573d0c10r76c7de8ce154870@mail.gmail.com>

On 11/22/05, Xiaofan wrote:
> The next revision of PICkit 2 firmware will support
> the 18F USB chips as well quite some popular 16F and
> 18F chips. It is scheduled to be released by end of
> this year.

PICkit 2 V1.10 has been released. Please refer to microchip website
(http://ww.microchip.com/PICkit2) for detail. Take note that the Linux
application pk2 and pyk does not support 18F yet. The V1.10 firmware
itself may support more chips than Microchip's PC application. For
example, it is reported that pk2-1.34 already supports 16F627/16F871
under Mac OS X.

Regards,
Xiaofan

Current Device Support of PICkit 2 (Dec 2005) with V1.10 firmware :

PIC10F200, 202, 204, 206
PIC10F220, 222
PIC16F54, 57, 59
PIC12F508, 509, 510
PIC16F505, 506

PIC12F629, 635, 675, 683
PIC16F616, HV616
PIC16F627A, 628A, 648A
PIC16F630, 636, 676,
PIC16F684, 685, 687, 688
PIC16F689, 690, 785
PIC16F913, 914, 916, 917
PIC16F946
PIC16F73, 74, 76, 77
PIC16F818, 819
PIC16F873A, 874A, 876A, 877A

PIC18F1220, 2220, 4220
PIC18F1320, 2320, 4320
PIC18F2221, 2321, 4221, 4321
PIC18F2410, 2420, 2455, 2480
PIC18F2510, 2520, 2525, 2550, 2580, 2585
PIC18F2610, 2620, 2680
PIC18F4410, 4420, 4455, 4480
PIC18F4510, 4515, 4520, 4525, 4550, 4580, 4585
PIC18F4610, 4620, 4680
Subject: Re: [gnupic] Pickit 2 under Linux
From: Mark Rages ####@####.####
Date: 22 Dec 2005 05:52:03 +0000
Message-Id: <74ee72ca0512212151t5bfb5cb3k6cd949c08a4c3951@mail.gmail.com>

On 12/21/05, Xiaofan Chen ####@####.#### wrote:
> On 11/22/05, Xiaofan wrote:
> > The next revision of PICkit 2 firmware will support
> > the 18F USB chips as well quite some popular 16F and
> > 18F chips. It is scheduled to be released by end of
> > this year.
>
> PICkit 2 V1.10 has been released. Please refer to microchip website
> (http://ww.microchip.com/PICkit2) for detail. Take note that the Linux
> application pk2 and pyk does not support 18F yet. The V1.10 firmware
> itself may support more chips than Microchip's PC application. For
> example, it is reported that pk2-1.34 already supports 16F627/16F871
> under Mac OS X.
>

18F support is halfway there in the latest version of pyk.  Well, it's
completely there, but it doesn't work yet!

Regards,
Mark
markrages@gmail
--
You think that it is a secret, but it never has been one.
  - fortune cookie
[<<] [<] Page 2 of 2 [>] [>>]


Powered by ezmlm-browse 0.20.