USBFS using endpoint 1 as host

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

USBFS using endpoint 1 as host

984 Views
baltech
Contributor II

Hi,

I am trying to use the USBFS on my K65 as a Host and communication over endpoint 0 looks good.

But I have no success on transmitting or receiving data over endpoint 1.

I saw this line in de reference manual:

" When HOST_MODE is enabled, only endpoint zero is used. All
other endpoints should be disabled by software.
"

Do I understand this correct? It is NOT possible to use endpoint 1 in host mode?

So I cannot connect with devices sending IN transactions on endpoint 1?

Isnt this very limiting of the USB peripherial?

Thanks!

Labels (2)
0 Kudos
Reply
2 Replies

840 Views
mjbcswitzerland
Specialist V

Hi

FS USB host interface uses only Endpoint 0. This is not a restriction since it can still communicate with any device endpoint - it simply does it over the controller's endpoint 0 hardware because the host has a different endpoint concept to the device, where the endpoint is simply a parameter and not a physical address.

Run the uTasker Open Source Kinetis project in Visual Studio with its FS Host stack in operation and it will emulate the USB host controller so that also the internal working details of the controller can be monitored and understood.

Regards

Mark

http://www.utasker.com/kinetis/TWR-K65F180M.html
http://www.utasker.com/kinetis/FRDM-K66F.html

840 Views
baltech
Contributor II

Ah ok, thank you!

Using enpoint 0 and setting only the token to poll the IN data packet to the desired endpoint seems to work!

0 Kudos
Reply