<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MCUBOOT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96363/mcuboot</link><description>Hi 
 
 I want to add MCUBOOT to my project (which has been well compiled), so I add below configs to prj.conf: 
 
 
 
 
 
 
 
 But I get a lot of CONFIG_XXX undeclared here error, 
 
 
 How should I track and solve this problem? 
 
 Thank you! 
 
 lo</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Feb 2023 13:38:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96363/mcuboot" /><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/410372?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 13:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df3e4d5e-77c8-41a4-b519-1fde7296c9dd</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;How Kconfig configuration files, fragments, and devicetree overlays can be passed to child images: &lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/multi_image/index.html#image-specific-variables"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/multi_image/index.html#image-specific-variables&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/410234?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 07:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f534d6-d1a7-495c-b1b2-72dfc2578c0f</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;Thank you, is there related link for this?&lt;/p&gt;
&lt;div id="phraseJoinewrskdfdswerhnyikyofd" data-v-app=""&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/410090?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 13:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1620dc15-45ba-40d0-8a0e-0c2e6e57e4e1</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Add a folder to your project called &amp;quot;child_image&amp;quot;, and add a conf file named mcuboot.conf to this folder.&lt;/p&gt;
&lt;p&gt;In mcuboot.conf, you should disable all the configs for the modules.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/409989?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 07:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f4b1388-8b66-451c-979f-4fcc83eca085</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;Yes, it already was, but it didn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/409851?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 12:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb3673d1-231c-4bf1-9628-c51e6107ef2f</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;How do the CMakeLists.txt files for the extra modules look? You could add a config for each module in your project&amp;#39;s Kconfig file, and in each module&amp;#39;s CMakeLists.txt file, you can add an if-block around the contents:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(CONFIG_MODULE_NAME)

    //contents

endif()&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/409270?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 07:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e526c4b3-5fc9-439b-8aff-0e85156e359d</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/oivind"&gt;&amp;Oslash;ivind&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1676013396519v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I found that an extra module is also built (as shown above) with errors during the mcuboot_subimage build step.&lt;/p&gt;
&lt;p&gt;But in fact, this &lt;span&gt;extra module should only be built in my application as I specify this extra module to be built in application CMakefiles.txt (located in my application root directory):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1676013810311v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would the value of ZEPHYR_EXTRA_MODULES various defined in application CMakefile.txt be also available to mcuboot sub-project?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;How to handle it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;div id="phraseJoinewrskdfdswerhnyikyofd" data-v-app=""&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/409058?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 07:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11bdfa47-1318-4d04-8e69-c92448c10067</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/oivind"&gt;&amp;Oslash;ivind&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Are there any updates or comments?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div id="phraseJoinewrskdfdswerhnyikyofd" data-v-app=""&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/408722?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 02:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf041dd-5bfe-40a6-8689-452066e4c975</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;Have not mcuboot.conf&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;build log: &lt;/strong&gt;(Sorry to directly paste the log here dues to can&amp;#39;t insert-&amp;gt;code in menu)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Building hprod&lt;br /&gt;west build --build-dir d:\projects\work\code\hproj\hprod\build d:\projects\work\code\hproj\hprod&lt;/p&gt;
&lt;p&gt;[0/95] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;&lt;br /&gt;[1/14] Linking C static library zephyr\kernel\libkernel.a&lt;br /&gt;[2/14] Building C object modules/adapters/CMakeFiles/..__..__..__hproj__hprod__libs_ncs__adapters__zephyr.dir/ble_adp.c.obj&lt;br /&gt;FAILED: modules/adapters/CMakeFiles/..__..__..__hproj__hprod__libs_ncs__adapters__zephyr.dir/ble_adp.c.obj &lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;d:\projects\work\code\ncs\toolchains\v2.1.0\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;d:\projects\work\code\hproj\hprod\build&amp;#39;&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;
&lt;div id="phraseJoinewrskdfdswerhnyikyofd" data-v-app=""&gt;
&lt;div class="content-trans-loading-wsrfhedsoufheqiwrhew" style="left:560px;top:727px;" data-v-d0b69d7e=""&gt;
&lt;div id="my-loading-box-wsrfhedsoufheqiwrhew" data-v-24f34e3c="" data-v-d0b69d7e=""&gt;
&lt;div class="icon-box-wsrfhedsoufheqiwrhew" data-v-e2705234="" data-v-24f34e3c=""&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="phraseJoinewrskdfdswerhnyikyofd"&gt;&lt;/div&gt;
&lt;div id="phraseJoinewrskdfdswerhnyikyofd"&gt;&lt;/div&gt;
&lt;div id="phraseJoinewrskdfdswerhnyikyofd"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/408642?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2023 15:34:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b617cba2-c25e-4ec8-a978-f2478f7f5ffd</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Thank you, could I also see the full build log? And the mcuboot.conf file if you have one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/408416?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2023 02:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7a13d19-c03e-4feb-ac6e-84484ae46f81</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;NCS version: v2.1.0&lt;/p&gt;
&lt;p&gt;pri.conf content:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_PERIPHERAL=y

