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.
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?
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?
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?
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.
Retrieving data ...