This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Peripheral UART example - Might I use UART_1 for send out data received via BLE?

Dear Support

Try to modify this use UART_1 for sending out data received via BLE, which is pin P0.14 on nrf52833dk_nrf52833, I modified Kconfig file under the boards folder

config BT_NUS_UART_DEV
default "UART_1"  
It compiles ok, discovered by my phone,  but when i send message form BLE side,  I cannot probe the data on TX line with logical Analyser, while I see it when use default UART_0 on pin P0.06. 
Anything else I need to do in order to let it work on UART_1? My target board use other pins for UART interface, and I understand any pin can be configured to be UART pins.
Thanks you for your attention.
Ping
Parents
  • Hi,

    You need to add an overlay file which enables and sets up uart1, and also disables i2c1. Here's an example, that you can modify for your desired pins:

    &uart1 {
        status = "okay";
        tx-pin = <  >;
        rx-pin = <  >;
        label = "UART_1";
    };
    
    &i2c1 {
        status = "disabled";
    };

    If it still does not work, please tell me the pins you are using and any other information that may be useful.
    If you are using SES, remember to run Project->Run CMake after changes to Kconfig, prj.conf, and overlay files.

Reply
  • Hi,

    You need to add an overlay file which enables and sets up uart1, and also disables i2c1. Here's an example, that you can modify for your desired pins:

    &uart1 {
        status = "okay";
        tx-pin = <  >;
        rx-pin = <  >;
        label = "UART_1";
    };
    
    &i2c1 {
        status = "disabled";
    };

    If it still does not work, please tell me the pins you are using and any other information that may be useful.
    If you are using SES, remember to run Project->Run CMake after changes to Kconfig, prj.conf, and overlay files.

Children
No Data
Related