USB OTG functionality support

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

USB OTG functionality support

跳至解决方案
5,293 次查看
admin
Specialist II
I am new to freescale and want to use USB as OTG. Does MQX RTOS USB stack support USB OTG functionality? I am planniing to use MCF52259 microcontroller.
标签 (1)
标记 (1)
0 项奖励
1 解答
847 次查看
JuroV
NXP Employee
NXP Employee

I mean, that product "Freescale MQX RTOS 3.2.1" does not support runtime switch between host and device functionality. In developing phase, you have to decide whether you will use host or device.

 

If your question leads whether you could find or buy another version of USB stack, the answer is: ask EAI Inc., but for MCUs that Freescale has released MQX for, EAI Inc. doesn't have any next features; in other words Freescale's MQX does not lack any functionality or feature compared to EAI.

 

在原帖中查看解决方案

0 项奖励
9 回复数
847 次查看
JuroV
NXP Employee
NXP Employee
Nowadays, MQX supports device functionality or host functionality and it depends on which one you implement (which library you use). Dynamic swapping between host and device is not possible.
0 项奖励
847 次查看
admin
Specialist II

Do you mean to say that there is no separate driver for OTG functionality and I need to swap between Host and Device functionality at run time? Isn't it little difficult?

 

Also USB host or device stack that comes along with MOX RTOX is MQX stack or it is some other vender?

0 项奖励
848 次查看
JuroV
NXP Employee
NXP Employee

I mean, that product "Freescale MQX RTOS 3.2.1" does not support runtime switch between host and device functionality. In developing phase, you have to decide whether you will use host or device.

 

If your question leads whether you could find or buy another version of USB stack, the answer is: ask EAI Inc., but for MCUs that Freescale has released MQX for, EAI Inc. doesn't have any next features; in other words Freescale's MQX does not lack any functionality or feature compared to EAI.

 

0 项奖励
847 次查看
admin
Specialist II
Thanks.
0 项奖励
847 次查看
MQXuser
Contributor III

I would like to do the following:

 

Have an initialization task and make a desicion there (reading a hardware button) whether to use USB Device or USB Host.

Is that possible to do?

0 项奖励
847 次查看
JuroV
NXP Employee
NXP Employee
Yes, this is possible. So, once again, you cannot select device/device automatically as a consequence of OTG handshaking.
Message Edited by JuroV on 2009-09-09 10:48 AM
0 项奖励
847 次查看
JuroV
NXP Employee
NXP Employee
Or, better said: I am wrong. Now there are some conflicts between USB host / device when used in one final application, but we want to remove these conflicts to be able to use it together (although still without OTG). OTG is planned later on.
0 项奖励
847 次查看
propellerhead99
Contributor II

Ref: MQX 3.6.2 and K60 Tower

The documentation addresses USB OTG mode with automatic stack switching. Currently using usb>host>examples>

msd>msd_commands as example code which defaults to host mode when compiled. I defined the __USB_OTG__ symbol to force an OTG host and now it cannot find the necessary "otgapi.h" file.

 

Does anybody know where this file is or better where there is a good tested OTG example? 

 

0 项奖励
847 次查看
PetrL
NXP Employee
NXP Employee

HI,

 

I am sorry but JurajV is right, current MQX (3.7) does not support OTG functionality. We are working on enabling it, but cannot promise you a date when it will be done.

 

PetrL