Hi guys, I've been playing with 18F27J53 these days (blink, serial hw), but, now, here it is: USB... Can't make it work, and I don't know if it's hardware or software related. Maybe some of you have some insights & ways to dig/debug this.
Hardware (based on jaluino bee + "green wire" fixes) - PIC18F2753, with 16MHz xtal, PLL enable for 48MHz, powered through USB and 3V3 regulator - Vusb connected to GND through 220nF and connected to Vdd (3V3) - 1µF accross Vbus and GND on microUSB connector - 100nF caps accross Vss/Vdd - Vddcore/Vcap connected to GND with 10µF caps Software: see attached file, compiles against lastest jallib (rev 2525) jal 2.4o (compiled Feb 1 2011) generating p-code 2773 tokens, 286566 chars; 6855 lines; 13 files generating PIC code pass 1 generating PIC code pass 2 writing result Code area: 6988 of 131064 used (bytes) Data area: 162 of 3664 used Software stack available: 2480 bytes Hardware stack depth 7 of 31 0 errors, 0 warnings I've performed several tests: - under windows: it says "oh! new device!", configure it, then popup a buble claiming there's a problem. Hardware manager repots device is there, but not recognized, not handled by any driver. I don't know if it's just a matter of driver, or if something is wrong regarding USB bus. I read somewhere someone had troubles under Linux, but worked under Windows. - under Linux, plugging the board gives the following in /var/log/syslog Mar 27 15:39:50 pixie kernel: [1042979.536099] usb 2-2: new full speed USB device using uhci_hcd and address 110 Mar 27 15:39:50 pixie kernel: [1042979.656092] usb 2-2: device descriptor read/64, error -71 Mar 27 15:39:50 pixie kernel: [1042979.880294] usb 2-2: device descriptor read/64, error -71 Mar 27 15:39:50 pixie kernel: [1042980.096148] usb 2-2: new full speed USB device using uhci_hcd and address 111 Mar 27 15:39:50 pixie kernel: [1042980.216152] usb 2-2: device descriptor read/64, error -71 Mar 27 15:39:50 pixie kernel: [1042980.441146] usb 2-2: device descriptor read/64, error -71 Mar 27 15:39:51 pixie kernel: [1042980.656175] usb 2-2: new full speed USB device using uhci_hcd and address 112 Mar 27 15:39:51 pixie kernel: [1042981.064134] usb 2-2: device not accepting address 112, error -71 Mar 27 15:39:51 pixie kernel: [1042981.176084] usb 2-2: new full speed USB device using uhci_hcd and address 113 Mar 27 15:39:52 pixie kernel: [1042981.584131] usb 2-2: device not accepting address 113, error -71 Mar 27 15:39:52 pixie kernel: [1042981.584179] hub 2-0:1.0: unable to enumerate USB device on port 2 so it tries to reach endpoint, but can't in the end, with error -71. Googling this error often reports something related to hardware problems, but I can't find where). I'm trying to enable "usbmon" in order to sniff USB packets, but I'm not even sure it'll help as it stucks really early during USB comms. Does any one try USB with this chip ? Or with 18F26J50 (same kind) ? Do you know tests I could perform to check bus before going further ? TIA Cheers, Seb -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
jaluino_bee_usb_serial.jal
Description: Binary data
