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

cannot move to 1M baud rate in bt_shell #27362

Closed
sandeep-airatechnology opened this issue Aug 3, 2020 · 2 comments
Closed

cannot move to 1M baud rate in bt_shell #27362

sandeep-airatechnology opened this issue Aug 3, 2020 · 2 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

@sandeep-airatechnology
Copy link

Hi,
I am using the /test/bluetooth/shell/ example.
I am trying to move to 1M baud rate and it doesn't work. However I am able to lower baud rates i.e 9600 and 115200.
I am using screen in MacOS to talk to the device.
Can you please tell me if Im missing any config?

My overlay file looks like

/* SPDX-License-Identifier: Apache-2.0 */

&uart0 {
compatible = "nordic,nrf-uart";
current-speed = <1000000>;
status = "okay";
hw-flow-control;
};

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

carlescufi commented Aug 4, 2020

I just tested this with this diff:

diff --git a/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts b/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
index e021950552..ee69b9f320 100644
--- a/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
+++ b/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
@@ -142,7 +142,7 @@
 &uart0 {
        compatible = "nordic,nrf-uart";
        status = "okay";
-       current-speed = <115200>;
+       current-speed = <1000000>;
        tx-pin = <6>;
        rx-pin = <8>;
        rts-pin = <5>;

on Linux with minicom (minicom -b 1000000 -D /dev/ttyACM0), and it worked fine. I don't think this is a bug, please try this patch instead of using an overlay. Otherwise this might be a macOS issue.

@sandeep-airatechnology
Copy link
Author

@carlescufi Thank-you.. it works using pyserial but not using screen(I don't know why)..

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

4 participants