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
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
Hi Jorgen,
1. I tried the code after print_uart statement
2. I didnt got anny errors thats fine
3. But my ulitimate goal is i need to print the statement in 19200 baud rate
4. When i use your code and changed baud rate from 1000000 to 19200 its wont work
5. i think my problem you understood and i checked in build/zephyr/zephyr.dts file its showing 115200 baud rate
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.
Hi Jorgen,
1. Still i tried 100 of time its only taking default 115200 only
2. I changed 9600 38400 57600 but its taking default
3. i am wondering its working for you its not working for me
4. i am using bl653_dvk board ncs v2.0.0 and west command and for flashing using tera term
5. I attaching build/zephyr/zephyr.dts screenshot
Hi Jorgen,
Please share your zip file then i can know where it is wrong
Hi,
Here is the modified sample I used for testing: echo_bot_19200.zip
I moved the changing of baud rate earlier in the application, so now all UART TX/RX will use 19200 baud rate.
Best regards,
Jørgen