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

hci_usb not working on v1.14.0rc3 with SDK 0.10.0 #15205

Closed
mfiumara opened this issue Apr 5, 2019 · 9 comments
Closed

hci_usb not working on v1.14.0rc3 with SDK 0.10.0 #15205

mfiumara opened this issue Apr 5, 2019 · 9 comments
Assignees
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: medium Medium impact/importance bug
Milestone

Comments

@mfiumara
Copy link
Contributor

mfiumara commented Apr 5, 2019

Describe the bug
The HCI_usb example in the zephyr repo stopped working on v1.14.0rc3 using SDK0.10.0. The USB dongle does not show as a USB device. Previous build based on v1.14.0rc2 and SDK 0.9.0 works succesfully. I am using the nrf52840_pca10059 board (dongle).

To Reproduce
Steps to reproduce the behavior:

  1. Build the HCI_usb example for nrf52840_pca10059 board
  2. Flash the hex on the USB dongle
  3. Plug in the USB dongle into machine
  4. Observe dmesg output: Board does not show up as USB device

Expected behavior
After building and flashing the device it should show up as ZEPHYR device in dmesg.

Impact
This results in the example not being able to run at all.

Screenshots or console output

Environment (please complete the following information):

  • OS: Linux in VM (4.19.30-1-MANJARO zephyr-master_fork #1 SMP PREEMPT Tue Mar 19 17:49:12 UTC 2019 x86_64 GNU/Linux)
  • Zephyr v1.14.0rc3 with Toolchain Zephyr SDK 0.10.0
  • Tagged rc3 version used and official SDK 0.10.0

Additional context
Please check the general slack here: https://zephyrproject.slack.com/archives/C18PLHN8H/p1554456501803600 . Seems to be a general problem as multiple people have reported seeing this issue.

@mfiumara mfiumara added the bug The issue is a bug, or the PR is fixing a bug label Apr 5, 2019
@carlescufi carlescufi added area: USB Universal Serial Bus platform: nRF Nordic nRFx labels Apr 5, 2019
@carlescufi
Copy link
Member

@pawelzadrozniak @lemrey @barsok is this an issue only on pca10059, or also on pca10056? I wonder if it's related to the board or the USB stack in fact

@jhedberg jhedberg added this to the v1.14.0 milestone Apr 5, 2019
@jfischer-no
Copy link
Collaborator

jfischer-no commented Apr 5, 2019

sample works fine on reel board and nrf52840_pca10056 (latest master), but not the combination of mcuboot and hci_usb

[00:00:00.201,202] <inf> mcuboot: Jumping to the first image slot
***** BUS FAULT *****
  Precise data bus error
  BFAR Address: 0x96f3b83d
***** Hardware exception *****
Current thread ID = 0x00000000
Faulting instruction address = 0x733a

addr2line -e build/nrf52840_pca10056/mcuboot/zephyr/zephyr.elf 0x733a
/home/john/zephyr-project/zephyr/drivers/flash/soc_flash_nrf.c:554

@carlescufi
Copy link
Member

@nvlsianpu can you take a look at the above log?

@jfischer-no
Copy link
Collaborator

jfischer-no commented Apr 5, 2019

@carlescufi I do not think it is a flash driver issue, now I got <err> kernel: Never should get here

@nvlsianpu
Copy link
Collaborator

nvlsianpu commented Apr 5, 2019

code Line pointed is the statement for write data to flash - so looks like stack corruption.

@carlescufi
Copy link
Member

@Matt90o You are not using MCUboot here but the Nordic stock bootloader right?

@mfiumara
Copy link
Contributor Author

mfiumara commented Apr 8, 2019

@Matt90o You are not using MCUboot here but the Nordic stock bootloader right?

Yes I am using the Nordic stock bootloader. I am packaging the HCI usb example exactly as described in the docs here.

@carlescufi
Copy link
Member

carlescufi commented Apr 8, 2019

@Matt90o I cannot reproduce this at all with the current master (7cdfe7f) and SDK 0.10.0. The hci_usb app boots correctly and is detected by BlueZ on the Linux Host.

@mfiumara
Copy link
Contributor Author

mfiumara commented Apr 8, 2019

@carlescufi This seems to be fixed in e01662d. I have tried the HCI usb example again with SDK 0.10.0 and the device pops up again as usb device. So this issue can be closed.

@mfiumara mfiumara closed this as completed Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

10 participants