<?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>Flashing firmware bin using NRF programmer included the DFU Fota using mcuboot serial recovery mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108664/flashing-firmware-bin-using-nrf-programmer-included-the-dfu-fota-using-mcuboot-serial-recovery-mode</link><description>Hello mates, 
 
 nRF Connect SDK v2.5.0 
 
 I have succesfully completed the project based on NRF52840 which i am using mcuboot in serial recovery mode. 
 I faced up with an issue while i was setting up the production process. 
 Since the target was programmed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Mar 2024 11:02:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108664/flashing-firmware-bin-using-nrf-programmer-included-the-dfu-fota-using-mcuboot-serial-recovery-mode" /><item><title>RE: Flashing firmware bin using NRF programmer included the DFU Fota using mcuboot serial recovery mode</title><link>https://devzone.nordicsemi.com/thread/472436?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 11:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09fd53cf-e8af-46a6-805e-1e2170194ee8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Which &amp;quot;entry method&amp;quot; do you use to enter serial recovery mode (&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/323fb663e832d4c45eb2fc2d30a3955684791b7d/boot/zephyr/Kconfig.serial_recovery#L133"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/323fb663e832d4c45eb2fc2d30a3955684791b7d/boot/zephyr/Kconfig.serial_recovery#L133&lt;/a&gt;)?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: If you select the bootloader child image for debugging, only the bootloader will be programmed onto the device while the merged.hex file contains all the firmware images. The bootloader will boot the application on boot unless there is something that signals the bootloader to enter serial recovery mode instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware bin using NRF programmer included the DFU Fota using mcuboot serial recovery mode</title><link>https://devzone.nordicsemi.com/thread/472430?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 10:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:826b2b78-e893-4f0f-9e42-99a30abe646e</guid><dc:creator>thanosPr</dc:creator><description>&lt;p&gt;Let me describe my issue again.&lt;/p&gt;
&lt;p&gt;I have successfully added and completed dfu using mcuboot in serial recovery mode on nrf52840.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My issue is on getting into mcuboot serial recovery mode by programming the target with merged.hex file.&lt;br /&gt;&lt;br /&gt;I realised that when i am writing the target with merged.hex file (zephyr build system), the target is not getting into mcuboot serial recovery mode. However, this issue is gone when i am uploading the file using debugging option on VS Code.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware bin using NRF programmer included the DFU Fota using mcuboot serial recovery mode</title><link>https://devzone.nordicsemi.com/thread/472425?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 10:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6608ebad-102f-4892-af7c-b4c4395bef13</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="thanosPr"]I uploaded my bin file using debug option from VS Code and i compare it with the merged.hex that is produced giving to me different result.[/quote]
&lt;p&gt;Can you please elaborate on what the difference is?&lt;/p&gt;
[quote user="thanosPr"]Could you please help me why using debugging option my nrf52 is getting into mcuboot serial recovery mode (using the corresponding pin) instead of programming it with merged.hex ?[/quote]
&lt;p&gt;Sorry, I&amp;#39;m not quite sure what you mean. Could you please post some images to illustrate the problem?&lt;/p&gt;
[quote user="thanosPr"]Let me attach a picture below:[/quote]
&lt;p&gt;I&amp;#39;m not sure what to look for in this picture.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware bin using NRF programmer included the DFU Fota using mcuboot serial recovery mode</title><link>https://devzone.nordicsemi.com/thread/472389?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 09:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5416a42c-bb8a-4e5d-9f23-38dcd08a935d</guid><dc:creator>thanosPr</dc:creator><description>&lt;p&gt;Maybe there was a misunderstanding.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I uploaded my bin file using debug option from VS Code and i compare it with the merged.hex that is produced giving to me different result.&lt;/p&gt;
&lt;p&gt;Could you please help me why using debugging option my nrf52 is getting into mcuboot serial recovery mode (using the corresponding pin) instead of programming it with merged.hex ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me attach a picture below:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt="MergedHex vs DebugHex" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/mergedHex.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing firmware bin using NRF programmer included the DFU Fota using mcuboot serial recovery mode</title><link>https://devzone.nordicsemi.com/thread/470994?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 12:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d8928a8-d90a-475d-ac5f-6d8c899aff6e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I faced up with an issue while i was setting up the production process.[/quote]
&lt;p&gt;Initial programming of the device must be performed through the debug interface using an external programmer, as the chip is shipped blank from our factory. There is no pre-programmed bootloader&amp;nbsp;to&amp;nbsp;handle flashing through a&amp;nbsp;USB or UART.&lt;/p&gt;
[quote user=""]Since the target was programmed using merged.hex, i realised that the microcontroller did not get into mcuboot serial recovery mode.[/quote]
&lt;p&gt;There are different methods you can enable in your MCUBoot build to make the bootloader enter serial recovery on startup as you can see from the configuration options here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/cb64eca4df86554a8da61e23d8fe4469257ff8be/boot/zephyr/Kconfig.serial_recovery#L133"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/cb64eca4df86554a8da61e23d8fe4469257ff8be/boot/zephyr/Kconfig.serial_recovery#L133&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]May i have to make any special setting in nrf programmer to load succesfully mcuboot serial recovery mode or the uploaded file is different one than merged file?[/quote]
&lt;p&gt;To perform serial recovery, you currently need to use the mcumgr-client tool:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/services/device_mgmt/mcumgr.html"&gt;https://docs.zephyrproject.org/latest/services/device_mgmt/mcumgr.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>