zephyr: STM32 USB: netusb: kernel crash when testing example echo_server with nucleo_f412zg (ECM on Windows)
I have configured board with this command
cmake -GNinja -DBOARD=nucleo_f412zg -DOVERLAY_CONFIG=overlay-netusb.conf ..
when i boot up kernel crashed.
[1;32muart:~$ [m***** Booting Zephyr OS v1.14.0-rc1-348-gcda3fad5c8 *****
[8D[J[00:00:00.059,036] [0m<inf> usb_net: netusb initialized[0m
[1;32muart:~$ [m[8D[J[00:00:00.059,210] [1;31m<err> usb_net: interface disabled[0m
[1;32muart:~$ [m[8D[J[00:00:00.059,380] [1;31m<err> usb_net: interface disabled[0m
[1;32muart:~$ [m[8D[J[00:00:00.059,532] [1;31m<err> usb_net: interface disabled[0m
[1;32muart:~$ [m[8D[J[00:00:00.059,684] [1;31m<err> usb_net: interface disabled[0m
[1;32muart:~$ [m[8D[J[00:00:00.064,681] [0m<inf> net_config: Initializing network[0m
[1;32muart:~$ [m[8D[J[00:00:00.064,716] [0m<inf> net_config: IPv4 address: 192.0.2.1[0m
[1;32muart:~$ [m[8D[J[00:00:00.064,918] [1;31m<err> usb_net: interface disabled[0m
[1;32muart:~$ [m[8D[J[00:00:00.065,077] [1;31m<err> usb_net: interface disabled[0m
[1;32muart:~$ [m[8D[J[00:00:00.160,084] [0m<inf> net_config: IPv6 address: fe80::200:5eff:fe00:5300[0m
[1;32muart:~$ [m[8D[J[1;32muart:~$ [m[1B[9D[8D[J[00:00:00.166,094] [0m<inf> net_config: IPv6 address: fe80::200:5eff:fe00:5300[0m
***** USAGE FAULT *****
Division by zero
***** Hardware exception *****
Current thread ID = 0x20003620
Faulting instruction address = 0x80027d4
Fatal fault in ISR! Spinning...
so anyone have met this issue?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 24 (1 by maintainers)
Commits related to this issue
- usb: usb_dc_stm32: Fix reading invalid EP Fix crash when reading invalid endpoint found in harness test. Fixes #13560 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> — committed to finikorg/zephyr by finikorg 5 years ago
- usb: netusb: ecm: Enable netusb for the right iface/alt_set Only enable netusb for the right configuration of interface and alt_setting. Fixes #13560 Signed-off-by: Andrei Emeltchenko <andrei.emelt... — committed to finikorg/zephyr by finikorg 5 years ago
- usb: netusb: ecm: Enable netusb for the right iface/alt_set Only enable netusb for the right configuration of interface and alt_setting. Fixes #13560 Signed-off-by: Andrei Emeltchenko <andrei.emelt... — committed to finikorg/zephyr by finikorg 5 years ago
- usb: netusb: ecm: Enable netusb for the right iface/alt_set Only enable netusb for the right configuration of interface and alt_setting. Fixes #13560 Signed-off-by: Andrei Emeltchenko <andrei.emelt... — committed to jfischer-no/zephyr by finikorg 5 years ago
- usb: netusb: ecm: Enable netusb for the right iface/alt_set Only enable netusb for the right configuration of interface and alt_setting. Fixes #13560 Signed-off-by: Andrei Emeltchenko <andrei.emelt... — committed to zephyrproject-rtos/zephyr by finikorg 5 years ago
I changed VID/PID pair and “Remote NDIS Compatible device” driver installed automatically.
Hi @Jeepgoing,
On windows, I had to edit overlay-netusb.conf and change
CONFIG_USB_DEVICE_NETWORK_ECM=ytoCONFIG_USB_DEVICE_NETWORK_RNDIS=y.Then I run:
I connected the device to Windows machine. A new
Unknown deviceshowed up inDevice Manager. I chose to update drivers with the optionPick from a listand then selected‘Network Adapters’ -> ‘Microsoft Corp’ -> ‘Remote NDIS Compatible device’.New adapter showed up in network interfaces.