<?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 as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86125/building-mcuboot-as-a-separate-hex-bin-file</link><description>Hi, 
 
 I am to understand that mcuboot &amp;amp; application are built in a single .hex file generated in build folder. I need to compile mcuboot separately &amp;amp; not as a part of firmware file. Kindly suggest how to do this &amp;amp; what are the dependencies that will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Mar 2022 07:21:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86125/building-mcuboot-as-a-separate-hex-bin-file" /><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/360162?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 07:21:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb065ab-72db-4522-9c33-5f10172d93d0</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As far as I know, the nRF Connect for VS Code extension does not have any GUI functions (buttons) for flashing specific hex-files. &lt;br /&gt;You should be able to use a terminal from VS Code, so you could call the command I mentioned below in that terminal.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/360149?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 06:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a3e2391-bb82-4e18-8bfc-0592e1737030</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;How do I flash this file &amp;quot;build/mcuboot/zephyr/zephyr.hex&amp;quot; using VSCode..?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359950?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 09:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daa59770-dcb2-4bf7-8d0e-61a45c9f733d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="Ubaid_M"]How do I flash mcuboot build file using&amp;nbsp;nrfjprog via an attached debugger..?&lt;br /&gt;Please help me with an example..![/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --sectorerase --program build/mcuboot/zephyr/zephyr.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359944?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 09:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c52a437-4ff0-415b-bab1-f6a68a6ff932</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will look at alternatives 2 &amp;amp; 3 you suggested.&lt;br /&gt;&lt;br /&gt;Meanwhile, can you also help me with:&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/86125/building-mcuboot-as-a-separate-hex-bin-file/359933#359933"]1, Using nrfjprog via an attached debugger[/quote]
