We want to connect the devkit-mcp5748g board as an USB cdc device to a host computer.
I had a look into the USB samples available with the newest SDK (S32_SDK_BETA_2.9.0) usb_cdc_lwip and usb_msd_fatfs. These implement an USB host.
I checked the discussions in this board and found out that no sample code for the devkit-board as an USB device exists.
Since we have solid USB know-how, we thought about implementing the missing functionality on our own. Since this board and processor is new for us, we need some support:
Is it possible at all to implement an USB *device* on the devkit-mcp5748g board? The USB0OTG unit described in chapter 47.2.1 of the mpc5748g data sheet rev 7.1 seems to be connected to OpenSDA in the devkit schematics.
USBHS (USB1) described in the data sheet in chapter 47.3.1. can only operate in host mode.
Is it possible to use the USB micro connector on the board for application purposes if JTAG is used for debugging? Our application actually just needs a serial port over USB, the less we have to implement the better and it seems as if OpenSDA already communicates as a device.
Hi Michael Binz
Answering your questions:
Is it possible at all to implement a USB *device* on the devkit-mcp5748g board?
It is possible, but you have to look for the ULPIO0 pins in the schematic, those pins represent the USBOTG from the Reference Manual, the problem here is that this USB is not enabled in the board, so you would have to make a rework.
Is it possible to use the USB micro connector on the board for application purposes if JTAG is used for debugging?
Yes, the OpenSDA represents a bridge of a USB device CDC and UART communication, so yes, you can use this UART to communicate with a PC.
Hello Mr jorge_a_vazquez,
I'm trying to realise the USB device driver but i'm facing an issue. In the reference manual, at multiple locations, there is /are a reference to a register called
but i dont find it/them in the document. It seems like this/these register is used in other NXP mcu using the USB stack. Please see bellow screenshots.
I'm working with this document : "MPC5748G Reference Manual, Rev. 7.1, 01/2019"
Could you help with this topic please?
Thanks in advance.