Skip to content
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

Arduino Nano 33 BLE sense constantly resetting. #33352

Closed
bkalthoff opened this issue Mar 15, 2021 · 9 comments
Closed

Arduino Nano 33 BLE sense constantly resetting. #33352

bkalthoff opened this issue Mar 15, 2021 · 9 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@bkalthoff
Copy link

bkalthoff commented Mar 15, 2021

Describe the bug
After building and flashing the hello_world sample the board constantly resets over and over.
I've tried using different the master branch of zephyr and the v2.5 branch but to no avail.
I also tried different version of bossac, one that I built from source and one that came with the arduino IDE.
Flashing with the arduino IDE does not cause constant resetting. I have yet to try on building and flashing on another machine.

I am getting a warning when building. See warning further down.

To Reproduce
Steps to reproduce the behavior:

  1. west build -p -b arduino_nano_33_ble samples/hello_world
  2. west flash --bossac="/path/to/bossac"
  3. sudo dmesg
  4. Check if USB constantly disconnecting and reconnecting.

dmesg output

[ 9152.530787] usb 1-10: new full-speed USB device number 113 using xhci_hcd
[ 9152.689489] usb 1-10: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
[ 9152.689490] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9152.689491] usb 1-10: Product: Arduino Nano 33 BLE
[ 9152.689492] usb 1-10: Manufacturer: Arduino
[ 9152.689492] usb 1-10: SerialNumber: 0000000000000000A5048AA7799337A8
[ 9152.690955] cdc_acm 1-10:1.0: ttyACM0: USB ACM device
[ 9152.725168] usb 1-10: USB disconnect, device number 113
[ 9153.054786] usb 1-10: new full-speed USB device number 114 using xhci_hcd
[ 9153.213407] usb 1-10: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
[ 9153.213408] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9153.213409] usb 1-10: Product: Arduino Nano 33 BLE
[ 9153.213410] usb 1-10: Manufacturer: Arduino
[ 9153.213410] usb 1-10: SerialNumber: 0000000000000000A5048AA7799337A8
[ 9153.214946] cdc_acm 1-10:1.0: ttyACM0: USB ACM device
[ 9153.243920] usb 1-10: USB disconnect, device number 114
[ 9153.566790] usb 1-10: new full-speed USB device number 115 using xhci_hcd
[ 9153.725412] usb 1-10: New USB device found, idVendor=2341, idProduct=005a, bcdDevice= 0.11
[ 9153.725413] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9153.725414] usb 1-10: Product: Arduino Nano 33 BLE
[ 9153.725414] usb 1-10: Manufacturer: Arduino
[ 9153.725415] usb 1-10: SerialNumber: 0000000000000000A5048AA7799337A8
[ 9153.727355] cdc_acm 1-10:1.0: ttyACM0: USB ACM device
[ 9153.762748] usb 1-10: USB disconnect, device number 115

cmake warning

CMake Warning at ../../subsys/usb/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.


CMake Warning at ../../subsys/usb/CMakeLists.txt:28 (message):
  CONFIG_USB_DEVICE_PID has default value 0x100.

  This value is only for testing and MUST be configured for USB products.

Environment (please complete the following information):

@bkalthoff bkalthoff added the bug The issue is a bug, or the PR is fixing a bug label Mar 15, 2021
@bkalthoff
Copy link
Author

Found success when using UART and finally got some output. Guessing that the cdc_acm driver isn't working correctly.

@galak galak added the priority: low Low impact/importance bug label Mar 16, 2021
@galak
Copy link
Collaborator

galak commented Mar 16, 2021

Found success when using UART and finally got some output. Guessing that the cdc_acm driver isn't working correctly.

When you say using UART, what do you mean?

@saltyJeff can you look at this bug?

@bkalthoff
Copy link
Author

Found success when using UART and finally got some output. Guessing that the cdc_acm driver isn't working correctly.

When you say using UART, what do you mean?

@saltyJeff can you look at this bug?

I managed to get serial output through the tx/rx pins, but not the usb. I tried on two different machines, same issue.

@carlescufi carlescufi added the area: USB Universal Serial Bus label Mar 23, 2021
@carlescufi
Copy link
Member

@jfischer-no could you try to shed some light here?

@jfischer-no jfischer-no removed the area: USB Universal Serial Bus label Mar 23, 2021
@jfischer-no
Copy link
Collaborator

I do not think this is related to USB device support as it works fine on different nRF52840 based boards.
I also do think it is not a bug but configuration issue. Please check samples/subsys/shell/shell_module build with overlay-usb.conf and samples/subsys/usb/console.

@jfischer-no
Copy link
Collaborator

Is it related to #33523?

@Stefan-Schmidt
Copy link
Contributor

For me it was very much related. I have seen the same resetting behavior and the root was indeed the double offset problem described in #33523

Working around this double offset did lead to successful flashing and no more USB resetting.

@carlescufi
Copy link
Member

Closing as duplicate of #33523

@WilliamGFish
Copy link
Collaborator

I'm not sure they are related as I am able to flash the nano 33 ble in a windows environment following the instructions defined in the zephyr documentation, with the addition of --bossac-port="COM7" to the west flash command.

I have used blinky and previously had BLE running but I have never been able to get the USB console to work. I to believe this may be more to do with the CDC drivers in windows as well as some using the incorrect version of BOSSAC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

7 participants