Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Baud Rate change within program

Hi Nordic,

1.I am running  (C:\ncs\v2.1.0-rc2\zephyr\samples\drivers\uart\echo_bot) but i need to change baud rate within program

2. I Can Change my baud rate using overlay file

3. But I dont want overlay file i need to make changes within program

Parents Reply
  • Tharak said:
    4. When i use your code and changed baud rate from 1000000 to 19200 its wont work 

    What is not working? I tested it on my end and it works fine here.

    Tharak said:
    5. i think my problem you understood and i checked in build/zephyr/zephyr.dts file its showing 115200 baud rate 

    This is expected, as the config from the devicetree will be used for initializing the UART. The updated baud rate will first take effect after you have run the code I provided.

Children
Related