<?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>test_mcuboot example - not switching</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97148/test_mcuboot-example---not-switching</link><description>Hello, 
 I am looking to have two applications in flash and switch between them using MCU boot using an nRF52832. The ultimate goal is to do BLE MESH DFU into external flash for larger applications but I thought I&amp;#39;d start with a simple switching between</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Mar 2023 19:57:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97148/test_mcuboot-example---not-switching" /><item><title>RE: test_mcuboot example - not switching</title><link>https://devzone.nordicsemi.com/thread/412839?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 19:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20eaea7e-7fc4-4f60-bc00-d4b53e0031e7</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;It turns out that &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.2.99-ncs1/tests/boot/test_mcuboot/testcase.yaml#L15"&gt;the test_mcuboot project is not intended for nRF device&lt;/a&gt;&amp;nbsp;and&amp;nbsp;the addresses in that project is incompatible with MCUboot.&amp;nbsp;&lt;/p&gt;
[quote user="Shahin97"]Do you know where I can find an example using MCUBOOT for DFU specifically using the nRF52832.[/quote]
&lt;p&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;SMP Server&lt;/a&gt; is a sample NCS inherits from Zephyr that demonstrate DFU with MCUboot.&lt;/p&gt;
&lt;p&gt;We have a &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu"&gt;blog post&lt;/a&gt; explaining how to add DFU to your application. The&amp;nbsp;sections regarding BLE testing should also be useable for&amp;nbsp;testing the SMP Server sample above.&lt;/p&gt;
&lt;p&gt;Our colleague Sigurd also provides some small size MCUboot samples here:&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you wish to learn more about MCUboot, please also take some time to read through its documentation:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/mcuboot/wrapper.html"&gt;MCUboot documentation in the nRF Connect SDK — MCUboot 1.9.99 documentation (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This documentation&amp;nbsp;is more relevant to two-stage bootloader setup, but also contains sections about MCUboot:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/app_bootloaders.html"&gt;Bootloaders and Device Firmware Updates — nRF Connect SDK 2.2.0 documentation (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: test_mcuboot example - not switching</title><link>https://devzone.nordicsemi.com/thread/412727?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 11:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94ca2669-6133-41c5-93ed-1200d730e0e6</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;I am currently in the research stage of this project, the direction the project will go is still configurable, an so I&amp;nbsp;am assessing&amp;nbsp;different examples from Nordic to gain some background information regarding DFU. Coming from STM32 to Nordic, it is noticeably different, especially with Zephyr. MCUBOOT has intrigued me, Do you know where I can find an example using MCUBOOT for DFU specifically using the nRF52832. This board is a fixed parameter in the specification&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: test_mcuboot example - not switching</title><link>https://devzone.nordicsemi.com/thread/412615?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 23:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efd23c3c-b037-4ec8-a1cd-ada17f266521</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi shahin97,&lt;/p&gt;
&lt;p&gt;Rather than the secondary application not being flashed, it looks to me that the only thing in your flash memory is actually the first application. The green area above is likely some configuration data.&lt;/p&gt;
&lt;p&gt;This project use sysbuild, which the VS Code extension does not handle very well. To build it, you need to follow the instruction here:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/build/sysbuild/index.html"&gt;Sysbuild (System build) — Zephyr Project Documentation (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;That being said, in my test, even with&amp;nbsp;all the images built and flashed, the sample would still not work. The main application&amp;nbsp;can detect the app to be swapped, but MCUboot cannot boot into&amp;nbsp;the new app for some reasons. I am not 100% certain why at the moment.&lt;/p&gt;
&lt;p&gt;Before we proceed any further, I notice you mentioning that this experiment is to get&amp;nbsp;Bluetooth&amp;nbsp;Mesh DFU to work somehow. I understand that you are talking about the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_dfu_protocol.html"&gt;nRF5 SDK for Mesh DFU solution&lt;/a&gt;. It is a completely different SDK.&amp;nbsp;Do you have a plan to mix the SDKs together somehow?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: test_mcuboot example - not switching</title><link>https://devzone.nordicsemi.com/thread/412468?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 11:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2863830a-3d3c-4441-97dc-4758ec6b353c</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;I have a feeling that the second application is not flashed to the MCU, the IDE used is CLION, this is the nRF flash map&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/test_5F00_mcu_5F00_boot.PNG_2D00_640x480.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>