This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HOW to enable RTT log in nrf_desktop of NCS SDK?

Hi all:

I want to add RTT log in nrf_desktop of  NCS SDK.

there is no prj.conf in nrf_desktop ,then I add prj.conf file and set two options as  below,

CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y

But there is still no RTT output ,how to solve it?

nRF SDK:1.7.0

Board:nrf52kbd_nrf52832

example:nrf_desktop

best regards,

Joe

Parents
  • Hi,

    nRF Desktop application does not have a single prj.conf file. If you go to the nRF Desktop folder in nRF Connect SDK ( in my case C:\NCS\v1.7.0\nrf\applications\nrf_desktop\configuration\nrf52kbd_nrf52832) you can see multiple CONF files each for different build types. You can refer this to get a better understanding.

    The command you mentioned, CONFIG_USE_SEGGER_RTT=y, CONFIG_LOG_BACKEND_RTT=y and so on are enabled in ZDebug.conf
    When building the application using nRF connect SDK, make sure to select extended settings, and mention the build type as ZDebug in the  Extra CMake Build Options (-DCMAKE_BUILD_TYPE=ZDebug).

    Regards,

    Swathy

Reply
  • Hi,

    nRF Desktop application does not have a single prj.conf file. If you go to the nRF Desktop folder in nRF Connect SDK ( in my case C:\NCS\v1.7.0\nrf\applications\nrf_desktop\configuration\nrf52kbd_nrf52832) you can see multiple CONF files each for different build types. You can refer this to get a better understanding.

    The command you mentioned, CONFIG_USE_SEGGER_RTT=y, CONFIG_LOG_BACKEND_RTT=y and so on are enabled in ZDebug.conf
    When building the application using nRF connect SDK, make sure to select extended settings, and mention the build type as ZDebug in the  Extra CMake Build Options (-DCMAKE_BUILD_TYPE=ZDebug).

    Regards,

    Swathy

Children
No Data
Related