AnsweredAssumed Answered

Having trouble with Keyboard Demo application with fsl_usb_device_hid_class on FRDM-K22F

Question asked by ken.sloat on Aug 29, 2015
Latest reply on Aug 31, 2015 by ken.sloat

Hello,

 

I am using a FRDM-K22F board and attempting to get the HID keyboard demo that is an option when you add the processor expert fsl_usb_device_hid_class component in KDS. After programming the board, and plugging the USB port (the one that connects directly to the K22) into my computer, I get the following on my Linux machine:

 

[30253.038480] usb 2-3.1: new full-speed USB device number 107 using ehci-pci

[30253.126568] usb 2-3.1: device descriptor read/64, error 18

[30253.318734] usb 2-3.1: device descriptor read/64, error 18

[30253.510859] usb 2-3.1: new full-speed USB device number 108 using ehci-pci

[30253.598992] usb 2-3.1: device descriptor read/64, error 18

[30253.791124] usb 2-3.1: device descriptor read/64, error 18

[30253.983162] usb 2-3.1: new full-speed USB device number 109 using ehci-pci

[30254.003903] usb 2-3.1: device descriptor read/8, error -61

[30254.124121] usb 2-3.1: device descriptor read/8, error -61

[30254.315496] usb 2-3.1: new full-speed USB device number 110 using ehci-pci

[30254.336286] usb 2-3.1: device descriptor read/8, error -61

[30254.456352] usb 2-3.1: device descriptor read/8, error -61

[30254.559816] usb 2-3-port1: unable to enumerate USB device

 

This happens regardless of whether I leave the debug USB port connected or not. I know that this can work, because if I import the FreeRTOS USB HID Keyboard project from the SDK folder, build it and program it, my computer sees a keyboard device and the board starts sending keystrokes to my computer.

 

Just not understanding why I am getting this problem. If I run the application in debug mode and set a breakpoint in the hid1_application_callback function, it will break there when I plug/unplug the USB cable, but it's always the same "event_type", "USB_DEV_EVENT_BUS_RESET."

 

Here our some shots of my configurations in processor expert for reference:

 

 

 

Outcomes