STM32 MPU Family - MCU Support

Tips and Tricks - Ethernet-over-USB Windows 7 Set-up


Driver installation

Using Console to the target, first check that usb0 network interface is UP:

root@stm32mp1:~# ifconfig usb0
usb0 Link encap:Ethernet HWaddr 32:2A:2F:8F:9C:A8
inet addr:192.168.7.2 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::302a:2fff:fe8f:9ca8%3200150032/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1751 errors:0 dropped:30 overruns:0 frame:0
TX packets:759 errors:0 dropped:2 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:159931 (156.1 KiB) TX bytes:218433 (213.3 KiB)

Then, check that dedicated USB OTG cable is connected to the target.
If the driver is not automatically installed, launch Control Panel > Device Manager


Driver Installation

Right click then on RNDIS in the Other Devices selection, and choose Update Driver Software
Choose then Browse my computer for driver software

Driver Installation

Choose then Let me pick from a list of device drivers on my computer

Driver Installation

Select Network Adapters in the list, then Next.

Driver Installation

Wait for the driver list to appear, and the choose Microsoft corporation in the Manufacturer list.
Then, Remote NDIS Compatible Device in the Network Adapter list.
Then, Next

Driver Installation

A warning message appears, select Yes in order to install driver.

Driver Installation

Finally, we get the following windows.

Driver Installation



Network Interface Set-up

We now have to configure Ethernet connection.

Control Panel > Network and Internet > Network Connections
Find the connection corresponding to the gadget Ethernet/RNDIS, the right click Properties
Select Internet Protocol Version 4 (TCP/IPv4) and click on Properties


Driver Installation

Choose Use the following IP address, then enter the IP address, Subnet Mask and Default Gateway as depicted.

Driver Installation


The connection is ready now !
The target is reachable with 192.168.7.2 IP address.