<?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>MCUMGR compatibility with new SDK versions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112073/mcumgr-compatibility-with-new-sdk-versions</link><description>Hello community, 
 I am working on a custom nrf5340 board design, that uses the BL5340PA external antenna module to implement the nrf5340 chip in the design. The BL5340 module allows all of the base functionality in the nrf5340 module, but also adds an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jun 2024 05:06:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112073/mcumgr-compatibility-with-new-sdk-versions" /><item><title>RE: MCUMGR compatibility with new SDK versions</title><link>https://devzone.nordicsemi.com/thread/488788?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 05:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:523421ed-da07-4594-9abb-9c8579b562ab</guid><dc:creator>Utsav R Shah</dc:creator><description>&lt;p&gt;That works for us! Thank you &lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp; for you inputs on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR compatibility with new SDK versions</title><link>https://devzone.nordicsemi.com/thread/488713?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 14:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea4cb36f-ed2f-42ea-95f6-4b3ffa4b0779</guid><dc:creator>Devin M</dc:creator><description>&lt;p&gt;That seems to answer it well for me, thank you for that detailed explanation. Makes sense to me and was my initial thought on the functionality but wanted to verify so we don&amp;#39;t get stuck down the line.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks for your help! I will let Utsav set that as the answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR compatibility with new SDK versions</title><link>https://devzone.nordicsemi.com/thread/488695?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 13:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:473b3aae-61b6-4be9-bbad-3e06ea3d030a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Alright, let&amp;#39;s take it from&amp;nbsp; the top:&lt;/p&gt;
&lt;p&gt;Will an old version of MCUboot DFU newer apps?&lt;br /&gt;Answer: Yes&lt;/p&gt;
&lt;p&gt;Caveat: You must make sure that you have the same partitioning between all apps. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu"&gt;Static partition requirement for DFU&lt;/a&gt;.&lt;br /&gt;Caveat: You must use the same key to sign both versions of your firmware.&lt;/p&gt;
&lt;p&gt;Nice thing about Serial Recovery is that if the DFU does not work, you can always just enter DFU mode again and retry.&lt;/p&gt;
&lt;p&gt;Explanation:&lt;br /&gt;The Bootloader has a simple job: To put firmware in the correct place, and then to boot that firmware if it can verify the signature of said firmware.&lt;br /&gt;The bootloader does not care otherwise about the firmware. So you can even DFU apps compiled with something else if you would somehow want that. (But you would not want that)&lt;/p&gt;
&lt;p&gt;Answers to your questions:&lt;/p&gt;
[quote user=""]Could this create any compatibility issues in the future, for which I would have to update the mcuboot of the board as well or the newer SDK&amp;#39;s would have backwards compatibility?&amp;nbsp;[/quote]
&lt;p&gt;No. Especially not when you have Serial Recovery.&lt;/p&gt;
[quote user="Devin M"]Or is there a method to update the bootloader as well using Direct Serial Recovery[/quote]
&lt;p&gt;No, bootloader can never be updated over DFU. Only overwritten by a debugger. This is a security feature.&lt;/p&gt;
&lt;p&gt;Does this answer the ticket?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR compatibility with new SDK versions</title><link>https://devzone.nordicsemi.com/thread/488685?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 13:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fe86716-0278-445c-b325-0baadab98c27</guid><dc:creator>Devin M</dc:creator><description>&lt;p&gt;From my understanding, it is one bootloader that is separate from the app core and net core. As using direct serial recovery, the bootloader directly writes over byte-for-byte the app core and net core when doing an update.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If I am misunderstanding I can send you any necessary configurations from our project to help clear this up. I know net_core uses b0n bootloader within its image. And below is the configs from prj.conf to configure the bootloader:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;##Enable the MCUBoot Bootloader&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#enable the netcore binary file generation&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRF53_UPGRADE_NETWORK_CORE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The rest are in the hci_rpmsg.conf&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR compatibility with new SDK versions</title><link>https://devzone.nordicsemi.com/thread/488674?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 12:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d11a5c1e-f52f-4912-beae-d34caf4061cf</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;On the app core, do you run one or two bootloaders?&lt;/p&gt;
&lt;p&gt;(I got a detailed answer for you, just want all the context first, so I can answer as precisely as possible)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR compatibility with new SDK versions</title><link>https://devzone.nordicsemi.com/thread/488657?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 11:39:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ffafef8-ff8d-4773-b465-7befe19f38ef</guid><dc:creator>Devin M</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;Hi, I am working with Utsav on this as well. Our BL5340PA module has the current capability of updating the app core and net core using the Serial Recovery method. You are correct,&amp;nbsp;we just want to ensure that if we update the net and app core images to a higher version of SDK (2.4 to 2.7 or higher for future), that the Serial Recovery bootloader would still be functional with a different SDK version running in the app core and net core.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So overall MCUBOOTloader would be from 2.4. SDK and the app core and net core would be from 2.7 or higher SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or is there a method to update the bootloader as well using Direct Serial Recovery, along with the app core and net core so we would not have to worry about this.&lt;/p&gt;
&lt;p&gt;For some context we will be switching to 2.7 SDK due to a bug fix in that SDK from Nordic&amp;#39;s SoftDevice, and wondering if we can move forward with our temporary fix in 2.4 SDK and update to this functionality later in 2.7 SDK&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Devin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR compatibility with new SDK versions</title><link>https://devzone.nordicsemi.com/thread/488650?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 11:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12e63ff4-256c-4665-95ba-db7bd923c141</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So your question can be summarized as:&lt;/p&gt;
&lt;p&gt;&amp;quot;Can I use an earlier version of MCUboot with serial recovery to OTA to a new NCS app?&amp;quot;&lt;/p&gt;
&lt;p&gt;Correct?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>