MPC5748G USB device

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

MPC5748G USB device

1,468 Views
sidi_namou1996
Contributor I

Hi,
I am trying to implement USB device Mass Storage using MPC5748G USBOTG module.

Currently I am using MPC5748GEVBUG.
So I ported the freescale STACK USB Device to this MCU since there was not a similar example on the SDK.

In fact, I did some changes on the eval board, I changed the 1Kohms resistor(OTG R37), to a resistor of 20Kohms, Because it was mentionned on the datasheet of USB83340.(I might be mistaken)

So I developped the bare metal layer, based on the reference manual of mpc5748g, but till now I received the setup packet on the queue head that I declared, however I did not received an interrupt for the setup packet even if it was allowed.(in the USB interrupt register bit 0 is set, and IOS bit is set to 1 in the queue head configuration of endpoint 0 Out)

Thanks!

0 Kudos
Reply
1 Reply

1,443 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, as far as I know, there are just two SDK examples for USB module called "usb_msd_fatfs_mpc5748g" and "usb_cdc_lwip_mpc5748g".
If you need any other functionality, you will have to implement it on your own.
I am sorry for any inconvenience.

regarding interrupt; if you have interrupt enabled in module (USBINTR[UE] bit set, check UNOTGNC_CR[CORE_IE] too, I guess) and you got USBSTS[UI] flag set, then interrupt should be called.
Assuming INTC is properly initialized and external interrupt enabled, you can further check if the interrupt routine is assigned well in vector table and interrupt priority set in respective INTC_PSRn register.

BR, Petr

0 Kudos
Reply