<?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>NCS 2.5.1 sample application with MCUBoot updates from external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108287/ncs-2-5-1-sample-application-with-mcuboot-updates-from-external-flash</link><description>Is there a sample application that shows how to get a hello world application going with the mcuboot able to do updates from extermal flash? 
 I am looking at the app with mcu boot sample, building for the nrf52840dk board, but don&amp;#39;t understand what needs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Feb 2024 12:55:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108287/ncs-2-5-1-sample-application-with-mcuboot-updates-from-external-flash" /><item><title>RE: NCS 2.5.1 sample application with MCUBoot updates from external flash</title><link>https://devzone.nordicsemi.com/thread/469022?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2024 12:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a40fcd3-75d4-4858-a22c-8acd5fc689e8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;ve put together a demo sample based on &amp;#39;hello world&amp;#39; which supports the following:&lt;/p&gt;
&lt;p&gt;- Serial recover mode in bootlodader. This allows you to perform DFU trough the USB interface. You can press button 0 (&amp;#39;mcuboot-button0&amp;#39;) on startup to make the bootloader this mode.&lt;/p&gt;
&lt;p&gt;- FOTA over BLE via the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- VERSION file in the project root directory to define the version number for the app image.&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/zephyr/build/version/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/zephyr/build/version/index.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Added the &amp;#39;child_image&amp;#39; folder to apply configuration changes to the mcuboot build.&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Demo sample&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8475.hello_5F00_world_5F00_dfu.zip"&gt;devzone.nordicsemi.com/.../8475.hello_5F00_world_5F00_dfu.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Testing the sample&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Build and flash the project onto your board. Next, update the version number in the VERSION file and rebuild the application to create an update image. I also recommend connecting a serial emulator to the Segger VCOM to monitor the DFU process.&lt;/p&gt;
&lt;p&gt;Serial recovery:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;Connect you PC to the nRF USB port on the side of the DK.&lt;/p&gt;
&lt;p&gt;2. Press the reset button while keeping button 1 on the DK pressed. Then&amp;nbsp;confirm from the Debug log that the bootloader enters serial recovery mode.&lt;/p&gt;
&lt;p&gt;3. Initiate serial DFU. For example, with the &amp;#39;mcumgr&amp;#39; tool:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;$ mcumgr --conntype serial --connstring &amp;quot;COMx,baud=115200,mtu=4096&amp;quot; image upload build/zephyr/app_update.bin 
# Perform reset to activate and boot new FW image
$ mcumgr --conntype serial --connstring &amp;quot;COMx,baud=115200,mtu=4096&amp;quot; reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;FOTA over BLE:&lt;/p&gt;
&lt;p&gt;1. Connect to the device using the Device Manager app on Android or iOS. The device name is &amp;#39;Zephyr&amp;#39;&lt;/p&gt;
&lt;p&gt;2. Upload the app_update.bin from your build directory.&lt;/p&gt;
&lt;p&gt;Confirm from that the debug log that the app is printing the new version number after the update is complete.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.5.1 sample application with MCUBoot updates from external flash</title><link>https://devzone.nordicsemi.com/thread/468910?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2024 21:21:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eee3e31-7102-47a9-a235-fd412b4d2223</guid><dc:creator>Shen2</dc:creator><description>&lt;p&gt;Thanks for that, it has gotten me to the next step, although now I am building but attempting to flash &amp;amp; debug the bootloader and firmware results in a FIH_PANIC in the bootloader as it fails to find a valid application to boot into&lt;br /&gt;&lt;br /&gt;and Yes, BLE updates and serial would be good as backups in case the update from external flash fails somehow and the single application slot is left corrupted&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.5.1 sample application with MCUBoot updates from external flash</title><link>https://devzone.nordicsemi.com/thread/468844?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2024 14:08:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7291052d-4cf5-4272-9d9b-34f73a2c408f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;main step to enabling the bootloader to&amp;nbsp;use the external flash&amp;nbsp;is&amp;nbsp;to create a device tree overlay with the nordic,pm-ext-flash&amp;nbsp;property&amp;nbsp;as shown below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Relevant documentation links:&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/scripts/partition_manager/partition_manager.html#pm-external-flash"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/scripts/partition_manager/partition_manager.html#pm-external-flash&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/config_and_build/bootloaders_and_dfu/bootloader_external_flash.html#using-external-flash-memory-partitions"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/config_and_build/bootloaders_and_dfu/bootloader_external_flash.html#using-external-flash-memory-partitions&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/device_guides/working_with_nrf/nrf52/developing.html#fota-updates"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/device_guides/working_with_nrf/nrf52/developing.html#fota-updates&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do you want to support over the air updates with BLE, or serial over USB/UART?&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>