NRF9160 DK UART configuration

Hi

I am currently running and adjusting the zephyr echo_bot uart sample
on my nrf9160 DK. Currently , the sample makes use of UART0 to send a receive information which I have made compatible with an external device and the nrf terminal. My issue is that configuring the exact code to UART1 or UART0 has been difficult to achieve. Please assist.

Parents
  • Hi again

    I've created the overlay file, used the code you provided and the echobot does not work.  In my understanding, the program should display an output using the LTE link monitor or the or the VS built in serial monitor.  Please assist urgently.  Do I need to add some code in the prj.config file as well?

    Thank you

  • Hi Hassan Khan,

    I am attaching complete project folder in the zip format. Once you unzip and analyze files, you will see that I have only included the overlay file. Rest of the project is exactly same.

    echo_bot2.zip

    Another thing is connecting to the right COM port with correct baudrate / configuration. I am also attaching snapshots of connecting to COM port using nRF terminal, and the sample output of the project after it has been flashed on the DK and COM port is connected to the terminal output. 

    Two things to note here is that: (1) you will not see any output if you are connected to wrong port or with wrong configurations, and (2) if everything is correct, and you start typing in the terminal, you will not see characters as you type in, but rather you will see the echo back (the same message) from the echo-bot on DK once you press ENTER key.

    I hope it will be helpful.

    With regards,

    Naeem

Reply
  • Hi Hassan Khan,

    I am attaching complete project folder in the zip format. Once you unzip and analyze files, you will see that I have only included the overlay file. Rest of the project is exactly same.

    echo_bot2.zip

    Another thing is connecting to the right COM port with correct baudrate / configuration. I am also attaching snapshots of connecting to COM port using nRF terminal, and the sample output of the project after it has been flashed on the DK and COM port is connected to the terminal output. 

    Two things to note here is that: (1) you will not see any output if you are connected to wrong port or with wrong configurations, and (2) if everything is correct, and you start typing in the terminal, you will not see characters as you type in, but rather you will see the echo back (the same message) from the echo-bot on DK once you press ENTER key.

    I hope it will be helpful.

    With regards,

    Naeem

Children
No Data
Related