printk no longer works in project

Just started another project using an nrf52840 dev board, and the printk() call produces no output. There is no output for Zephy booting, or anything else. I have tried both COM ports that appear when the boardis plugged in, and nothing. I'm using the usual vscode with nrfconnect. I can open both COM ports but there is no output on either one.

Since I last used nrfconnect I have set up vscode with the ESP-IDF (working), could that affect the Nordic plugin?


My config file has the following:

# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_NRF52840DK_NRF52840=y

# Enable MPU
CONFIG_ARM_MPU=y

# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y

# Enable RTT
CONFIG_USE_SEGGER_RTT=y

# enable GPIO
CONFIG_GPIO=y

# enable uart driver
CONFIG_SERIAL=y

# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# additional board options
CONFIG_GPIO_AS_PINRESET=y

CONFIG_PINCTRL=y
Related