gnupic: Re: [gnupic] pk2 on amd64 fc4
Subject:
Re: [gnupic] pk2 on amd64 fc4
From:
"Xiaofan Chen" ####@####.####
Date:
26 Mar 2006 04:35:55 +0100
Message-Id: <a276da400603251935v34298679v32cfd2a062e19f16@mail.gmail.com>
On 3/25/06, John Sheahan ####@####.#### wrote:
>
> I borrowed my son's computer and upgraded the firmware on the pickit to
> 1.10 with windows. I found a ZIF socket and adapted it to the 16f628A
> I'm about to use, then I figured I should write the code to go in the
> PIC next.
...
>
> I'll run pk2 on the 32b ubuntu breezy box, and experiment more on amd64
> after that step. I'll let you know what I find.
> john
>
Nicolas has since solved the compiling problem with Ubuntu 5.04 Hoary 64-bit
edition that I have now. And it indeed works with PICkit 2. I have tried out
16F628A and 12F675A, both works nicely under piklab latest CVS version.
Interestingly, I also got pk2-1.36 and pyk-0.31 to work under the same OS.
pk2-1.36 supports 16F628A but not pyk-0.31. Take note that I need to run
pk2 twice. I will do some more investigations.
I believe that you can get Ubuntu Breezy 64-bit to work with pk2-1.36
and piklab.
Regards,
Xiaofan
Running log:
####@####.#### sudo ./pyk --extract 12F675.hex
Password:
Found PICkit 2b Firmware 1.10.0
PICkit 2b Firmware 1.10.0
12F675 Revision 3
Extracting |================================================>|1156/1156 (100%)
mcuee@ubuntu504:~/Desktop/build/xwisp2/xwisp2182$ sudo pk2 --verify
Wisp628_110a.hex
PK2 version 1.36 - 2006/03/17
pk2 --verify Wisp628_110a.hex
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '002' on USB bus 002, devnum 97
Fatal error> Claim failed-- the USB PICkit2 is in use by another driver.
Do a `dmesg` to see which kernel driver has claimed it--
You may need to `rmmod hid` or patch your kernel's hid driver.
mcuee@ubuntu504:~/Desktop/build/xwisp2/xwisp2182$ sudo pk2 --verify
Wisp628_110a.hex
PK2 version 1.36 - 2006/03/17
pk2 --verify Wisp628_110a.hex
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '002' on USB bus 002, devnum 97
Communication established. PICkit2 firmware version is 1.10.0
Device ID 0x1064
PIC16F628A Rev 4 found
Comparing 1024 words program
Comparing 128 bytes eeprom
Program errors 0
EEPROM errors 0
osccal ok: 0x1d03
config word ok: 0x3f42
mcuee@ubuntu504:~/Desktop/build/xwisp2/xwisp2182$ sudo piklab-prog -p
pickit2 -d 16F628A -c verify Wisp628_110a.hex
libusb: using bulk mode
Connecting PICkit 2 on USB Port with device 16F628A...
send command: "c\00\02\03\04\05\06\08\18\0A\09\0B\FF\FF\FF\FF"
send command: "V0"
send command: "v"
PICkit2 firmware version is 01.10.00
Set target self powered: false
send command: "V1"
send command: "V\04"
Connected
send command: "P"
send command: "CI\06\00"
send command: "R"
send command: "p"
Read id: 16F628A (rev. 4)
Vdd (0 V) is too low for programming
Minimum required is 2 V.
Verifying...
Verify memory: Configuration Bits
send command: "P"
send command: "CI\07\00"
send command: "R"
send command: "p"
Verify memory: User IDs
send command: "P"
send command: "C"
send command: "R"
send command: "p"
Verify memory: Code memory
send command: "P"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "R"
send command: "p"
Verify memory: Data EEPROM
send command: "P"
send command: "r"
send command: "r"
send command: "p"
Verifying successful
send command: "V0"