FRDM-k66f usb CDC host

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

FRDM-k66f usb CDC host

864 Views
chrisb215
Contributor I

Hi, i have started work on a project that requires the use of the USB host CDC. I am trying to make the example found in the SDK work with my device.

I am using the SDK 2.3.0 with MCUXpresso IDE.

The example i am trying to use is the host_cdc_bm.

When debugging, plugging my device on the K66F board, i see that it is detected:

The console prints:

device cdc attached:
pid=0x2018vid=0x3eb address=1
cdc device attached

But when i try to send data to it, i get kStatus_USB_TransferFailed in the USB_HostCdcDataInCallback. From what i can understand so far this is cause by a timeout. But i can't figure out why this is happening.

Usb is kind of new to me, any help in figuring this issue would be greatly appreciated.

Thank you

Tags (1)
0 Kudos
2 Replies

702 Views
chrisb215
Contributor I

Hello Daniel

Here is what i see in the console:

pastedImage_1.png

Whatever i type in the console is not echoed back.

i tried to follow the code to see where it breaks, and what i found is that i get a kStatus_USB_TransferFailed

in the USB_HostCdcDataOutCallback and USB_HostCdcDataInCallback

From what i understand of the code, this seems to indicate that no byte where transfered, but i am not sure why.

Any help would be greatly appreciated!

0 Kudos

702 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Christian:

Have you solved this issue? I just did a quick test with this demo.  Frdm-k66 as a usb cdc host, and TWR-K65 as a usb cdc device. It works on my end. please see below picture. What's you settings?

pastedImage_1.png

Regards

Daniel

0 Kudos