<?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>Create merged.bin file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123169/create-merged-bin-file</link><description>Hi all, 
 Actually I&amp;#39;m building with vscode my firmware for a custom board build with an nRF9151 non secure. After building I got a merged.hex file, this is the file upload when I&amp;#39;m flashing my board with vscode. 
 I&amp;#39;d like to know if I can convert merged</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jul 2025 10:21:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123169/create-merged-bin-file" /><item><title>RE: Create merged.bin file</title><link>https://devzone.nordicsemi.com/thread/543715?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 10:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1973b1b-622d-4875-887b-2d209327a138</guid><dc:creator>Priyanka</dc:creator><description>[quote user="simon884"]Ok so just a question after the first flash, (do with merged.hex) if I only push zephyr.bin for FOTA update it will be working or not ?&lt;br /&gt;If I understand well, the first flash (use merged.hex) will put all necessary application in my board, so after that zephyr.bin will be sufficent to update my firmware with FOTA ?[/quote]
&lt;p&gt;That&amp;#39;s right. As long as&amp;nbsp;the bootloader and partitions remain unchanged this should be fine.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create merged.bin file</title><link>https://devzone.nordicsemi.com/thread/543484?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 12:03:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78be19b4-f564-45c1-b93e-92dd26c9f824</guid><dc:creator>simon884</dc:creator><description>[quote userid="107729" url="~/f/nordic-q-a/123169/create-merged-bin-file/543458"]&lt;p&gt;&lt;strong&gt;merged.hex&lt;/strong&gt;&amp;nbsp;contains all firmware images merged: bootloader (if any), softdevice, app (Zephyr), etc. and is used for flashing the whole device (e.g. with nrfjprog or west flash).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;zephyr.bin&amp;nbsp;&lt;/strong&gt;is only the Zephyr application binary,i.e.&amp;nbsp; &lt;span&gt;a raw binary of just the application image, not merged with other required images (like TF-M)&amp;nbsp;&lt;/span&gt;and is generated when CONFIG_BUILD_OUTPUT_BIN=y is in prj.conf.&lt;/p&gt;[/quote]
&lt;p&gt;Ok thanks for detials.&lt;/p&gt;
[quote userid="107729" url="~/f/nordic-q-a/123169/create-merged-bin-file/543458"]Yes, your file must be in binary format.&amp;nbsp;The merged.hex is for direct programming, not for FOTA.[/quote]
&lt;p&gt;Ok so just a question after the first flash, (do with merged.hex) if I only push zephyr.bin for FOTA update it will be working or not ?&lt;br /&gt;If I understand well, the first flash (use merged.hex) will put all necessary application in my board, so after that zephyr.bin will be sufficent to update my firmware with FOTA ?&lt;/p&gt;
[quote userid="107729" url="~/f/nordic-q-a/123169/create-merged-bin-file/543458"]I don&amp;#39;t think we have any&amp;nbsp;detailed step-by-step tutorial for what you are asking for, but yes, the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/aws_fota.html#aws_fota"&gt;AWS_FOTA &lt;/a&gt;and the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/aws_iot/README.html"&gt;AWS_IOT &lt;/a&gt;can form the reference point for your case.[/quote]
&lt;p&gt;Ok thanks, so I think I&amp;#39;ve find all necessary project configration nedded:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#FOTA
CONFIG_DOWNLOAD_CLIENT=y
CONFIG_DFU_TARGET=y
CONFIG_FOTA_DOWNLOAD=y
CONFIG_AWS_FOTA=y
CONFIG_AWS_FOTA_PAYLOAD_SIZE=1350&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create merged.bin file</title><link>https://devzone.nordicsemi.com/thread/543458?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 10:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7381737e-bd30-4cd2-a8d2-89708c90b65a</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
[quote user=""]I&amp;#39;d like to know if I can convert merged.hex in merged.bin[/quote]
&lt;p&gt;I think this&amp;nbsp;might be possible (not sure). I just looked around and came across this ticket which might help:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110591/merged-binary-bin-of-softdevice-application-bricking-devices-differs-from-the-merged-hex-when-flashed?utm_source=chatgpt.com"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/110591/merged-binary-bin-of-softdevice-application-bricking-devices-differs-from-the-merged-hex-when-flashed?utm_source=chatgpt.com&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]What is the difference between merged.hex and zephyr.bin? [/quote]
&lt;p&gt;&lt;strong&gt;merged.hex&lt;/strong&gt;&amp;nbsp;contains all firmware images merged: bootloader (if any), softdevice, app (Zephyr), etc. and is used for flashing the whole device (e.g. with nrfjprog or west flash).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;zephyr.bin&amp;nbsp;&lt;/strong&gt;is only the Zephyr application binary,i.e.&amp;nbsp; &lt;span&gt;a raw binary of just the application image, not merged with other required images (like TF-M)&amp;nbsp;&lt;/span&gt;and is generated when CONFIG_BUILD_OUTPUT_BIN=y is in prj.conf.&lt;/p&gt;
[quote user=""]Why if I flash zephyr.bin my firmware does&amp;#39;nt work?[/quote]
&lt;p&gt;Since you are working with the AWS FOTA application,&amp;nbsp;it uses the&amp;nbsp;MCUboot to verify and apply updates and the zephyr.bin&amp;nbsp;doesn&amp;#39;t include necessary parts like the MCUboot bootloader or secure partitions.&lt;/p&gt;
&lt;p&gt;So basically for the 91 series,&amp;nbsp;the device expects both the application and TF-M to be present. But only the applicaton is being provided with the zephyr.bin file.&lt;/p&gt;
[quote user=""]Because my idea is to use AWS FOTA to update my firmware and in nrf aws fota sample, they used &lt;code&gt;&lt;span&gt;app_update&lt;/span&gt;&lt;/code&gt;.bin, so I have to use binary file ?[/quote]
&lt;p&gt;Yes, your file must be in binary format.&amp;nbsp;The merged.hex is for direct programming, not for FOTA.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think we have any&amp;nbsp;detailed step-by-step tutorial for what you are asking for, but yes, the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/aws_fota.html#aws_fota"&gt;AWS_FOTA &lt;/a&gt;and the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/aws_iot/README.html"&gt;AWS_IOT &lt;/a&gt;can form the reference point for your case.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>