Trying to use UART1 on the nRF52840 SoC in the zephyr UART sample application 'echo_bot'

I've been trying for several days now to get the zephyr sample UART application 'echo_bot' to run using UART1 instead of the default shell UART (UART0).  I can get data output from the TX pin (displaying on a terminal on my PC), but I can never get any data input through the RX pin.  If I build the application using the shell UART (UART0), everything works fine.  I have checked my .DTS and overlay files and both UARTs are compatible with the nrfx-uarte peripheral.  I am using the nRF Connect SDK v2.2.0 for my development, with my target being the nRF52840 Soc.  I've attached my zipped application (echo_bot_JL).  I have made a couple of observations that I find rather confusing : 1)  I have the shell UART (UART0) running at 115.2 Kbaud and everything works 'as advertised'.  When I use UART1 (running at 9.6 Kbaud), I get data output from the TX pin, but I can't get any data in through the RX pin.  Also, when I step through the application using the debugger, both UART instances show as 'ready', yet I get no input from the UART1 instance.

I'm curious if anyone else has run into the same issues, and if so, how did you resolve them ??  I appreciate any suggestions, comments, etc.  Thanks !!echo_bot_JL.zip

Parents Reply
  • Hi Hieu,

    i unzipped, built and flashed the modified sample that you attached and I still get the same results :  There is no data input via the UART1-RX line.  Both UARTS output data at the correct baud rates, but only UART0 receives any data from my terminal programs (Tera Term running on Windows 10 PC).  I have swapped com ports, cables, etc. to see if those might be causing the problem, but it always points to the application not receiving any data via the UART1-RX input.

Children
Related