STM32 MPU Family - MCU Support Tips and Tricks - Ethernet-over-USB Windows 10 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
Right click then on Remote NDIS Compatible Device in the Network adapters selection, and choose Update Driver
Choose then Browse my computer for driver software
Choose then Let me pick from a list of device drivers on my computer
Select Remote NDIS Compatible Device.
Then, Next
Finally, we get the following windows.
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
Choose Use the following IP address, then enter the IP address, Subnet Mask and Default Gateway as depicted.
The connection is ready now !
The target is reachable with 192.168.7.2 IP address.