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
Parents Reply
  • Okey that's good to know. I What i would suggest is to delete your build folder and try a prestine build to see if it solves the problem. I can also try to replicate it if you upload your application( We can set the ticket to private if you don't want to share your application public). I don't see anything that stands out from your prj.conf. Could you try to enable logging and see if it outputs anything on serial or rtt?

    Regards

    Runar

Children
No Data
Related