CONFIG_BT_SMP=y
CONFIG_BT_BONDING_REQUIRED=y
CONFIG_BT_SMP_SC_PAIR_ONLY=y
CONFIG_BT_SMP_APP_PAIRING_ACCEPT=y
CONFIG_BT_PRIVACY=n
CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=y
CONFIG_BT_KEYS_OVERWRITE_OLDEST=y

CONFIG_BT_MAX_PAIRED=20
CONFIG_BT_MAX_CONN=20
CONFIG_BT_USER_PHY_UPDATE=y
CONFIG_BT_AUTO_PHY_UPDATE=n

CONFIG_BT_GATT_DM=y
CONFIG_BT_GATT_CLIENT=y

CONFIG_BT_DEVICE_NAME=&amp;quot;SA-&amp;quot;
CONFIG_BT_DEVICE_NAME_DYNAMIC=y

CONFIG_BT_SETTINGS=y

CONFIG_BT_DIS=y
CONFIG_BT_DIS_SETTINGS=y
CONFIG_BT_DIS_MODEL=&amp;quot;unkown model&amp;quot;
CONFIG_BT_DIS_MANUF=&amp;quot;nukown manuf&amp;quot;
CONFIG_BT_DIS_SERIAL_NUMBER=y
CONFIG_BT_DIS_SERIAL_NUMBER_STR=&amp;quot;0&amp;quot;
CONFIG_BT_DIS_SW_REV=y
CONFIG_BT_DIS_SW_REV_STR=&amp;quot;0.1&amp;quot;
CONFIG_BT_DIS_FW_REV=y
CONFIG_BT_DIS_FW_REV_STR=&amp;quot;1.0&amp;quot;
CONFIG_BT_DIS_HW_REV=y
CONFIG_BT_DIS_HW_REV_STR=&amp;quot;1.0&amp;quot;

CONFIG_BT_BAS=y
CONFIG_BT_BAS_CLIENT=y
CONFIG_BT_GATTP=y
CONFIG_BT_ANCS_CLIENT=y
CONFIG_BT_NUS=y
CONFIG_BT_NUS_CLIENT=y

CONFIG_LOG=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_BT_LOG_LEVEL_ERR=y
CONFIG_DEBUG_THREAD_INFO=y
CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_LOG_BUFFER_SIZE=4096

CONFIG_LOG_PRINTK=y
CONFIG_UART_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y


CONFIG_HEAP_MEM_POOL_SIZE=10240
CONFIG_MAIN_STACK_SIZE=4096

CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
CONFIG_NVS_LOG_LEVEL_WRN=y

CONFIG_PINCTRL=y
CONFIG_GPIO=y
CONFIG_PWM=y

CONFIG_MINIMAL_LIBC_RAND=y
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=6144


CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y

CONFIG_NFCT_PINS_AS_GPIOS=y
CONFIG_PM_DEVICE=y

CONFIG_BT_FILTER_ACCEPT_LIST=y
CONFIG_BT_L2CAP_TX_BUF_COUNT=10


CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_CONN_RSSI=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y

CONFIG_TX_PWR=6
CONFIG_ADV_INTERVAL_MIN=990
CONFIG_ADV_INTERVAL_MAX=1010
CONFIG_CONN_INTERVAL_MIN=550
CONFIG_CONN_INTERVAL_MAX=650
CONFIG_CONN_TIMEOUT=15000
CONFIG_SCAN_INTERVAL=100
CONFIG_SCAN_WINDOW=15

CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_CREATE_CONN_TIMEOUT=5
CONFIG_CLI_MOD=y
CONFIG_SPIIC=y
CONFIG_UART_ADP=y
CONFIG_NRFX_UARTE0=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y



# Add to supporting MCUBOOT (begin)

# Enable mcumgr.
CONFIG_MCUMGR=y

# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y

CONFIG_MCUMGR_SMP_BT=y
CONFIG_MCUMGR_SMP_BT_AUTHEN=n

# Add to supporting MCUBOOT (end)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It could be compiled without errors if &lt;strong&gt;# Add to supporting MCUBOOT&lt;/strong&gt;&amp;nbsp;part is deleted.&lt;/p&gt;
&lt;div id="phraseJoinewrskdfdswerhnyikyofd" data-v-app=""&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/408319?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 14:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d303fd58-149b-431c-a274-bf387a35dad3</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which version of the nRF Connect SDK are you using?&lt;/p&gt;
&lt;p&gt;Could I see the full prj.conf file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>