Hello,
I would like to turn off the logging to UART0 completely on my custom device.
In the past, I have been able to do this using various config options and reduce the power considerably but I have recently added FOTA support and MCUBOOT to my application which is now logging it's own information.
370700 - *** Booting Zephyr OS build v2.1.99-ncs1-3-g7ddab664b04b *** 633 - [00:00:00.004,241] [0m<inf> mcuboot: Starting bootloader[0m 639 - [00:00:00.009,765] [0m<inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x1[0m 649 - [00:00:00.018,920] [0m<inf> mcuboot: Boot source: none[0m 654 - [00:00:00.023,925] [0m<inf> mcuboot: Swap type: none[0m 931 - [00:00:00.279,724] [0m<inf> mcuboot: Bootloader chainload address offset: 0x10000[0m 939 - [00:00:00.286,804] [0m<inf> mcuboot: Jumping to the first image slot[0m
This is the only logging that occurs on my device. SPM has SERIAL set to 'n' and my non-secure application has:
####################### # Enable options for serial drivers CONFIG_SERIAL=n # Enable stdout for printfs. CONFIG_STDOUT_CONSOLE=n # Global switch for the logger, when turned off log calls will not be compiled in. CONFIG_LOG=n CONFIG_LOG_DEFAULT_LEVEL=4 CONFIG_UART_0_NRF_UARTE=n # Outputs a banner to the console device during boot up. CONFIG_BOOT_BANNER=n # Outputs debugging printk calls to the console instead of suppressing them. CONFIG_PRINTK=n ######################
As well as this bit of code at the start of main:
#if !CONFIG_PRINTK { NRF_UARTE0_NS->TASKS_STOPTX = 1; NRF_UARTE0_NS->TASKS_STOPRX = 1; NRF_UARTE0_NS->ENABLE = 0; } #endif
Is there a way to disable this extra logging information? I have tried using CONFIG_IMG_MANAGER_LOG_LEVEL_OFF=y which has not worked. I'm surprised the BOOT_BANNER is appearing again even with that option disabled as part of my old method of UART0 shutdown.