USB OTG functionality support

cancel
Showing results for 
Search instead for 
Did you mean: 

USB OTG functionality support

Jump to solution
4,724 Views
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.
Labels (1)
Tags (1)
0 Kudos
1 Solution
278 Views
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.

 

View solution in original post

0 Kudos
9 Replies
278 Views
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 Kudos
278 Views
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 Kudos
279 Views
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 Kudos
278 Views
admin
Specialist II
Thanks.
0 Kudos
278 Views
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 Kudos
278 Views
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 Kudos
278 Views
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 Kudos
278 Views
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 Kudos
278 Views
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