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.

Parents Reply
  • Thanks for your reply! I didn't get same result.

    00> *** Booting Zephyr OS build v3.2.99-ncs2 ***
    00> Start[[00:00:00.002,563] <inf> bt_hci_raw: Bluetooth enabled in RAW mode
    00> [00:00:00.002,868] <err> os: ***** BUS FAULT *****
    00> [00:00:00.002,899] <err> os: Precise data bus error
    00> [00:00:00.002,899] <err> os: BFAR Address: 0x20070000
    00> [00:00:00.002,929] <err> os: r0/a1: 0x210026c0 r1/a2: 0x00000001 r2/a3: 0x00000001
    00> [00:00:00.002,929] <err> os: r3/a4: 0x20070000 r12/ip: 0x01025d7d r14/lr: 0x0102a4c9
    00> [00:00:00.002,960] <err> os: xpsr: 0x69000000
    00> [00:00:00.002,960] <err> os: Faulting instruction address (r15/pc): 0x0102d392
    00> [00:00:00.002,990] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
    00> [00:00:00.003,021] <err> os: Current thread: 0x21008000 (unknown)
    00> [00:00:00.285,186] <err> fatal_error: Resetting system
    00> *** Booting Zephyr OS build v3.2.99-ncs2 ***
    00> Start[[00:00:00.002,593] <inf> bt_hci_raw: Bluetooth enabled in RAW mode
    00> [00:00:00.002,868] <err> os: ***** BUS FAULT *****
    00> [00:00:00.002,899] <err> os: Precise data bus error
    00> [00:00:00.002,899] <err> os: BFAR Address: 0x20070000[0m
    00> [00:00:00.002,929] <err> os: r0/a1: 0x210026c0 r1/a2: 0x00000001 r2/a3: 0x00000001
    00> [00:00:00.002,929] <err> os: r3/a4: 0x20070000 r12/ip: 0x01025d7d r14/lr: 0x0102a4c9
    00> [00:00:00.002,960] <err> os: xpsr: 0x69000000
    00> [00:00:00.002,960] <err> os: Faulting instruction address (r15/pc): 0x0102d392
    00> [00:00:00.003,021] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
    00> [00:00:00.003,051] <err> os: Current thread: 0x21008000 (unknown)
    00> [00:00:00.285,186] <err> fatal_error: Resetting system[0m

    Procedure to reproduce this issue is as follows.

    1. cd D:\ncs\v2.3.0\nrf\samples\peripheral_lbs_rtt

    2. west build -b nrf5340dk_nrf5340_cpuapp

    3. west flash --recover

    4. Launching RTT Viewer and rebooting nRF5340 board.

    5. RTT Viewer shows "BUS FAULT".

Children
  • I don't understand why you get this MPU fault when you build the same project as I did. I did not get this error.

    Could you run the command below to see if you have any modified files in the SDK tree? 

    $ west forall -c "git status"

  • 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
            modified:   samples/bluetooth/hci_rpmsg/prj.conf
            modified:   samples/bluetooth/hci_rpmsg/src/main.c
    
    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

  • Please refer to west_forall_git_status.txt for result of the following command.

    west forall -c "git status"

Related