How to view printk output from observer sample project?

Hi all,

I'm sure I must be overlooking something very basic here, but I'm struggling to find a way to view output from printk statements in a sample project I've built and flashed.

I'm using the nrf5340dk evaluation board with SDK 2.2.0 and VSCode.

I've built and flashed the observer sample project to the board. The project I'm referring to is here: https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/bluetooth/observer#id3

This project passively monitors Bluetooth traffic and outputs to printk.

I've connected to each serial port in available on my system with settings n/8/1, 115200 baud, and then reset the 5340dk while watching for serial traffic. I see nothing on any of the available ports. A screenshot below shows, at lower-left, the ports I have visible in VSCode.

I went into my prj.conf and added CONFIG_CONSOLE=y, however when I do that a tooltip says something to the effect of, "Sure, okay, but this was already set in another file so you don't need it here."

I've also poked around in other config/dts files - see my screenshot - and it looks like default console is set to uart0, which I think should be the default. Then, while looking in this file, I see a 20 and 22, so I wondered if maybe this is saying the UART pins are on port 0, pins 20 and 22. So, using an extern USB to serial adapter, I looked on these pins for serial traffic, and again I see nothing.

What am I missing?

Thanks for any help you might be able to offer!

Scott

Parents Reply Children
Related