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_uart not responding at higher baudrates on NRF52810 #25965

Closed
jjamesson opened this issue Jun 4, 2020 · 6 comments
Closed

hci_uart not responding at higher baudrates on NRF52810 #25965

jjamesson opened this issue Jun 4, 2020 · 6 comments
Assignees
Labels
area: UART Universal Asynchronous Receiver-Transmitter bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx

Comments

@jjamesson
Copy link

jjamesson commented Jun 4, 2020

Hi , Zephyr community,

I am having an issue with the hci_uart sample, where I am not getting a response from the controller for the HCI RESET command on higher UART bandwidth, namely with the "sudo btattach -B /dev/ttyACM1 -S 1000000 -P h4" command. However, I do get the response when using 115200 as the baudrate. I am using an oscilloscope to see if the signal gets a response or not.

The problem exists with the "nrf52810_pca10040" west build, but the problem does NOT exist on the "nrf52_pca10040" west build (meant for using with the 52832 chip). The custom hardware we plan on deplaying hosts the 52810 controller, so this is an issue for us.

I have tried both the newest Zephyr and Zephyr 1.14 to solve this problem.

Hope you can help. Feel free to ask additional information about this issue.

With regards,
James

@jjamesson jjamesson added the bug The issue is a bug, or the PR is fixing a bug label Jun 4, 2020
@carlescufi carlescufi added area: UART Universal Asynchronous Receiver-Transmitter platform: nRF Nordic nRFx labels Jun 4, 2020
@carlescufi
Copy link
Member

@jjamesson I assume you are using an nRF52 DK (PCA10040)?

@carlescufi carlescufi changed the title HCI-UART not responding at higher baudrates on NRF52810 hci_uart not responding at higher baudrates on NRF52810 Jun 4, 2020
@jjamesson
Copy link
Author

jjamesson commented Jun 4, 2020

@carlescufi Yes, I am. Sorry for not mentioning.

@carlescufi
Copy link
Member

@jjamesson actually, have you tried adding an overlay for the board?
You need a file like:
https://github.com/zephyrproject-rtos/zephyr/blob/master/samples/bluetooth/hci_uart/boards/nrf52dk_nrf52832.overlay

but for nrf52dk_nrf52810. So you need a new file:
samples/bluetooth/hci_uart/boards/nrf52dk_nrf52810.overlay

Identical to the current `nrf52dk_nrf52832.overlay.

@carlescufi
Copy link
Member

Alternatively, just change the baud rate directly to 1000000 here:
https://github.com/zephyrproject-rtos/zephyr/blob/master/boards/arm/nrf52dk_nrf52810/nrf52dk_nrf52810.dts#L95

@jjamesson
Copy link
Author

@carlescufi Indeed, I figured shortly after writing this post that there was no overlay file for the DK hosting the nrf52810 chip, and modifying the .dts file solved this issue. Thanks for looking into this. This topic can be closed.

With regards,

@carlescufi
Copy link
Member

Thanks for letting us know @jjamesson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx
Projects
None yet
Development

No branches or pull requests

3 participants