This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RTT log doesn't show in Debug Terminal of emStudio v4.3

Hi,

I am using nRF SDK v16 with nRF52DK (pca10040) development board.

I've chosen to use RTT logging and I can see my app logs in JLinkRTTViewer window --- however, I can't see those logs in "Debug Terminal" of SEGGER emStudio v4.3. I can debug and progrand program the device within emStudio. I am using Ubuntu 18.04 desktop.

Does any one have similar issues and knows how to show RTT logs in the Debug Terminal?

Regards,

yf13

Parents Reply Children
  • my app is based on ble_peripharal/ble_app_template but I changed it to use s112 since I don't need s132. To confirm gain, log related config lines here:

    $ cat sdk_config.h | fgrep NRF_LOG_ | fgrep -e LOG_ENABLED -e RTT_ENABLED
    // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
    #ifndef NRF_LOG_BACKEND_RTT_ENABLED
    #define NRF_LOG_BACKEND_RTT_ENABLED 1
    // <e> NRF_LOG_ENABLED - nrf_log - Logger
    #ifndef NRF_LOG_ENABLED
    #define NRF_LOG_ENABLED 1
    
    

    So it seems that they are both ENABLED, otherwise I won't be able to see logs in JLinkRTTViewer.

    BTW, I can always see logs with JLinkRTTViewer --- initially there are extra empty lines in the viewer which I solved by set NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0. However, I've never seen logs from the DebugTerminal in the studio.

    Regards,

    yf13

  • Hi yf13,

    I assume you only have one RTT terminal viewer open and not both when you are testing this?

    Because it will not work having the JLinkRTTViewer + the Segger RTT viewer open at the same time.

  • Sorry I had clicked "verify answers" by mistake so I clicked "reject answer" as remedy...

    Yes, when using DebugTerminal, I was not using RTTViewer. 

Related