USB Device Not Recognized

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
mb02155
Posts: 14
Joined: Thu Sep 02, 2010 11:49 pm

USB Device Not Recognized

Post by mb02155 »

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

medelec35
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

Post by medelec35 »

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.
Martin

mb02155
Posts: 14
Joined: Thu Sep 02, 2010 11:49 pm

Re: USB Device Not Recognized

Post by mb02155 »

Thanks for the reply. My code is attached....
Attachments
mb-usb-serial.fcf
(5.5 KiB) Downloaded 267 times

Gypo
Posts: 52
Joined: Thu Apr 29, 2010 11:12 am
Has thanked: 5 times
Been thanked: 3 times

Re: USB Device Not Recognized

Post by Gypo »

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
Changed Project.zip
Your changed program
(2.64 KiB) Downloaded 291 times

Regards
The only real simulation isn't ...
Gypo

mb02155
Posts: 14
Joined: Thu Sep 02, 2010 11:49 pm

Re: USB Device Not Recognized

Post by mb02155 »

Gypo,

That worked perfectly! Thank you very much!!

Marty

Gypo
Posts: 52
Joined: Thu Apr 29, 2010 11:12 am
Has thanked: 5 times
Been thanked: 3 times

Re: USB Device Not Recognized

Post by Gypo »

Marty, Great,

It's good to know I can help someone else for a change.

:P
The only real simulation isn't ...
Gypo

Post Reply