You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works as expected when first uploaded on the board (and subsequent board resets):
The led turns on and off every 250ms
Data can be read from the serial port
The board is correctly recognized as a HID and actually moves the mouse when tilting it.
As soon as we reboot (or we do a complete shutdown+start) on Windows with the device plugged in weird stuff happens:
The led blinks an indefinite amount of times before stopping (in whatever state it was last). My explaination is that the bios tries to figure out what kind of device it is, manages to exchange some data and then gives the control to the boot manager. As soon as the boot manager is reached (both GRUB or Windows Boot Manager), the led stops blinking.
We can't read data from the serial port, but the port exists and can be read. I assume this would mean that the serial port is opened but no data is being written by the board.
Most importantly: no usb exchange is happening. We can see the device under Device Manager, so it would appear connected, but the mouse stays still. I even installed USBPcap + wireshark to check what was happening, but it refused to inspect the device (probably because something is wrong).
The only way to circumvent this issue is by resetting the board or unplugging it and plugging it again (only after Windows has started). We tested this issue on multiple PCs and multiple Nano 33 BLE boards, so i'd exclude hardware issues.
I assume something wrong is happening while power cycling the board and the initialization of usb communication, but i lack the knowledge required to proficiently debug it.
We tried checking previous issues here, specifically #107, without much luck (meaning even uninstalling the drivers for the device or changing the VID code, the issue persists). We even tried uploading this code via arduino and the issue persists (which makes me think that maybe the issue lies in mbed-os rather than here)
Can anybody help?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @hjeldin,
the BootHID protocols are always a big PITA since the BIOS/UEFI is not always implementing the full stack. My suggestion is to add a watchdog (or a thread, since I think the code is not entirely crashed when windows comes up) that recognizes the board being stuck on USB enumeration and resets it.
Hey all,
we're using Arduino 1.8.15 + Arduino Mbed Nano Boards 2.4.1.
We're uploading a simple sketch:
Everything works as expected when first uploaded on the board (and subsequent board resets):
As soon as we reboot (or we do a complete shutdown+start) on Windows with the device plugged in weird stuff happens:
The only way to circumvent this issue is by resetting the board or unplugging it and plugging it again (only after Windows has started). We tested this issue on multiple PCs and multiple Nano 33 BLE boards, so i'd exclude hardware issues.
I assume something wrong is happening while power cycling the board and the initialization of usb communication, but i lack the knowledge required to proficiently debug it.
We tried checking previous issues here, specifically #107, without much luck (meaning even uninstalling the drivers for the device or changing the VID code, the issue persists). We even tried uploading this code via arduino and the issue persists (which makes me think that maybe the issue lies in mbed-os rather than here)
Can anybody help?
Thanks!
The text was updated successfully, but these errors were encountered: