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

How to disable logging for just one driver module?

Hello,

i am evaluating the nRF52840 on the nRF52840-Preview-DK. I have connected an ADC to the devkit via SPI and my code reads data from the ADC via GPIOTE, PPI and SPIM.

Vie UART i can see logging information like this:

<info> app: Allocated channel: 0.
<info> app: Function: nrfx_ppi_channel_alloc, error code: NRF_SUCCESS.
<info> app: Assigned channel: 0, event end point: 40006100, task end point: 40003010.
<info> app: Function: nrfx_ppi_channel_assign, error code: NRF_SUCCESS.
<info> app: Fork assigned channel: 0, task end point: 1073778696.
<info> app: Function: nrfx_ppi_channel_fork_assign, error code: NRF_SUCCESS.
<info> app: Function: nrfx_ppi_channel_enable, error code: NRF_SUCCESS.

Obviously NRF_LOG_ENABLE is set to 1 and NRF_LOG_DEFAULT_LEVEL is set to Info in sdk_config.h. At the moment i try to disable the logging from the PPI module. I have tried to set NRFX_PPI_CONFIG_LOG_ENABLED to 0 and also PPI_CONFIG_LOG_ENABLED to 0. But still logging from PPI is visible.

Any hints what i am doing wrong?

And whats the difference between NRFX_PPI_CONFIG_LOG_ENABLED and PPI_CONFIG_LOG_ENABLED ?

TIA

Christian

Related