Hi,
I followed https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direct_test_mode/README.html to work with nRF5340 DK PCA10095. I am using latest nRF connect v2.3.0 with no change of board "nrf5340dk_nrf5340_cpunet".
Because nrf5340dk_nrf5340_cpunet.overlay, ncs,dtm-uart is uart0 therefore I connect FTDI TTL-232R-3V3 to nRF5340 UART0 pins.
UART0 | FTDI | ||
TX | P0.20 | RX | Yellow |
RX | P0.21 | TX | Orange |
RTS | P0.18 | CTS | Brown |
CTS | P0.16 | RTS | Green |
GND | GND | Black |
In prj.conf:
# Configure assertions
CONFIG_ASSERT=y
CONFIG_ASSERT_NO_COND_INFO=y
CONFIG_ASSERT_NO_MSG_INFO=y
CONFIG_HW_STACK_PROTECTION=y
# Uart driver
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_LOG=y
CONFIG_LOG_PRINTK=y
CONFIG_USE_SEGGER_RTT=n
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_UART=y
# Use necessary peripherals
CONFIG_NRFX_TIMER0=y
CONFIG_NRFX_TIMER1=y
CONFIG_NRFX_TIMER2=y
It seems the example uart0 device tree is not configured correctly for this board and main.c !device_is_ready(uart) is true as shown in below screenshot. I used Teraterm with baudrate 19200 and I had no activity. Please let me know what could be the problem here. Thanks.