This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Change UART baud rate NRF5340 w/ NRFConnect SDK

Hello,

I am wondering where to change the baud rate for the UART in the NRFConnect SDK using zephyr. I am working with the peripheral_uart example.

Thanks,

RJ

Parents
  • Try adding an overlay file nrf5340dk_nrf5340_cpuapp.overlay (use the same board-name as the one you're bulding with) to your project with the following content:

    &uart0 {
    	status = "okay";
    	current-speed = <new baud rate>; //<115200>;
    };

    That will overwrite the default speed set in <ncs location>\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dts

    Best regards,

    Simon

Reply
  • Try adding an overlay file nrf5340dk_nrf5340_cpuapp.overlay (use the same board-name as the one you're bulding with) to your project with the following content:

    &uart0 {
    	status = "okay";
    	current-speed = <new baud rate>; //<115200>;
    };

    That will overwrite the default speed set in <ncs location>\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dts

    Best regards,

    Simon

Children
Related