I am trying to get a simple USB environment up and running with a PIC18F4550 and the Olimex PIC-USB-4550 (http://www.olimex.com/dev/pic-usb-4550.html). My flowchart is as follows:
1) USBSerial(0) Initialize_Serial
2) while (1)
3) USBSerial(0) ReadByte
4) USBSerial(0) SendByte
5) end of loop
When I plug the Olimex board into the USB port on my computer I get the error "USB Device Not Recognized". I am never prompted for a driver.
What am I doing wrong?
Thanks,
Marty
USB Device Not Recognized
Moderator: Benj
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: USB Device Not Recognized
Hello mb02155
I would guess it's down to configuration settings? Even if you have not got the drivers installed, the USB has to be correctly configured within your flowchart, before the drivers are asked to be installed.
Take a look here:
http://www.matrixmultimedia.com/mmforum ... =29&t=7675
If you don't mind posing your flowchart, that can be checked for you.
If you want to keep your flowchart private, you could save as a different name, an delete a load of icons, then post it.
I would guess it's down to configuration settings? Even if you have not got the drivers installed, the USB has to be correctly configured within your flowchart, before the drivers are asked to be installed.
Take a look here:
http://www.matrixmultimedia.com/mmforum ... =29&t=7675
If you don't mind posing your flowchart, that can be checked for you.
If you want to keep your flowchart private, you could save as a different name, an delete a load of icons, then post it.
Martin
Re: USB Device Not Recognized
Thanks for the reply. My code is attached....
- Attachments
-
- mb-usb-serial.fcf
- (5.5 KiB) Downloaded 267 times
Re: USB Device Not Recognized
Marty
I have changed a few things and this one works
I have used a 4550 with a 20Mhz crystal, if you use a different crystal you will have to change things
Things to look for is;
(View/Project Options) the clock speed I have put it up to 48000000
(Chip/Configure/Switch To Expert Config Screen) I may have made changes there too, I can't remember so check.
I have added a check to see it the USB port is ready to use (error free) if not jumps past all code
As the USB seems to get 0xFF in when there is no activity I have added a check to see if the input is garbage and if so jumps past your code
I have attached the changed program and the driver file it will ask for
I hope this helps
Regards
I have changed a few things and this one works
I have used a 4550 with a 20Mhz crystal, if you use a different crystal you will have to change things
Things to look for is;
(View/Project Options) the clock speed I have put it up to 48000000
(Chip/Configure/Switch To Expert Config Screen) I may have made changes there too, I can't remember so check.
I have added a check to see it the USB port is ready to use (error free) if not jumps past all code
As the USB seems to get 0xFF in when there is no activity I have added a check to see if the input is garbage and if so jumps past your code
I have attached the changed program and the driver file it will ask for
I hope this helps
Regards
The only real simulation isn't ...
Gypo
Gypo