USBFS using endpoint 1 as host

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USBFS using endpoint 1 as host

665 次查看
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!

标签 (2)
0 项奖励
2 回复数

521 次查看
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

521 次查看
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 项奖励