RTT Viwer can't see log messages of nRF5340 NET core

Procedure to reproduce this issue is as follows.
1. cd D:\ncs\v2.3.0\nrf\samples\nrf5340\multiprotocol_rpmsg
2. west build -b nrf5340dk_nrf5340_cpuapp
3. west flash
4. Lauching RTT viwer and selecting NRF5340_XXAA_NET

5. RTT viwer shows "LOG: RTT Viewer connected" but can't see any log messags from nRF5340 NET core.

Parents Reply Children
  • west build -b nrf5340dk_nrf5340_cpuapp

    Does this build successfully for you? Since you are building this for appcore, it might result in error. It will work when building for net core.

    -Priyanka

  • Building is okay. Maybe you can provide me another sample that can show messages from net core.

  • Could you try building the same with cpunet instead of cpuapp and then check?

    -Priyanka

  • I try to build for net core. But west build failed with the following log messaging.

    D:\ncs\v2.3.0\nrf\samples\nrf5340\multiprotocol_rpmsg>west build -b nrf5340dk_nrf5340_cpunet
    -- west build: generating a build system

    ...

    [286/296] Linking C executable zephyr\zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && D:\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf && cmd.exe /C "cd /D D:\ncs\v2.3.0\nrf\samples\nrf5340\multiprotocol_rpmsg\build\zephyr && D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo ""
    d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr\zephyr_pre0.elf section `rodata' will not fit in region `FLASH'
    d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: region `FLASH' overflowed by 4252 bytes
    d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/hal_nordic/nrf_802154/libnrf-802154-platform.a(nrf_802154_spinel_backend_ipc.c.obj): in function `spinel_packet_send_thread_fn':
    D:/ncs/v2.3.0/zephyr/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c:132: undefined reference to `nrf_802154_serialization_error'
    d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/nrfxlib/nrf_802154/nrf_802154/serialization/libnrf-802154-serialization.a(nrf_802154_spinel.c.obj): in function `nrf_802154_serialization_init':
    D:/ncs/v2.3.0/nrfxlib/nrf_802154/serialization/src/nrf_802154_spinel.c:87: undefined reference to `nrf_802154_serialization_error'
    d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/nrfxlib/nrf_802154/nrf_802154/serialization/libnrf-802154-serialization.a(nrf_802154_spinel.c.obj): in function `nrf_802154_spinel_encoded_packet_received':
    D:/ncs/v2.3.0/nrfxlib/nrf_802154/serialization/src/nrf_802154_spinel.c:128: undefined reference to `nrf_802154_serialization_error'
    d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/nrfxlib/nrf_802154/nrf_802154/serialization/libnrf-802154-serialization.a(nrf_802154_spinel_net.c.obj): in function `local_transmitted_frame_ptr_free':
    D:/ncs/v2.3.0/nrfxlib/nrf_802154/serialization/src/nrf_802154_spinel_net.c:79: undefined reference to `nrf_802154_serialization_error'
    d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/nrfxlib/nrf_802154/nrf_802154/serialization/libnrf-802154-serialization.a(nrf_802154_spinel_net.c.obj): in function `nrf_802154_cca_done':
    D:/ncs/v2.3.0/nrfxlib/nrf_802154/serialization/src/nrf_802154_spinel_net.c:101: undefined reference to `nrf_802154_serialization_error'
    d:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/nrfxlib/nrf_802154/nrf_802154/serialization/libnrf-802154-serialization.a(nrf_802154_spinel_net.c.obj):D:/ncs/v2.3.0/nrfxlib/nrf_802154/serialization/src/nrf_802154_spinel_net.c:123: more undefined references to `nrf_802154_serialization_error' follow
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'D:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' --build 'D:\ncs\v2.3.0\nrf\samples\nrf5340\multiprotocol_rpmsg\build'

  • Hi,

    I will try discussing this internally with my colleagues and get back to you. Please expect a slight delay as we are short staffed at the moment owing to the summer holidays here in Norway.

    Thank you for your patience and understanding.

    -Priyanka

Related