pic18f4455 [4550] USB no go

Moderator: Benj

alanwms
Posts: 48
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Has thanked: 3 times
Been thanked: 17 times
Contact:

pic18f4455 [4550] USB no go

Postby alanwms » Mon Jul 31, 2017 10:22 pm

Been looking around the forum and it seems that USB initialize creates a lockup - I have the same issue. Was there a fix for this? I'm using FC5. When I diable the USB init component, the program runs fine.

Thanks

User avatar
Benj
Matrix Staff
Posts: 14151
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4080 times
Contact:

Re: pic18f4455 [4550] USB no go

Postby Benj » Tue Aug 01, 2017 9:47 am

Hello,

The USB initialise will wait until the PC sees the USB device and installs drivers for it. So either you have not installed the USB driver or the device is running at a incompatible speed for USB which means you should get an unrecognised device.

Please can you check your device manager and post your Flowcode project as well as your oscillator specifics so we can get your project setup correctly.

USB is known to work well in v5 and v6 and only recently has had problems in v7 which we have now tackled. So we should be able to get you up and running.

alanwms
Posts: 48
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Has thanked: 3 times
Been thanked: 17 times
Contact:

Re: pic18f4455 [4550] USB no go

Postby alanwms » Tue Aug 01, 2017 2:59 pm

Thanks Ben -

Most likely, I have driver install issues - I did right click on the generated driver to install it. After some messing around turning off signature validation, I succeeded the install. However, when I plug in the USB cable, I don;t get any action in the control panel section showing USB devices.

alanwms
Posts: 48
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Has thanked: 3 times
Been thanked: 17 times
Contact:

Re: pic18f4455 [4550] USB no go

Postby alanwms » Tue Aug 01, 2017 3:00 pm

I'm running the osc at 8mhz internal - I know the frequency is correct, because my LED can flash at the interval I expect for a known delay. Do I have to do something special when using the internal osc?

kersing
Valued Contributor
Valued Contributor
Posts: 1873
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 530 times
Been thanked: 1040 times
Contact:

Re: pic18f4455 [4550] USB no go

Postby kersing » Tue Aug 01, 2017 3:10 pm

USB requires a frequency of 48MHz. Check the data sheet for possible settings of the oscillator.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis