Author Topic: K64F usb host won't build  (Read 23540 times)

Offline ChristianB

  • Newbie
  • *
  • Posts: 3
    • View Profile
K64F usb host won't build
« on: January 16, 2018, 05:02:06 PM »
Hi, i am trying to replicate what you did on your tutorial video : https://www.youtube.com/watch?v=XhISV1czIo4&feature=youtu.be

But i wan't to have the K66F as a USB host with CDC support.

i can't seem to be able to setup the config file so that the project builds.
Also, my config file seem's to be different then the one seen in the video.

I am using kinetis design studio to try to build the utasker application for the board.

Thank you.   

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: K64F usb host won't build
« Reply #1 on: January 16, 2018, 07:58:04 PM »
Hi

Please tell me if you are using the OpenSource or developer's version.
Also, are you trying to use the FS or the HS USB interface as host?

Regards

Mark

Offline ChristianB

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: K64F usb host won't build
« Reply #2 on: January 23, 2018, 05:32:15 PM »
Hello Mark,

Sorry for the late reply, i was out of town. Sorry i made a mestake in the title of this post, i am trying to use the FRDM-K66F, not the FRDM-K64F board.

I am using the open source version, since I don't think I have access to the developer one.

I am using the FRDM-K66F board, on this board, only the HS USB interface is usable (USB0 signal arent routed).

thank you

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: K64F usb host won't build
« Reply #3 on: January 23, 2018, 05:45:54 PM »
Christian

I am sorry but there is no HS USB host support in the project at the moment.

I have however used the NXP HS USB-MSD host reference as a library component to enable memory stick loading in the serial loader project and I do intend to develop the necessary HS host layer at some point, but I have no concrete date yet.
It was not that difficult to integrate the HS MSD-USB part but it did require a dedicated library to be linked (needs individual library for each processor type in the NXP code) which required 50 individual files to be able to build, so a bit of stamina to get to the end.
Possibly the same could be done with CDC but it is a challenge to understand how it actually operates and I see a lot of reports of problems with the NXP CDC too, so I'm not sure it will be worth patching in temporarily.

How urgent is the need for HS USB Host operation in your case?

Regards

Mark


Offline ChristianB

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: K64F usb host won't build
« Reply #4 on: January 23, 2018, 07:03:29 PM »
Hello Mark,
Thank you for the quick reply.
I have been working on this for a while. I am trying to communicate with a USB CDC device. The device in question is based on an ATMEGA32U4 chip and works correctly using a PC.

In the past, I managed to get it to work using a teensy 3.6 board.
I wanted to add network communication to my project, so I bought a FRDM-K66F board because it basically has the same chip on (only flash size is different I think) and has a Ethernet socket an phy on board. The only difference that i did not notice was that the USB was routed to the HSUSB instead of the FS one, so i could not use the same librarie and i would have to rely on the NXP USB libraries. But all NXP USB libraries I have used so far have not been able to talk to my USB device. The device enumerates correctly, but stops responding after the first caracter is sent to it.

After seeing you video on youtube i was hopefull i could replicate it with the K66F board and switch my project to a uTasker project.

Perhaps i could source a K64F board to test with utasker, would i be able to configer utasker as a USB CDC host in FS mode to see if i can manage to talk to my device?




Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: K64F usb host won't build
« Reply #5 on: January 23, 2018, 07:44:38 PM »
Christian

The K66 has both FS and HS USB interfaces:
- The Teensy 3.6 uses the FS one (but one could add HS with some additional components)
- The NXP FRDM-K66F board connects only the HS one connected and the FS lines cannot be used since they are unconnected on the BGA!!

As you seem to confirm, the NXP references for CDC tend not to be very stable so if these are to be used a certain amount of patching may be needed.

A FRDM-K64F will work since USB-CDC host on FS is supported in the uTasker project.

I will try to update the USB host to operate over HS USB at some point but if you can use a FRDM-K64F it would be a quick solution for FS USB-CDC host operation together with Ethernet without needing to wait for the HS Host mode to become available.

Regards

Mark