Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF Logger - how to suppress unwanted messages from Nordic library functions?

Hello!

A frequent question in the forum is how to enable logging messages.

My question is exactly the opposite: I experience many NRF_LOG_INFO messages from Nordic library code (e.g. from file nrfx_ppi.c), which I don't need and which pointlessly fill up my console window (and generate unnecessary overhead).

I am using nRF5_SDK_15.0.0.

Example: despite the fact that I have set the following in sdk_config.h:

#define NRFX_PPI_CONFIG_LOG_ENABLED 0
#define NRFX_PPI_CONFIG_LOG_LEVEL   0         /* (= OFF) */

// ... as well as ...  :
#define PPI_CONFIG_LOG_ENABLED 0
#define PPI_CONFIG_LOG_LEVEL   0              /* (= OFF) */  

... I keep getting log messages from function nrfx_ppi_channel_assign() in file nrfx_ppi.c 

(in my project I use the SAADC analog-to-digital converter inside the nRF52840 chip. This in turn uses the PPI. Since everything seems to work fine, I don't need those debugging messages anymore. Instead I am more interested in debugging messages from other modules).

Can anyone please help me suppress these unwanted messages?

Thanks a lot!

Parents Reply Children
No Data
Related