Help With USBFS and External Clock

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
ErOs_662341
Level 1
Level 1

 Hi!

   

I have a custom board that uses USB and an external oscillator and I'm trying to get it working with the USB clock set up. When I debug it I see that it gets stuck in the CyClockStartupError function. I know the oscillator works because I scoped it and saw a good signal and I tried a blank project that just had the clock enabled and it initalized fine. From that I think it must be the way I'm adding the USB clock. Attached is my project. Any suggestion will be appreciated!

   

Thanks!

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Your project still has a 24MHz crystal enabled. When it is not there the system will halt. Remove the crystal in the clock definitions and place a digital input pin (unsynced!!), connect it to a short wire and name that signal. Select this signal as clock input in clock view.

   

 

   

Bob

0 Likes
ErOs_662341
Level 1
Level 1

Sorry, I should have clarified. The external XTAL is 24MHz

0 Likes
lock attach
Attachments are accessible only for community members.

I turned USBFS_Bulk_Wraparound01 example to your project.
I hope this helps.
Maybe your problem  will interest for  tech support.

0 Likes