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

NRF Logs not working

Hello,

I want to add/enable logs in DFU secure bootloader exaple. For that, I have enabled following macros which are needed.

NRF_LOG_ENABLED, NRF_ATFIFO_CONFIG_LOG_ENABLED, NRF_LOG_LEVEL, NRF_LOG_DEFAULT_LEVEL, NRF_LOG_FILTER

After enabling all macros, i am not getting logs on Debug Terminal.

I am using nRF5_SDK_15.3.0_59ac345

Parents
  • Hi,

    Which bootloader project are you using? If you use the "normal" DFU project (e.g. pca10040_ble) this does not include logger module files. That is however added to the _debug projects (e.g. pca10040_ble_debug), which also has the appropriate sdk_config.h configuration and a lower bootloader start address to accommodate the larger size of the bootloader. I recomend you use a _debug example to get RTT logging out of the box.

Reply
  • Hi,

    Which bootloader project are you using? If you use the "normal" DFU project (e.g. pca10040_ble) this does not include logger module files. That is however added to the _debug projects (e.g. pca10040_ble_debug), which also has the appropriate sdk_config.h configuration and a lower bootloader start address to accommodate the larger size of the bootloader. I recomend you use a _debug example to get RTT logging out of the box.

Children
Related