USB Pin Configuration change in MQX USB Stack.

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

USB Pin Configuration change in MQX USB Stack.

659 Views
panks
Contributor I

Hi,

I have used the MQX usb Stack for my usb application and TWRMCF54418 board for testing. In tower board schematic USBH_DP and USBH_DM pin are used for usb communication. In my board schematic i have used USBO_DP and USBO_DM pin for usb communication. Then what are the changes i have to do in MQX usb stack or which register i have to configure to change the usb pin.

Regards,

Panks

Labels (1)
0 Kudos
Reply
2 Replies

385 Views
soledad
NXP Employee
NXP Employee

Hi,

look into the file

<Freescale MQX 4.1_install_path>\mqx\source\bsp\twrmcf54418\twrmcf54418.h

on line 154, USB related board definitions start.

USBCFG_USBOTG_CONNECTOR can't be set to USBCFG_CONNECTOR_STANDARD in this bsp, as on tower there is no physical connection. but you change it here if your have custom board, where physical connection is available

line 174 and 175 assign usb modules to host/device stack. per

<Freescale MQX 4.1_install_path>\mqx\source\bsp\twrmcf54418\init_usb.c,

ehci0 is USBOTG module, ehci1 is USBHOST module.

Regards,

Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

385 Views
panks
Contributor I

Hi Soledad,

Thanks for reply,

Actually the usb connection as follow in my usb board....

USBO_VBUS_EN --->G13 (mcf54418 pin)

USBO_VBUS_OC---->H15 (mcf54418 pin)

USBO_DM---->A14 (mcf54418 pin)

USBO_DP---->B14 (mcf54418 pin)

IRQ6---->USB_OTG_VBUS( HERE USED ORed GATE IC ---- TO DETECT VBUS SIGNAL)

IRQ7 (F12)---> ( ID pin are connected here)

I have to used internal usb otg controller . I am using usb module as a device, but when i plug in usb i have get high signal at pin IRQ6 ( Vbus detect signal). but in twr IRQ6 pin are used for clock....then how to handle the IRQ6 pin event in usb stack and also ID pin event  at IRQ7.....because in twr board external usb controller used for usb otg.....

please suggest me the proper changes in usb stack as per my above usb connection.

Thanks &Regards,

Panks

0 Kudos
Reply