USB1 (USBHS) port does not work in custom design

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB1 (USBHS) port does not work in custom design

910 Views
michaelstapelbe
Contributor II

Hey,

I recently got my first Kinetis microcontroller (MK66FX1M0VLQ18) PCB design from the fab, soldered it, and it largely works — the serial port works fine, the USBFS port works fine, all LEDs work fine.

One thing does not work, though: the USB1 (USBHS) port. When plugging in a known-working cable, I don’t see any reaction on my Linux computer. The firmware I’m using is the frdmk66f_usb_examples_dev_composite_hid_mouse_hid_keyboard_bm SDK example, which I have modified to work with the clocks I’m using. The image works on the Teensy 3.6, which uses the same MCU and the same 16 MHz crystal. Hence, I’m reasonably certain the firmware is okay, and it’s most likely a hardware issue.

When reviewing my schematic, I already found one mistake: I accidentally left USB1_VSS floating. Could that explain the issue?

I also left USB1_VBUS unconnected, and I’m not sure whether that’s correct or not. I can’t find any hint in the datasheet about whether it needs to be connected when using the USBHS port as a device, i.e. to connect my MCU to a computer. The datasheet only talks about device charging modes. Should USB1_VBUS be connected in device mode, too?

Also, what about VREG_IN0 and VREG_IN1? Can they be left floating? I read in this forum that VREG_OUT should be connected to +3V3 when not using the internal regulator, so I did that.

I’d be thankful for any tips as to how to wire up the port in a known-working state. Perhaps someone has the FRDM-K66F schematic so that I could have a look at how they’re wiring up the ports?

Thanks a lot in advance!

Here’s my schematic:

2018-01-17-sch-export.png

Tags (1)
0 Kudos
2 Replies

634 Views
michaelstapelbe
Contributor II

Turns out that yes, USB1_VBUS needs to be connected. You can find my known-working design at GitHub - kinx-project/mk66f-hw: Hardware design files for the kinX keyboard controller 

634 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Michael,

You can download FRDM-K66F sch from https://www.nxp.com/downloads/en/schematics/FRDM-K66F-SCH.pdf

Regards

Jing