<?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>Flash mcumgr hex only</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87797/flash-mcumgr-hex-only</link><description>Hi, 
 I am working with nRF52832_dvk board, i am testing the OTA example as per in this link. https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu 
 this example has mcumgr bootloader as well for image validation and all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 May 2022 11:37:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87797/flash-mcumgr-hex-only" /><item><title>RE: Flash mcumgr hex only</title><link>https://devzone.nordicsemi.com/thread/367584?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 11:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76d1de55-7982-467b-9775-a9103af8e628</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;HI Shikamaru,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t done this modification myself so I&amp;#39;m not sure what would be the correct way of doing that. But if you have a look at&amp;nbsp;\bootloader\mcuboot\boot\nuttx\src\flash_map_backend\flash_map_backend.c, you can find their own definition of flash read/write/erase API.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would assume&amp;nbsp;&lt;span&gt;CONFIG_SOC_FLASH_NRF need to be changed so that you can direct MCUBoot to choose your own implementation.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Vinay S"]how can I flash only that hex file , do I need any further tools for that purpose.[/quote]
&lt;p&gt;You can flash a hex file using &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download"&gt;nrfjprog.exe command line tool.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash mcumgr hex only</title><link>https://devzone.nordicsemi.com/thread/367508?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 05:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48cddfcf-90dc-4390-a34e-dd6fdea69a6c</guid><dc:creator>Shikamaru</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/87797/flash-mcumgr-hex-only/367426#367426"]I would like to clarify that &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/device_mgmt/mcumgr.html?highlight=mcumgr"&gt;MCUMGR&amp;nbsp;&lt;/a&gt;is image management library, it&amp;#39;s not a bootloader. The bootloader is &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/wrapper.html"&gt;MCUBoot&lt;/a&gt;.&amp;nbsp;[/quote]
&lt;p&gt;hi hung bui,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My bad !, thanks for the clarification.&amp;nbsp;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/87797/flash-mcumgr-hex-only/367426#367426"]If you only want the MCUBoot hex file, you can find the hex file inside&amp;nbsp;\build\mcuboot\zephyr folder.&amp;nbsp;[/quote]
&lt;p&gt;Yes got it.&amp;nbsp;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/87797/flash-mcumgr-hex-only/367426#367426"]Could you let us know what exactly you want to do with the mcuboot hex file ?[/quote]
&lt;p&gt;my requirement is that , &amp;quot; Mcuboot will do booting as well as image swapping or testing&amp;quot; as you mentioned. here while swapping the image it will use flash write or read api&amp;#39;s to copy image . so I have custom flash api&amp;#39;s(read , write ..etc.) , my requirement is to &lt;strong&gt;replace mcuboot&amp;#39; s&amp;nbsp; read, write with our own read and write api&amp;#39;s .&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For the same purpose I need to understand which all are the files this is utilizing , how do figure it out.&lt;/strong&gt; Kindly suggest.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/87797/flash-mcumgr-hex-only/367426#367426"]If you only want the MCUBoot hex file, you can find the hex file inside&amp;nbsp;\build\mcuboot\zephyr folder.&amp;nbsp;[/quote]
&lt;p&gt;and how can I flash only that hex file , do I need any further tools for that purpose.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash mcumgr hex only</title><link>https://devzone.nordicsemi.com/thread/367426?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 13:04:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae2d6178-f2ac-484a-93c9-e456a869ac11</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Shikamaru,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like to clarify that &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/device_mgmt/mcumgr.html?highlight=mcumgr"&gt;MCUMGR&amp;nbsp;&lt;/a&gt;is image management library, it&amp;#39;s not a bootloader. The bootloader is &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/wrapper.html"&gt;MCUBoot&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you only want the MCUBoot hex file, you can find the hex file inside&amp;nbsp;\build\mcuboot\zephyr folder.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you let us know what exactly you want to do with the mcuboot hex file ? Note that, unlike the bootloader in nRF5 SDK, the MCUBoot bootloader doesn&amp;#39;t do DFU process itself (except for Serial recovery mode) it only does the booting and image swapping/testing part.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>