&lt;p&gt;&lt;strong&gt;How do I flash mcuboot build file using&amp;nbsp;nrfjprog via an attached debugger..?&lt;br /&gt;Please help me with an example..!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359933?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 08:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17919111-95b8-441d-9ca9-36b5f00e2d45</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can update the bootloader in multiple ways:&lt;/p&gt;
&lt;p&gt;1, Using nrfjprog via an attached debugger&lt;/p&gt;
&lt;p&gt;2. Using serial recovery&lt;/p&gt;
&lt;p&gt;3. Using an SMP Server&lt;/p&gt;
&lt;p&gt;For alternative 2 and 3, you will need another bootloader to run before MCUBoot. This is the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/samples/bootloader/README.html?highlight=nsib"&gt;nRF Secure Immutable Bootloader (NSIB)&lt;/a&gt;.&lt;br /&gt;Then you must add MCUBoot as an &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/ug_bootloader_adding.html#ug-bootloader-adding-upgradable"&gt;Upgradable Bootloader&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I made a sample on how to do this using the SMP server for &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/85539/update-mcuboot-with-smp"&gt;this case&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359877?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 17:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:488d6b5c-4eaa-49eb-9e8c-b8bc3a8f56bd</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/86125/building-mcuboot-as-a-separate-hex-bin-file/359779#359779"]Why do you need to flash the bootloader alone?[/quote]
&lt;p&gt;Simply put, It is the way my product is supposed to work, There is a software architecture already laid out.&lt;br /&gt;&lt;br /&gt;As per that I need to&amp;nbsp;flash mcuboot file independently when the requirement is so.&lt;br /&gt;Likewise flash application file independently&amp;nbsp;&lt;span&gt;when the requirement is so.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Hence kindly suggest how I can flash mcuboot build file on my nordic board.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359876?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 17:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57bb4ff9-eb7d-43fa-814a-2da6229e42fd</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/86125/building-mcuboot-as-a-separate-hex-bin-file/359779#359779"]Why do you need to flash the bootloader alone?[/quote]
&lt;p&gt;Simply put, It is the way my product is supposed to work, There is an architecture already laid out.&lt;br /&gt;&lt;br /&gt;As per that I need to&amp;nbsp;flash mcuboot file independently when the requirement is so.&lt;br /&gt;Likewise flash application file independently&amp;nbsp;&lt;span&gt;when the requirement is so.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Hence kindly suggest how I can flash mcuboot build file on my nordic board.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359779?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 11:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7de99080-479d-48d4-b1d4-0ef68ec79173</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To make sure that I do not misunderstand your intention, I have a return question for this:&lt;/p&gt;
&lt;p&gt;Why do you need to flash the bootloader alone?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359763?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 10:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:647734e6-c547-4409-98d2-ea3fc57a6f29</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks, that clears things for me.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;My follow up question is can I flash mcuboot zephyr.hex on the board...?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/86125/building-mcuboot-as-a-separate-hex-bin-file/359748#359748"]build/mcuboot/zephyr/zephyr.hex: only mcuboot[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do I update the mcuboot file on the board..?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359748?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 09:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcdd9109-4a9d-46ce-85fc-6870084b070f</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The merged.hex file is the file referenced in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/ug_multi_image.html#default-configuration"&gt;Multi-image builds, Default configuration&lt;/a&gt;: &lt;br /&gt;&amp;quot;When building the child image from the source or using a prebuilt HEX file, the build system merges the HEX files of both the parent and child image, so that they can be programmed in one single step. This means that you can enable and integrate an additional image just by using the default configuration.&amp;quot;&lt;/p&gt;
&lt;p&gt;So:&lt;/p&gt;
&lt;p&gt;build/zephyr/zephyr.hex: only application&lt;/p&gt;
&lt;p&gt;build/mcuboot/zephyr/zephyr.hex: only mcuboot&lt;/p&gt;
&lt;p&gt;build/zephyr/merged.hex: mcuboot+application&lt;/p&gt;
&lt;p&gt;The &amp;quot;west flash&amp;quot; command will flash &amp;quot;build/zephyr/merged.hex&amp;quot; for multi-image builds, and &amp;quot;build/zephyr/zephyr.hex&amp;quot; for single image builds.&lt;/p&gt;
&lt;p&gt;For images used for MCUBoot, see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/mcuboot/readme-ncs.html"&gt;Using MCUboot in nRF Connect SDK&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359734?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 09:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75120e01-0f96-4165-8654-3b97f47bf07d</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;Thanks, Actually this is what I was looking at.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3833.peripheral_5F00_lbs_5F00_BL653.7z"&gt;devzone.nordicsemi.com/.../3833.peripheral_5F00_lbs_5F00_BL653.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the attached project I am building DFU sample app provided by nordic for BL653: &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu"&gt;devzone.nordicsemi.com/.../ncs-dfu&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;I have 4 more questions:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;1. In this project, at path &amp;quot;peripheral_lbs_BL653\build\zephyr&amp;quot;, I am to understand that application build file is present at this location, Does this application build file have mcuboot code as well.?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. At the path &amp;quot;peripheral_lbs_BL653\build\mcuboot\zephyr&amp;quot;, I am to understand that mcuboot build file is present as you said..?&lt;/strong&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/86125/building-mcuboot-as-a-separate-hex-bin-file/359602#359602"]build/mcuboot/zephyr/zephyr.hex[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. mcuboot zephyr.hex is being generated separately at the aforementioned path, Is it getting integrated into the application build file at path &amp;quot;peripheral_lbs_BL653\build\zephyr&amp;quot;...?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. How can I flash this mcuboot build file found at the path&amp;nbsp;&amp;quot;peripheral_lbs_BL653\build\mcuboot\zephyr&amp;quot;&amp;nbsp;separately into the board..?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ubaid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building mcuboot as a separate .hex / .bin file</title><link>https://devzone.nordicsemi.com/thread/359602?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 12:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a4707ca-5484-45d4-9fb4-e17810d9654b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The MCUBoot child image build can be found in the folder build/mcuboot.&lt;br /&gt;The hex file for only mcuboot is therefore located at build/mcuboot/zephyr/zephyr.hex.&lt;/p&gt;
&lt;p&gt;Is this what you were looking for?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>