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
  • I can't build successfully after I add the following configuration to prj.conf.

    CONFIG_LOG=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_PRINTK=y

    Log messages of west build are as follows.

    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 4288 bytes
    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'

    D:\ncs\v2.3.0\nrf\samples\nrf5340\multiprotocol_rpmsg>

  • Does the FLASH overflow error occur only when you enable CONFIG_PRINTK ?

    You might need to enable CONFIG_PRINTK, CONFIG_CONSOLE, and CONFIG_RTT_CONSOLE as well.

    -Priyanka

  • Hi,

    I see that you have an ongoing conversation with a similar issue in this thread. So please continue the conversation there and feel free to close this ticket.

    This will help future seekers and keep Devzone clean.

    -Priyanka

Related