-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32 USB: netusb: kernel crash when testing example echo_server with nucleo_f412zg (ECM on Windows) #13560
Comments
an advice not related this issue: your serial port software doesn't support color so there has something such as [1; you can try putty |
@qianfan-Zhao thanks |
I have |
@finikorg I have tested |
@Jeepgoing are you using USB Ethernet ECM with Windows? You should use RNDIS. I can verify that RNDIS works with Windows while selecting ECM produces crash (which is also might be an issue, I will check it). |
There seems to be division by zero bug inside
|
@ydamigos , @loicpoulain can you have a check? |
I couldn't reproduce the error. I tested echo_server using netusb on my 96b_carbon. It starts without crashing:
|
@ydamigos How do you run it? I can reproduce the crash building echo_server with netusb overlay (default would be ECM protocol) and connecting it to Windows, not Linux. @Jeepgoing is this correct procedure? |
@finikorg yes, i have tested netusb with defconfig. |
with Windows, right? Because in Linux it should work just fine. |
@finikorg yep,i test with windows, i have not test with linux. |
@finikorg I built echo_server with netusb overlay and connected it to Linux. I need to try it on Windows. |
@ydamigos So, have you verified the crash? |
Yes, exactly, Probably Windows does not configure ECM. |
@finikorg Yes, it crashes on Windows. It tries to read from EP01 without configuring it.
|
Window set iface 1 alt settings 0, we should not call callback then (or in the callback we need to check alt_setting parameter), I will fix this issue. |
Fix crash when reading invalid endpoint found in harness test. Fixes zephyrproject-rtos#13560 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Only enable netusb for the right configuration of interface and alt_setting. Fixes zephyrproject-rtos#13560 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Only enable netusb for the right configuration of interface and alt_setting. Fixes zephyrproject-rtos#13560 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Only enable netusb for the right configuration of interface and alt_setting. Fixes zephyrproject-rtos#13560 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Only enable netusb for the right configuration of interface and alt_setting. Fixes #13560 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Hi, @ydamigos , can you tell me how to test this sample? |
Hi @Jeepgoing, On windows, I had to edit overlay-netusb.conf and change Then I run:
I connected the device to Windows machine. A new New adapter showed up in network interfaces. |
@ydamigos Could you try enabling |
@finikorg I enabled it but Windows drivers didn't install automatically. |
I think you need to remove old drivers associated with this VID/PID, you can change that pair. |
I changed VID/PID pair and "Remote NDIS Compatible device" driver installed automatically. |
I have configured board with this command
cmake -GNinja -DBOARD=nucleo_f412zg -DOVERLAY_CONFIG=overlay-netusb.conf ..
when i boot up kernel crashed.
so anyone have met this issue?
The text was updated successfully, but these errors were encountered: