Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 16, 2024, 03:34:02 15:34


Login with username, password and session length


Pages: [1]
Print
Author Topic: PIC18 USB Stack MCHPFSUSB 1.2 problem  (Read 9995 times)
0 Members and 1 Guest are viewing this topic.
powerpz
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 7
-Receive: 0


« 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?
Logged
sputnik
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 9
-Receive: 39


« Reply #1 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?
Logged
Alienbeing
Active Member
***
Offline Offline

Posts: 164

Thank You
-Given: 68
-Receive: 45


« Reply #2 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
Logged
powerpz
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 7
-Receive: 0


« Reply #3 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"
Logged
j0k3r
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 43
-Receive: 18


« Reply #4 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.

Logged
sputnik
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 9
-Receive: 39


« Reply #5 on: January 31, 2010, 12:55:35 00:55 »

Are you getting "Unknown Device" or "Unknown Driver" ?
Logged
powerpz
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 7
-Receive: 0


« Reply #6 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
Logged
sputnik
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 9
-Receive: 39


« Reply #7 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.
Logged
ALLPIC
Active Member
***
Offline Offline

Posts: 114

Thank You
-Given: 64
-Receive: 72


« Reply #8 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
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC