How to use the USB port on MPC5748G?

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

How to use the USB port on MPC5748G?

Jump to solution
381 Views
H-chips
Contributor I

Dear community members:

    I used ENET1 on MPC5748G, and used FreeRTOS, and called the socket API to send and receive data. At this time, I also wanted to use USB interface as another way of communication besides the network cable, but after I added the USB module, The Network Interfaces of the tcpip module used by ENET1 have changed from the original tcpip module to usb. Does this mean that the tcpip module of ENET1 cannot be used with the Host CDC (TCPIP) mode of USB? If not, please kindly give me a solution. How do you use USB Device CDC (UART) on MPC5748G if you really can't use both? This approach doesn't seem to see the sample program.

1.png

 

2.png

 

3.png

 

4.png

 

5.png

 

MPC5748G-GW-RDB 

0 Kudos
Reply
1 Solution
275 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

If you will program the USB by yourself, there should be no problem with this.

Regards,

Lukas

View solution in original post

0 Kudos
Reply
6 Replies
339 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @H-chips 

I can see that USB requires either fatfs or tcpip component to work. It correspond to this picture:

lukaszadrapa_0-1729871310365.png

If tcpip with ENET is already used, it can't be obviously used for the USB at the same time (or vice versa, it doesn't matter). 

One solution I can see - use second core and second instance of SDK to have two independent tcpip components - one for USB, one for ENET.

Regards,

Lukas

 

0 Kudos
Reply
308 Views
H-chips
Contributor I
Hi Lukas

Thank you very much for your answer, but I still have a question. If I do not use tcpip or fatfs, can the chip use pure USB protocol to communicate with the Host as a Device? Is it possible to use USB and ENET at the same time?

Regards,

H-chips
0 Kudos
Reply
286 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @H-chips 

The stack supports this:

lukaszadrapa_0-1730184130289.png

 And the configurator strongly requires fatfs or tcpip:

lukaszadrapa_1-1730184173686.png

Regards,

Lukas

 

0 Kudos
Reply
284 Views
H-chips
Contributor I
Thank you very much for your answer. So now I will use pure USB protocol on the board of MPC5748G chip as a Device to communicate with the host, and at the same time use TCPIP ENET1 to communicate. Since the configurator is not suitable, I will not use the Configurator and write the initialization code by myself. Even if the board uses only one core, it's still feasible, right?
0 Kudos
Reply
276 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

If you will program the USB by yourself, there should be no problem with this.

Regards,

Lukas

0 Kudos
Reply
260 Views
H-chips
Contributor I
Thanks for your kindly anwser!
0 Kudos
Reply