gnupic: Re: [gnupic] pk2 v2.00 beta
Subject:
Re: [gnupic] pk2 v2.00 beta
From:
"Xiaofan Chen" ####@####.####
Date:
28 Jun 2006 12:36:53 +0100
Message-Id: <a276da400606280436h32680f57s4d85a44181368ef1@mail.gmail.com>
Hi Jeff,
Here are some results with beta 1 code. It seems to me that pk2 is
working fine but there are some issues with -config for the 18F1320.
Regards,
Xiaofan
1) -config for 18F1320: problems with user id and config word
####@####.#### ./pk2 -device=18F1320 -config
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -device=18F1320 -config
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '003' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0
Using PIC18F1320
User ID: 0xf907 0x7b22 0x7000 0x0000
Configuration data: 0xde00 0x0500 0xc303 0x4003 0x0000 0x0670 0x0000
2) I am not so sure if you want to check the user provided
"-device=xxxx". Maybe it is a good idea to check that.
####@####.#### ./pk2 -device
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -device
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '003' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0
Device ID 0x07c0
Ambiguous device ID 0x07c0 belongs to more than one device:
16F628
18F1320
Fatal error> Use -device=devname option
####@####.#### ./pk2 -device=18F1320
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -device=18F1320
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '003' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0
Using PIC18F1320
####@####.#### ./pk2 -device=16F630
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -device=16F630
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '003' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0
Using PIC16F630
<It is actually an 18F1320, a warning might be good to have here>.
3) Some general test:
-help, -on, -off, -reset, -list, -idcheck, -vstat and "-osccal?"
all seem to work fine.
4) -readboot and -firmware work fine
####@####.#### ./pk2 -readboot bootloader.hex
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -readboot bootloader.hex
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '003' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0
Attempting to enter bootloader
Reopening pickit device
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '004' on USB bus 001
Communication established. PICkit2 bootloader firmware version is 2.1
PICkit2 firmware read done
Setting boot flag
Restarting PICkit2 firmware
####@####.#### ./pk2 -firmware
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -firmware
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '005' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0
####@####.#### ./pk2 -firmware pk2fw.hex
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -firmware pk2fw.hex
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '005' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0
Attempting to enter bootloader
Reopening pickit device
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '006' on USB bus 001
Communication established. PICkit2 bootloader firmware version is 2.1
PICkit2 firmware read done
Setting boot flag
Restarting PICkit2 firmware
5) -updatefw seems to work fine but there is an error message after
the firmware updating.
####@####.#### ./pk2 -updatefw
PK2V011000_noboot.hex
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -updatefw PK2V011000_noboot.hex
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '007' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0
Attempting to enter bootloader
Reopening pickit device
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '008' on USB bus 001
Communication established. PICkit2 bootloader firmware version is 2.1
Erasing PICkit2 firmware
Firmware erase complete
Writing PICkit2 firmware
Writing block 767
Verifying firmware
Reading block 767
Restarting PICkit2 firmware
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Fatal error> Could not find PICkit2 programmer--
you might try lsusb to see if it's actually there.
####@####.#### ./pk2 -on
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -on
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '009' on USB bus 001
Communication established. PICkit2 firmware version is 1.10.0
####@####.#### ./pk2 -updatefw PK2V012000.hex
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -updatefw PK2V012000.hex
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '009' on USB bus 001
Communication established. PICkit2 firmware version is 1.10.0
Attempting to enter bootloader
Reopening pickit device
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '010' on USB bus 001
Communication established. PICkit2 bootloader firmware version is 2.1
Erasing PICkit2 firmware
Firmware erase complete
Writing PICkit2 firmware
Writing block 767
Verifying firmware
Reading block 767
Restarting PICkit2 firmware
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Fatal error> Could not find PICkit2 programmer--
you might try lsusb to see if it's actually there.
####@####.#### ./pk2 -on
PK2 version 2.00 beta 1 - 2006/06/24
./pk2 -on
Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
Found USB PICkit as device '011' on USB bus 001
Communication established. PICkit2 firmware version is 1.20.0