RTT Viewer doesn't show any debug messages of hci_rpmsg from nRF5340 NET core

Procedure to reproduce this issue.
1. cd D:\ncs\v2.3.0\zephyr\samples\bluetooth\hci_rpmsg
2. west build -b nrf5340dk_nrf5340_cpunet
3. west flash
4. Lauching RTT Viewer and selecting NRF5340_XXAA_NET target device
5. RTT Viewer doesn't show any debug messages

The following are log messages of RTT Viewer. Why does it shows "Security extension: not implemented"?

LOG: J-Link RTT Viewer V7.88k: Logging started.
LOG: Terminal 0 added.
LOG: Connecting to J-Link via USB...
LOG: Device "NRF5340_XXAA_NET" selected.
LOG: ConfigTargetSettings() start
LOG: ConfigTargetSettings() end - Took 13us
LOG: InitTarget() start
LOG: InitTarget() end - Took 4.11ms
LOG: Found SW-DP with ID 0x6BA02477
LOG: DPIDR: 0x6BA02477
LOG: CoreSight SoC-400 or earlier
LOG: AP map detection skipped. Manually configured AP map found.
LOG: AP[0]: AHB-AP (IDR: Not set)
LOG: AP[1]: AHB-AP (IDR: Not set)
LOG: AP[2]: MEM-AP (IDR: Not set)
LOG: AP[3]: MEM-AP (IDR: Not set)
LOG: AP[1]: Core found
LOG: AP[1]: AHB-AP ROM base: 0xE00FE000
LOG: CPUID register: 0x410FD214. Implementer code: 0x41 (ARM)
LOG: Feature set: Mainline
LOG: Cache: No cache

