How to prevent boot info being sent out over UART on initial start up

When I have the UART connected to Terminal, and I reboot my hardware, I get all the following information sent out:

*** Booting Zephyr OS build v3.2.99-ncs1 ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000

I am setting up some factory testing, where the result of the testing will get sent to my terminal software after each device has been tested, but I don't want all the above information clogging up my file.

Is there an easy way to disable this information from being printed to the UART?

Regards,

Mike

  • Hi

    We need to turn of logging from the bootloader also. To do that do the following:

    If you select 

    And then in go into your project view in VScode, into the child_image folder and create a file named for example mcuboot.conf

    and add the following line:

    CONFIG_LOG=n

    And then do a prestine build, we should not see any logs. 

    You can also verify this by checking the out .config file in the output for mcuboot

    Regards

    Runar

Related