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

NRF_LOG Printing

Hi, Everyone

My development environment is  PCA10040 (nRF5_SDK_14.2.0_17b948a) with IAR

The printf statement is output to the terminal (Teraterm) using the UART. However, the NRF_LOG_ statement is not output.

How Is it output  NRF_LOG in IAR environment?

Parents
  • Hi,

    Nrf_log features many configuration options, including the possibility to disable the module and change backends between UART and RTT. If you have a look at the ble_app_hrs example in SDK14.2.0 you can see the settings which give working nrf_log output to UART. The settings are in sdk_config.h which is set up so that you may edit it with the CMSIS configurator in nRF5_SDK_14.2.0_17b948a/external_tools/cmsisconfig. Most likely logging is disabled, the wrong backend is enabled or no backend is enabled.

    Best regards,
    Rune Holmgren

     

     

Reply
  • Hi,

    Nrf_log features many configuration options, including the possibility to disable the module and change backends between UART and RTT. If you have a look at the ble_app_hrs example in SDK14.2.0 you can see the settings which give working nrf_log output to UART. The settings are in sdk_config.h which is set up so that you may edit it with the CMSIS configurator in nRF5_SDK_14.2.0_17b948a/external_tools/cmsisconfig. Most likely logging is disabled, the wrong backend is enabled or no backend is enabled.

    Best regards,
    Rune Holmgren

     

     

Children
Related