cancel
Showing results for 
Search instead for 
Did you mean: 

USB OVER ETHERNET

Spinoza53
Associate

Hello STM Community,

I'm working on an STM32H7 board where I've successfully implemented an Ethernet connection using lwIP. Now, I'm exploring an alternative approach to simplify my design by replacing the dedicated Ethernet port with a USB-based networking solution. Essentially, I want the board to operate in USB device mode, emulating a network interface via protocols like RNDIS or CDC ECM. This would allow the board to connect to a host as a network adapter, potentially reducing hardware complexity while maintaining network functionality. I'm looking for guidance on configuring USB in STM32CubeIDE for this purpose, adapting any necessary middleware or low-level drivers, and integrating the TCP/IP stack to support USB networking. Has anyone tackled a similar project or have insights, resources, or example projects that could point me in the right direction? Any help is much appreciated!

3 REPLIES 3
Pavel A.
Evangelist III

ETH and USB on STM32 traditionally are headaches. So you'll get both.

Also, for the network device function, besides TCP/IP stack  you'd likely want a server: http or (and) other. So, a sort of a filesystem to serve things. For https you will need the crypto. Headache again. So much for 'reducing complexity'.

 

Do you have any example which successfully implemented before? I have same question with author about ethernet over usb. I am wondering, nobody do it before.