LOG: Found Cortex-M33 r0p4, Little endian.
LOG: FPUnit: 8 code (BP) slots and 0 literal slots
LOG: Security extension: not implemented
LOG: CoreSight components:
LOG: ROMTbl[0] @ E00FE000
LOG: [0][0]: E00FF000 CID B105100D PID 000BB4C9 ROM Table
LOG: ROMTbl[1] @ E00FF000
LOG: [1][0]: E000E000 CID B105900D PID 000BBD21 DEVARCH 47702A04 DEVTYPE 00 Cortex-M33
LOG: [1][1]: E0001000 CID B105900D PID 000BBD21 DEVARCH 47701A02 DEVTYPE 00 DWT
LOG: [1][2]: E0002000 CID B105900D PID 000BBD21 DEVARCH 47701A03 DEVTYPE 00 FPB
LOG: [1][6]: E0042000 CID B105900D PID 000BBD21 DEVARCH 47701A14 DEVTYPE 14 CSS600-CTI
LOG: RTT Viewer connected.

  • D:\ncs>west forall -c "git status"
    === running "git status" in manifest (nrf):
    Not currently on any branch.
    Changes not staged for commit:
      (use "git add <file>..." to update what will be committed)
      (use "git restore <file>..." to discard changes in working directory)
            modified:   samples/crypto/aes_cbc/prj.conf
            modified:   samples/crypto/aes_cbc/src/main.c
            modified:   samples/ipc/ipc_service/prj.conf
            modified:   samples/ipc/ipc_service/prj_icmsg.conf
            modified:   samples/ipc/ipc_service/src/main.c
            modified:   samples/nrf5340/multicore/prj.conf
            modified:   samples/nrf5340/multicore/src/main.c
            modified:   samples/nrf5340/multiprotocol_rpmsg/prj.conf
            modified:   samples/nrf5340/multiprotocol_rpmsg/src/main.c
            modified:   samples/peripheral/radio_test/child_image/remote_shell/prj.conf
            modified:   samples/peripheral/radio_test/conf/remote_shell/prj_usb.conf
            modified:   samples/peripheral/radio_test/prj.conf
    
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
            boards/arm/am_nrf52832/
            boards/arm/custom_nrf52832/
            boards/arm/mdbt53db_nrf5340/
            samples/ble_dfu_peripheral_lbs/
            samples/mcuboot_smp_ble/
            samples/minimal_log/
            samples/minimal_log_afe4900/
            samples/minimal_log_afe4900_interrupt/
            samples/minimal_log_button_2gpioe_failed/
            samples/minimal_log_button_2gpioe_ok/
            samples/minimal_log_button_gpio/
            samples/minimal_log_button_gpioe/
            samples/minimal_log_button_led_power_adv/
            samples/minimal_log_button_led_power_adv_pairing/
            samples/minimal_log_cpu_idle/
            samples/minimal_log_flash/
            samples/minimal_log_flash_erase/
            samples/minimal_log_flash_jedec/
            samples/minimal_log_gpio/
            samples/minimal_log_i2c/
            samples/minimal_log_nus/
            samples/minimal_log_nvs/
            samples/minimal_log_rpmsg_service/
            samples/minimal_log_timer/
            samples/peripheral_lbs_rtt/
    
    no changes added to commit (use "git add" and/or "git commit -a")
    === running "git status" in zephyr (zephyr):
    HEAD detached at refs/heads/manifest-rev
    Changes not staged for commit:
      (use "git add <file>..." to update what will be committed)
      (use "git restore <file>..." to discard changes in working directory)
            modified:   drivers/flash/spi_nor.c
            modified:   include/zephyr/drivers/flash.h
    
    no changes added to commit (use "git add" and/or "git commit -a")
    === running "git status" in sdk-hostap (modules/lib/hostap):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in mcuboot (bootloader/mcuboot):
    HEAD detached at refs/heads/manifest-rev
    Changes not staged for commit:
      (use "git add <file>..." to update what will be committed)
      (use "git restore <file>..." to discard changes in working directory)
            modified:   boot/zephyr/nrf_cleanup.c
            modified:   samples/zephyr/hello-world/prj.conf
    
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
            boot/zephyr/build-mcuboot/
            build-mcuboot/
    
    no changes added to commit (use "git add" and/or "git commit -a")
    === running "git status" in mbedtls (modules/crypto/mbedtls):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in nrfxlib (nrfxlib):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in matter (modules/lib/matter):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in cjson (modules/lib/cjson):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in azure-sdk-for-c (modules/lib/azure-sdk-for-c):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in cmock (test/cmock):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in cirrus (modules/hal/cirrus-logic):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in openthread (modules/lib/openthread):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in canopennode (modules/lib/canopennode):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in chre (modules/lib/chre):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in cmsis (modules/hal/cmsis):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in edtt (tools/edtt):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in fatfs (modules/fs/fatfs):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in hal_nordic (modules/hal/nordic):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in hal_st (modules/hal/st):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in hal_wurthelektronik (modules/hal/wurthelektronik):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in libmetal (modules/hal/libmetal):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in liblc3 (modules/lib/liblc3):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in littlefs (modules/fs/littlefs):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in loramac-node (modules/lib/loramac-node):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in lvgl (modules/lib/gui/lvgl):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in lz4 (modules/lib/lz4):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in mipi-sys-t (modules/debug/mipi-sys-t):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in nanopb (modules/lib/nanopb):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in net-tools (tools/net-tools):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in open-amp (modules/lib/open-amp):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in picolibc (modules/lib/picolibc):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in segger (modules/debug/segger):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in tinycbor (modules/lib/tinycbor):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in tinycrypt (modules/crypto/tinycrypt):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in TraceRecorderSource (modules/debug/TraceRecorder):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in tf-m-tests (modules/tee/tf-m/tf-m-tests):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in uoscore-uedhoc (modules/lib/uoscore-uedhoc):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in zcbor (modules/lib/zcbor):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean
    === running "git status" in zscilib (modules/lib/zscilib):
    HEAD detached at refs/heads/manifest-rev
    nothing to commit, working tree clean

  • Thanks for your support! I can see printk() log messages from nRF5340 NET core after adding the following configuration to prj.conf.

    CONFIG_CONSOLE=n
    CONFIG_SERIAL=n
    CONFIG_UART_CONSOLE=n
    # logging
    CONFIG_LOG=y
    CONFIG_LOG_PRINTK=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y

Related