USB PIC18F compendium to begin

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
cj_tomekk
Posts: 12
Joined: 20 Apr 2009 09:56

USB PIC18F compendium to begin

#1 Post by cj_tomekk » 20 Apr 2009 10:08

Hello,
I'm building my first USB device on 18F2550. Firstly I've tried the example from manual and... **** happens :roll:

Main problems are:
1.Unknown USB device on Windows occures mostly
2.If it goes ok and I see the device, when trying to talk to it I get bluescreens sometimes on microchip.sys or usbd.sys
3.No communication is made (bytes send and recieved using echo PIC code)
4.With MCHPFSUSB and demo app in Example Applications\Borland_C\Example 02 - Run-time Linking i get an error 31
5.I've tried adding LEDs on port B to see what happens inside and code usually stops in place of HID_Read and stay there for a minute or so. While using example app mentioned in point 4, swithing option 3 and 0 for instance a LED change cycle occures.
6.What should I be aware of in case of configuring PIC for USB?
7.How to set descriptor to use bulk ransfers (as fast as possible)? I've seen people have problems with 64k limit...

Please share your experience about the topic

Post Reply

Return to “mikroC PRO for PIC General”