Sonsivri

Electronics => Pic C Languages => Topic started by: powerpz on January 27, 2010, 11:26:45 11:26



Title: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: powerpz on January 27, 2010, 11:26:45 11:26
I try to implement USB Stack in my project with PIC18f67j50. When dev board is attached to PC , on windows display message "Unknown driver" and I cannot succeed to update it with INF file provided by Microchip for CDC - RS232 emulation (my project is used USB stack like CDC - COM port emulator). I try also with CDC example project in MCHPFSUSB folder, but the result was the same ! How can I debug it?


Title: Re: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: sputnik on January 29, 2010, 02:07:31 02:07
Are you using the code on your own board or do you have the Microchip board or another dev board?


Title: Re: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: Alienbeing on January 29, 2010, 04:59:31 04:59
Are you using this file mchpcdc.inf for installing the driver? I had problems before because I was using the wrong .inf file.

Alienbeing


Title: Re: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: powerpz on January 29, 2010, 08:31:37 20:31
I am using my own custom board (www.olimex.com). Do I need to check other settings on stack ? -  I switch to PIC87j60 CPU (comment pic18f4550, but I'm using PIC16f67j50). For windows driver I try with "mchpcdc.inf" which is providing by Microchip (don't change anything) it is placed at "C:\MCHPFSUSB\fw\Cdc\inf\win2k_winxp_winvista32"


Title: Re: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: j0k3r on January 30, 2010, 10:44:51 10:44
If you use "C:\Microchip Solutions\USB Device - CDC - Basic Demo\CDC - Basic Demo - Firmware" them the inf file on "C:\Microchip Solutions\USB Device - CDC - Basic Demo\inf" work´s fine.

But in your case, check de descriptors on usb_descriptors.c if they match your *.inf file.



Title: Re: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: sputnik on January 31, 2010, 12:55:35 00:55
Are you getting "Unknown Device" or "Unknown Driver" ?


Title: Re: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: powerpz on January 31, 2010, 03:52:11 15:52
"Unknown Device", and when I'm trying to upgrade driver, setting path to *.INF file, windows thinking a lot (may be 3 min ) and after that say that cannot install this driver


Title: Re: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: sputnik on January 31, 2010, 04:36:25 16:36
OK, when I first started with Microchip USB, this was always a hardware issue.

Make sure you have the VUSB capacitor in place and it is of sufficient value, .47uf is what I use

Make sure you have the correct resonator/crystal for the source, the Microchip examples requires 20Mhz.

Make sure you have decoupling caps on power close to the PIC.

I havent had that issue again since I ensure this is all there and correct. The VUSB cap is very important.


Title: Re: PIC18 USB Stack MCHPFSUSB 1.2 problem
Post by: ALLPIC on February 20, 2010, 02:05:50 14:05
and I will add one thing that 22pf to 20mhz crystal. I gone through that. if you need schematics I have with pic18f2550 and code also that is with CCS that work really good. and also with microchip new stack I can attach both of that