Have you tried to press the button and then plug PICKit 2 into the
USB port? The red LED should blink and PICKit 2 will enter
bootloader mode. Download the PICkit 2 firmware V2.32 and
then use pk2cmd to update the firmware. You can use
lsusb to confirm this.
You can also try this thread (for Windows).
http://www.microchip.com/forums/tm.aspx?m=415391
If this does not help, then the PICkit 2 bootloader is somehow
gone. In that case, you need another programmer.
> I haven't got anymore the programmer I used first .
>
> Searching on the net, I found ART2003 programmer who is said to be
> able to do LVP and specifically for 18F2550 pics . It is a simple
> programmer which is plugged in the parallel port with no external
> power supply .
>
> Do you think it is possible to burn the Bootloader or/and OS in LVP ?
> Thanks for your help and any advice on the ART2003 ,
That won't work. The PIC18F2550 on board PICKit 2 is configured to
disable LVP. You can confirm that by looking at the firmware source
code (bootmain.c).
--
Xiaofan http://mcuee.blogspot.com
Sorry, in that case, you have to get another programmer to reload
the firmware.
--
Xiaofan http://mcuee.blogspot.com
Isn't the red light blinking a function of the bootloader code? Seems to me it
may be a USB problem. Since lsusb doesn't see the PICkit2, it may be cable or
power. Try it on another machine if you have access to one. Also try a
shorter cable and/or a different USB port.
As a last resort, try it on a Windows machine.
Jeff
You might be right. Your recommendation is worth trying.
To confirm it is a USB problem, the OP can try the following.
Troubleshooting step 1
1) Plug in PICKit 2
2) print out the last few lines of "demsg" by using "dmesg | tail"
Troubleshooting step 2
1) Plug in the PICKit 2 with the button pressed
2) print out the last few lines of "demsg" by using "dmesg | tail"
Normal response in both case should be like this.
usb 2-7: USB disconnect, address 4
usb 2-7: new full speed USB device using ohci_hcd and address 6
usb 2-7: configuration #1 chosen from 2 choices
--
Xiaofan http://mcuee.blogspot.com
Jeff
Glad that you get it working.
--
Xiaofan http://mcuee.blogspot.com