unseenlaser / mphidflash

Automatically exported from code.google.com/p/mphidflash
GNU General Public License v3.0
0 stars 0 forks source link

Getting "mphidflash Error: USB read error" when I try to upload program to 18f2455 chip #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Loading a boot loader with USB access on it using MPLABX & Pickit2. I used 
generic DEMO one from Microchip to compile with a 18f2455 chip set.

2. Placed it in a basic circuit with program & reset capabilities on a 20Mhz 
crystal. Nothing special.

3. Make sure I am root and run the program as rot and load a basic test2.hex
Which only consist of a blinking LED.
./mphidflash -v 2233 -p 7001 -w ../piccode/test2.hex

What is the expected output? What do you see instead?
It does not even get started uploading the test hex file to the pic I get.
 USB HID device found
./mphidflash Error: USB read error

What version of the product are you using? On what operating system?
mphidflash 1.3 : Debian 6.0 stable and Linux Kernel 3.0.8

Please provide any additional information below.
lsusb 
Bus 001 Device 008: ID 2233:7001 RadioShack Corporation 

dmesg
[21964.752426] usb 1-1.4: new full speed USB device number 10 using ehci_hcd
[21964.847784] usb 1-1.4: New USB device found, idVendor=2233, idProduct=7001
[21964.847793] usb 1-1.4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[21964.847800] usb 1-1.4: Product: Generic HID
[21964.847805] usb 1-1.4: Manufacturer: Test
[21964.850760] generic-usb 0003:2233:7001.0005: hiddev0,hidraw3: USB HID v1.11 
Device [Test Generic HID] on usb-0000:00:13.5-1.4/input0

Original issue reported on code.google.com by facto...@gmail.com on 12 Nov 2011 at 10:30

GoogleCodeExporter commented 9 years ago
Prerequisites include:
1. The PIC must already be programmed with a compatible Bootloader.
2. The Bootloader must be running ready to receive the update, often there is a 
switch to choose between Bootloader & application.

As Vendor Id / Product Id are not the defaults for the Microchip Bootloader it 
is not clear that a compatible Bootloader is installed in the PIC.

Original comment by tonyna...@gmail.com on 1 Jul 2014 at 5:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have same problem.
dmesg:
[97580.003559] usb 2-1: USB disconnect, device number 15
[97581.065336] usb 2-1: new full-speed USB device number 16 using xhci_hcd
[97581.082675] usb 2-1: New USB device found, idVendor=04d8, idProduct=003c
[97581.082698] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[97581.082715] usb 2-1: Product: USB HID Bootloader
[97581.082730] usb 2-1: Manufacturer: Microchip Technology Inc.
[97581.087580] hid-generic 0003:04D8:003C.000B: hiddev0,hidraw0: USB HID v1.11 
Device [Microchip Technology Inc. USB HID Bootloader] on 
usb-0000:00:14.0-1/input0

Bootloader from AN1388 example
running in firmware mode loop (checked with mplabx and icd3)

linux: ubuntu trusty.

Original comment by kszmu...@gmail.com on 10 Jul 2015 at 12:07

GoogleCodeExporter commented 9 years ago
attached wireshark file...

Original comment by kszmu...@gmail.com on 10 Jul 2015 at 12:18

Attachments:

GoogleCodeExporter commented 9 years ago
So... it looks like an1388 bootloader is not compatible... :(

Original comment by kszmu...@gmail.com on 10 Jul 2015 at 12:52