<?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>Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86372/building-mcuboot-separate-from-application</link><description>Hi there, 
 Our current understanding is that when building an application using NCS, the images of of MCUBoot and the application gets merged into merged.hex. 
 We however would like to be able to build MCUBoot in its own seperate project (SES/VS Code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Apr 2022 12:01:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86372/building-mcuboot-separate-from-application" /><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/362582?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 12:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3284410-2b30-4ffd-87c4-07f1415a2c2c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am glad to help.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/362538?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 09:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:050b7f7b-3bf3-42a0-80e3-aadc67a4af1f</guid><dc:creator>Epasta</dc:creator><description>&lt;p&gt;Thanks a lot for all the informations!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/362536?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 09:38:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:451c5061-c128-449e-bfd1-bc7ce5286a69</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;As I have already suggested to you, building MCUboot separately from the application is not recommended. If you still insist on doing so, you would need to ensure that configuration for the images and key matches the way they should. In addition, your cmake is invoked from the application folder instead of build folder and your environment is not setup correctly.&lt;br /&gt;The best way forward would probably be not to build MCUboot separately from the application.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/362425?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 16:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f5ebc54-70f7-4e47-98ef-2c924b1ddf86</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There is an obvious error of missing Kconfig.modules.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It is not usual to build bootloader separately. You could consider using provided MCUboot with NCS and changing it according to your particular needs.&lt;/p&gt;
&lt;p&gt;I have made a report internally in the effort to assist you.&lt;br /&gt;I&amp;#39;ll come back to you with more information.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/362138?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 14:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d0a2d60-acc6-4212-b566-be5a58be9143</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;I uninstalled ALL instances of the SDK in the toolchain manager and only installed the latest v1.9.1.&lt;/p&gt;
&lt;p&gt;Still, we have the same issue:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Microsoft Windows [Version 10.0.19043.1586]
(c) Microsoft Corporation. All rights reserved.


C:\nordic\v1.9.1\bootloader\mcuboot&amp;gt;cd boot/zephyr

C:\nordic\v1.9.1\bootloader\mcuboot\boot\zephyr&amp;gt;mkdir build &amp;amp;&amp;amp; cd build
A subdirectory or file build already exists.

C:\nordic\v1.9.1\bootloader\mcuboot\boot\zephyr&amp;gt;cmake -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


Including boilerplate (Zephyr workspace): C:/nordic/v1.9.1/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/nordic/v1.9.1/bootloader/mcuboot/boot/zephyr
-- Using NCS Toolchain 1.9.1 for building. (C:/nordic/v1.9.1/toolchain/cmake)
-- Zephyr version: 2.7.99 (C:/nordic/v1.9.1/zephyr), build: v2.7.99-ncs1-1
-- Found Python3: C:/nordic/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter
-- Found west (found suitable version &amp;quot;0.12.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
CMake Error at C:/nordic/v1.9.1/zephyr/cmake/app/boilerplate.cmake:174 (file):
  file problem creating directory:
  C:/nordic/v1.9.1/bootloader/mcuboot/boot/zephyr/Kconfig
Call Stack (most recent call first):
  C:/nordic/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/nordic/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:91 (include_boilerplate)
  CMakeLists.txt:44 (find_package)


CMake Error at C:/nordic/v1.9.1/zephyr/cmake/zephyr_module.cmake:61 (message):
  Traceback (most recent call last):

    File &amp;quot;C:/nordic/v1.9.1/zephyr/scripts/zephyr_module.py&amp;quot;, line 542, in &amp;lt;module&amp;gt;
      main()
    File &amp;quot;C:/nordic/v1.9.1/zephyr/scripts/zephyr_module.py&amp;quot;, line 508, in main
      with open(args.kconfig_out, &amp;#39;w&amp;#39;, encoding=&amp;quot;utf-8&amp;quot;) as fp:

  FileNotFoundError: [Errno 2] No such file or directory:
  &amp;#39;C:/nordic/v1.9.1/bootloader/mcuboot/boot/zephyr/Kconfig/Kconfig.modules&amp;#39;

Call Stack (most recent call first):
  C:/nordic/v1.9.1/zephyr/cmake/app/boilerplate.cmake:175 (include)
  C:/nordic/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/nordic/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:91 (include_boilerplate)
  CMakeLists.txt:44 (find_package)


-- Configuring incomplete, errors occurred!&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/362107?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 13:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c6f3c3-ecb2-4506-a912-3d19fe25b0dd</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I noticed that there is an inconsistency of using both &amp;quot;C:/nordic/v1.9.0&amp;quot; and &amp;quot;C:/nordic/v1.6.0&amp;quot;. Your Zephyr version is OK. &lt;br /&gt;What were the SDK and Toolchain versions used when creating the application?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/362086?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 12:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:420dcec4-4f2f-4ffb-87a8-2e61de9cfaa9</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Hi Sigurd, we are having similar issues. We are not able to build the bootloader. When trying to install the necessary dependencies, we get a lot of warnings:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\nordic\v1.9.0\bootloader\mcuboot&amp;gt;pip3 install --user -r scripts/requirements.txt
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
Requirement already satisfied: cryptography&amp;gt;=2.6 in c:\users\frikkiebadenhorst\appdata\roaming\python\python39\site-packages (from -r scripts/requirements.txt (line 1)) (36.0.2)
Requirement already satisfied: intelhex in c:\users\frikkiebadenhorst\appdata\roaming\python\python39\site-packages (from -r scripts/requirements.txt (line 2)) (2.3.0)
Requirement already satisfied: click in c:\users\frikkiebadenhorst\appdata\roaming\python\python39\site-packages (from -r scripts/requirements.txt (line 3)) (8.1.0)
Requirement already satisfied: cbor2 in c:\users\frikkiebadenhorst\appdata\roaming\python\python39\site-packages (from -r scripts/requirements.txt (line 4)) (5.4.2.post1)
Requirement already satisfied: cffi&amp;gt;=1.12 in c:\users\frikkiebadenhorst\appdata\roaming\python\python39\site-packages (from cryptography&amp;gt;=2.6-&amp;gt;-r scripts/requirements.txt (line 1)) (1.15.0)
Requirement already satisfied: colorama in c:\python39\lib\site-packages (from click-&amp;gt;-r scripts/requirements.txt (line 3)) (0.4.4)
Requirement already satisfied: pycparser in c:\users\frikkiebadenhorst\appdata\roaming\python\python39\site-packages (from cffi&amp;gt;=1.12-&amp;gt;cryptography&amp;gt;=2.6-&amp;gt;-r scripts/requirements.txt (line 1)) (2.21)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then after trying to build the bootloader for the nrf5340, we get errors:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\nordic\v1.9.0\bootloader\mcuboot&amp;gt;cd boot/zephyr

C:\nordic\v1.9.0\bootloader\mcuboot\boot\zephyr&amp;gt;mkdir build &amp;amp;&amp;amp; cd build
A subdirectory or file build already exists.

C:\nordic\v1.9.0\bootloader\mcuboot\boot\zephyr&amp;gt;cmake -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


Including boilerplate (Zephyr workspace): C:/nordic/v1.9.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/nordic/v1.9.0/bootloader/mcuboot/boot/zephyr
-- Using NCS Toolchain 1.9.0 for building. (C:/nordic/v1.9.0/toolchain/cmake)
-- Zephyr version: 2.7.99 (C:/nordic/v1.9.0/zephyr), build: v2.7.99-ncs1
-- Found Python3: C:/nordic/v1.9.0/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter
-- Found west (found suitable version &amp;quot;0.12.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
CMake Error at C:/nordic/v1.9.0/zephyr/cmake/app/boilerplate.cmake:174 (file):
  file problem creating directory:
  C:/nordic/v1.9.0/bootloader/mcuboot/boot/zephyr/Kconfig
Call Stack (most recent call first):
  C:/nordic/v1.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/nordic/v1.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:68 (include_boilerplate)
  C:/nordic/v1.6.0/zephyr/share/zephyr-package/cmake/zephyr_package_search.cmake:101 (include)
  C:/nordic/v1.6.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:95 (check_zephyr_package)
  CMakeLists.txt:44 (find_package)


CMake Error at C:/nordic/v1.9.0/zephyr/cmake/zephyr_module.cmake:61 (message):
  Traceback (most recent call last):

    File &amp;quot;C:/nordic/v1.9.0/zephyr/scripts/zephyr_module.py&amp;quot;, line 542, in &amp;lt;module&amp;gt;
      main()
    File &amp;quot;C:/nordic/v1.9.0/zephyr/scripts/zephyr_module.py&amp;quot;, line 508, in main
      with open(args.kconfig_out, &amp;#39;w&amp;#39;, encoding=&amp;quot;utf-8&amp;quot;) as fp:

  FileNotFoundError: [Errno 2] No such file or directory:
  &amp;#39;C:/nordic/v1.9.0/bootloader/mcuboot/boot/zephyr/Kconfig/Kconfig.modules&amp;#39;

Call Stack (most recent call first):
  C:/nordic/v1.9.0/zephyr/cmake/app/boilerplate.cmake:175 (include)
  C:/nordic/v1.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/nordic/v1.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:68 (include_boilerplate)
  C:/nordic/v1.6.0/zephyr/share/zephyr-package/cmake/zephyr_package_search.cmake:101 (include)
  C:/nordic/v1.6.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:95 (check_zephyr_package)
  CMakeLists.txt:44 (find_package)


-- Configuring incomplete, errors occurred!&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is quite frustrating, as we are experiencing a lot of issues when using NCS tools. Please advise&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/362074?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 12:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce8ab3c6-7ebb-4a31-8332-e2c7c2ad7f7c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&amp;lt;board&amp;gt; is the name of the board in your project that you want to build for. This can be your custom board or the board included in NCS.&lt;br /&gt;For example, for the custom board named reel_board&lt;/p&gt;
&lt;pre style="color:rgba(64, 64, 64, 1);display:block;font-family:SFMono-Regular, Menlo, Monaco, Consolas, &amp;#39;Liberation Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.4;margin:0;overflow:auto;padding:12px;text-indent:0;text-transform:none;white-space:pre;"&gt;Use cmake to configure a Ninja-based build system:
&lt;span style="color:rgba(51, 51, 51, 1);"&gt;cmake -B build -GNinja -DBOARD=reel_board samples/hello_world&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color:rgba(51, 51, 51, 1);"&gt;As&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf9160.html?highlight=dboard"&gt;another example&lt;/a&gt;, for nRF9160-DK the option would be&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre style="color:rgba(64, 64, 64, 1);display:block;font-family:SFMono-Regular, Menlo, Monaco, Consolas, &amp;#39;Liberation Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.4;margin:0;overflow:auto;padding:12px;text-indent:0;text-transform:none;white-space:pre;"&gt;&lt;span style="color:rgba(51, 51, 51, 1);"&gt;-DBOARD=nrf9160dk_nrf9160ns&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color:rgba(51, 51, 51, 1);"&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/361901?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 15:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a220d0-6b98-42e4-a6f0-c2b4d27cf2d2</guid><dc:creator>Epasta</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;sorry to border you but i&amp;#39;m stucked in the building procedure of the mcuboot.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m following that&amp;nbsp; documentation&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/readme-zephyr.html"&gt;Build MCUBoot with zephyr&lt;/a&gt;&amp;nbsp;but i can not undestand this command:&lt;br /&gt;&lt;span class="n"&gt;&amp;quot;cmake&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;GNinja&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;DBOARD&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;board&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;..&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="o"&gt;Which is the file that i have to put&amp;nbsp;instead of &amp;quot;borad&amp;quot;? Which is the right path?&lt;br /&gt;Every time that i insert a board i receive back from the cmc &amp;quot;Access Denied&amp;quot;.&lt;br /&gt;Can you provide me an example&amp;nbsp;about this command?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="o"&gt;Thank&amp;#39;s for your help&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building MCUBoot separate from application.</title><link>https://devzone.nordicsemi.com/thread/360859?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 14:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c799c2a-7fc0-4249-ba9e-6c0637cbfc3a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Frikkie,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;We however would like to be able to build MCUBoot in its own seperate project (SES/VS Code). This will allow us to easily customize the bootloader where needed and also access the sources:&lt;/p&gt;
&lt;p&gt;1) Is this possible? Is there an example project for this?&lt;/p&gt;[/quote]
&lt;p&gt;Yes, it should be possible to build MCUboot as a separate project. You can find more information about bootloader and mcuboot repositories on &lt;a href="https://github.com/mcu-tools/mcuboot/blob/main/docs/design.md"&gt;bootloader&lt;/a&gt;, &lt;a href="https://github.com/mcu-tools/mcuboot"&gt;mcuboot&lt;/a&gt; and &lt;a href="https://github.com/nrfconnect/sdk-mcuboot"&gt;sdk-mcuboot&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]2) Please provide information on how to set this up/configure/build MCUBoot separately.[/quote]
&lt;p&gt;This is dependent on the operating system you choose. We have extensive documentation regarding &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html"&gt;bootloader&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/readme-zephyr.html"&gt;building and using MCUboot with Zephyr&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>