mcuboot customer config

Hi, 

I want to disable the UART of  MCUBOOT to reduce power consumption. I searched in the DevZone and got the answer as below.

I followed the answer above, and created a test project  based on the sample that zephyr/samples/hello_world.

The modification as below.

prj,conf 

CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n

CONFIG_BOOTLOADER_MCUBOOT=y

CMakeLists.txt

# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

set(mcuboot_CONF_FILE prj.conf ${CMAKE_CURRENT_LIST_DIR}/mcuboot.conf)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)

target_sources(app PRIVATE src/main.c)

nrf5340dk_nrf5340_cpuapp.overlay

&uart0 {
    status = "disabled";    
};

mcuboot.conf

CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n

project directory 

But I got a build error. According to the build log, "file STRINGS file "D:/NCS/v1.7.1/nrf/modules/mcuboot/prj.conf" cannot be read."

There is not any  prj.conf file in "NCS/v1.7.1/nrf/modules/mcuboot/" actually.

Am I missing something?

Related