[<<][zephyr][>>][..]
Mon Apr 27 11:35:48 EDT 2020

UART output

So I want to see what is coming out of the uart.
How do I know which pin is the uart?

./build/zephyr/zephyr.dts

		uart0: uart@40002000 {
			reg = < 0x40002000 0x1000 >;
			interrupts = < 0x2 0x1 >;
			status = "okay";
			label = "UART_0";
			compatible = "nordic,nrf-uart";
			current-speed = < 0x1c200 >;
			tx-pin = < 0x14 >;
			rx-pin = < 0x13 >;
			rts-pin = < 0x5 >;
			cts-pin = < 0x7 >;
		};


		uart1: uart@40028000 {
			compatible = "nordic,nrf-uarte";
			reg = < 0x40028000 0x1000 >;
			interrupts = < 0x28 0x1 >;
			status = "disabled";
			label = "UART_1";
		};

What are the pin numbers?

	model = "nRF52840-MDK Dev Kit";

As usual, pin naming isn't universal.

Start with what's on the board's doc site:

This is the config I'm using for zephyr and is the board used for the
client, but not the board I have myself.

https://github.com/makerdiary/nrf52840-mdk
TXD P0.20
RXD P0.19

I have this board:

https://github.com/makerdiary/nrf52840-mdk-usb-dongle

The pins are marked.

With USB connector on top

LEFT:

 1 VIN
 2 +5V
 3 GDN
 4 P0.04
 5 P0.05
 6 P0.06
 7 P0.07
 8 P0.08
 9 P0.09
10 P0.10

RIGHT:

 1 +3v3V
 2 GND
 3 RST
 4 SWDCLK
 5 SWDIO
 6 P0.19  RXD
 7 P0.20  TXD
 8 P0.21
 9 P0.02
10 P0.03




[Reply][About]
[<<][zephyr][>>][..]