STM32 CDC ECM HOST Lib
Hello,
I'm working on an adapter USB to Ethernet and it is working only as a DEVICE. Now I would like to do the same but I want my STM to work as HOST.
Is ST providing the same code stm32-mw-usb-device but for host?
Thanks,
G.
Hello,
I'm working on an adapter USB to Ethernet and it is working only as a DEVICE. Now I would like to do the same but I want my STM to work as HOST.
Is ST providing the same code stm32-mw-usb-device but for host?
Thanks,
G.
Hello,
From what you describe, your current setup works fine with Linux as the USB HOST and STM32 as the DEVICE using CDC ECM, allowing Linux and Windows to communicate over Ethernet. However, when you switch roles—making STM32 the HOST and Linux the DEVICE, and try to use the same ECM code, Windows cannot resolve the Linux device’s IP and MAC addresses in the ARP table. This is a common issue related to how Windows handles USB Ethernet protocols.
Windows primarily supports RNDIS, a proprietary Microsoft protocol for Ethernet over USB, and does not natively support ECM devices well. That’s why when your STM32 acts as HOST and Linux as DEVICE using ECM, Windows struggles with ARP resolution. but keep in mind that memory-limited MCUs cannot support these protocols properly.
To summarize:
If possible, try configuring the Linux device to use RNDIS when connected to Windows. This should help resolve the ARP and connectivity issues you’re facing.
Best regards,
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.