<?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>Warning messages generated when west build MCUbool sample code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104670/warning-messages-generated-when-west-build-mcubool-sample-code</link><description>When I use &amp;quot;west build&amp;quot; command to build C:\ncs\v2.4.2\bootloader\mcuboot\samples\zephyr\hello-world sample code. The following warning messages is generated. Do you have any suggestion to solve this issue?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Nov 2023 00:43:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104670/warning-messages-generated-when-west-build-mcubool-sample-code" /><item><title>RE: Warning messages generated when west build MCUbool sample code</title><link>https://devzone.nordicsemi.com/thread/453865?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 00:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24bbbfaa-6297-4978-b85b-28ce47a6b4bd</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I have fixed mcuboot_smp_custom_key build error by modifying CMakeLists.txt as follows.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cmake_minimum_required(VERSION 3.20.0)

set(mcuboot_CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 y)
set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE \&amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/custom_key_dir/custom_priv.pem\&amp;quot;)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(mcuboot_smp_custom_key)

target_sources(app PRIVATE src/main.c)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Warning messages generated when west build MCUbool sample code</title><link>https://devzone.nordicsemi.com/thread/453852?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 22:45:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3057e695-1a62-44f1-a5b5-d10becdb921d</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Snowuyl,&lt;/p&gt;
[quote user="snowuyl"]I asked this question when I use ncs v2.3.0. Now I use ncs v2.4.2.[/quote]
&lt;p&gt;The warning still means exactly the same thing it meant in v2.3.0, so I don&amp;#39;t think there is a need to ask this questions again.&lt;/p&gt;
&lt;p&gt;If you had doubts or questions about some specific detail being changed between NCS v2.3.0 and v.2.4.2, you could make your question a bit longer and specify that.&lt;/p&gt;
[quote user="snowuyl"]I tried to build mcuboot_smp_custom_key on ncs v2.4.2. But west build failed.[/quote]
&lt;p&gt;Is that why you created this case? I see that you created another case for it as well, and an issue for it on GitHub. You didn&amp;#39;t mention that here, and I don&amp;#39;t really think that&amp;#39;s okay. When you create so many cases per week, I don&amp;#39;t think you need the attention of 3 engineers for an issue. We are glad to answer you, but please don&amp;#39;t occupy us too much! Then we can help more people.&lt;/p&gt;
&lt;p&gt;Still, I discussed the build issue with Sigurd, we found a solution, updated the repo, and I see that you&amp;#39;ve closed your issue on GitHub now. Glad to see that!&lt;/p&gt;
&lt;p&gt;In general, it would be fair towards us if you spend more time on researching your issues, and preparing your questions. I hope you could do that! Thanks.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Warning messages generated when west build MCUbool sample code</title><link>https://devzone.nordicsemi.com/thread/451400?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 02:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea9b7487-5542-4af4-99e8-568bc0761a0b</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3718.mcuboot_5F00_smp_5F00_custom_5F00_key.zip"&gt;devzone.nordicsemi.com/.../3718.mcuboot_5F00_smp_5F00_custom_5F00_key.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Warning messages generated when west build MCUbool sample code</title><link>https://devzone.nordicsemi.com/thread/451399?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 02:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08fb54d8-08c0-4fc4-8eb9-2090890c43e6</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I asked this question when I use ncs v2.3.0. Now I use ncs v2.4.2. I tried to build mcuboot_smp_custom_key on ncs v2.4.2. But west build failed.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\ncs\v2.4.2\nrf\samples\mcuboot_smp_custom_key&amp;gt;west build -b nrf5340dk_nrf5340_cpuapp
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/v2.4.2/nrf/samples/mcuboot_smp_custom_key
-- CMake version: 3.20.5
-- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.4.2/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.2/zephyr)
-- Found west (found suitable version &amp;quot;1.0.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found BOARD.dts: C:/ncs/v2.4.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: C:/ncs/v2.4.2/nrf/samples/mcuboot_smp_custom_key/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/ncs/v2.4.2/nrf/samples/mcuboot_smp_custom_key/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/ncs/v2.4.2/nrf/samples/mcuboot_smp_custom_key/build/zephyr/dts.cmake

warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value &amp;#39;y&amp;#39; but got the
value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


warning: UART_INTERRUPT_DRIVEN (defined at boards/shields\sparkfun_sara_r4\Kconfig.defconfig:24, boards/shields\wnc_m14a2a\Kconfig.defconfig:17, soc/arm\quicklogic_eos_s3\Kconfig.defconfig:17, drivers/serial/Kconfig:72) has direct dependencies (NETWORKING &amp;amp;&amp;amp; SHIELD_SPARKFUN_SARA_R4) || (NETWORKING &amp;amp;&amp;amp; SHIELD_WNC_M14A2A) || (SERIAL &amp;amp;&amp;amp; SOC_EOS_S3) || (SERIAL_SUPPORT_INTERRUPT &amp;amp;&amp;amp; SERIAL) with value n, but is currently being y-selected by the following symbols:
 - UART_MCUMGR (defined at drivers/console/Kconfig:190), with value y, direct dependencParsing C:/ncs/v2.4.2/zephyr/Kconfig
Loaded configuration &amp;#39;C:/ncs/v2.4.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;C:/ncs/v2.4.2/nrf/samples/mcuboot_smp_custom_key/prj.conf&amp;#39;
ies CONSOLE (value: y), and select condition CONSOLE (value: y)

error: Aborting due to Kconfig warnings

CMake Error at C:/ncs/v2.4.2/zephyr/cmake/modules/kconfig.cmake:339 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/ncs/v2.4.2/nrf/cmake/modules/kconfig.cmake:29 (include)
  C:/ncs/v2.4.2/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
  C:/ncs/v2.4.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.4.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE&amp;#39; -DWEST_PYTHON=C:/ncs/toolchains/31f4    4403e35/opt/bin/python.exe &amp;#39;-BC:\ncs\v2.4.2\nrf\samples\mcuboot_smp_custom_key\build&amp;#39; -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp &amp;#39;-SC:\ncs\v2.4.2\nrf\samples\mcuboot_smp_custom_key&amp;#39;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Procedures to reproduce this issue are as follows.&lt;/p&gt;
&lt;p&gt;1. Unzipping mcuboot_smp_custom_key.zip to C:\ncs\v2.4.2\nrf\samples folder.&lt;/p&gt;
&lt;p&gt;2. cd C:\ncs\v2.4.2\nrf\samples\mcuboot_smp_custom_key&lt;/p&gt;
&lt;p&gt;3. west build -b nrf5340dk_nrf5340_cpuapp&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Warning messages generated when west build MCUbool sample code</title><link>https://devzone.nordicsemi.com/thread/451150?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 22:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a41f59a-9913-4267-9023-2489d9d8f258</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Snowuyl,&lt;/p&gt;
&lt;p&gt;I remember you asking this before! You might have forgotten. Here is your previous case on the same question:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102296/warning-using-default-mcuboot-key-it-should-not-be-used-for-production"&gt;WARNING: Using default MCUBoot key, it should not be used for production&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It links to a good explainer on this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is also a section on it in our docs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/imgtool.html#incorporating-the-public-key-into-the-code"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/imgtool.html#incorporating-the-public-key-into-the-code&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;There is a development key distributed with MCUboot that can be used for testing. Since this private key is widely distributed, it should never be used for production. Once you have generated a production key, as described above, you should replace the public key in the bootloader with the generated one.&amp;quot;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t replace that public key, anyone will be able to create a firmware update for your device, signed with the default private key.&lt;/p&gt;
&lt;p&gt;To mitigate this, you replace the default key with your own. See the docs, or my colleague&amp;#39;s sample: &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures/mcuboot_smp_custom_key"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures/mcuboot_smp_custom_key&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;
&lt;p&gt;PS: We are happy to answer your questions but I would like to encourage you to increase your own research and effort before posting a question to DevZone.&amp;nbsp;You are opening a large number of cases already, no need to double them! Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>