<?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>MCUboot partition for Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83283/mcuboot-partition-for-zephyr</link><description>Hi, we have a costumer who wants be able to do a firmware update over BLE. We have a running application that takes about 260k of FLASH. This fits in the NRF52832 (512k FLASH) but not with the two slot1/slot2 partitions for MCUboot. 
 It would help to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jan 2022 15:50:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83283/mcuboot-partition-for-zephyr" /><item><title>RE: MCUboot partition for Zephyr</title><link>https://devzone.nordicsemi.com/thread/346539?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 15:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29952607-c439-46e7-b42e-3ec9fcfd304f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. The information I got from the developer is that Direct XIP is available&amp;nbsp; in MCUBoot but we haven&amp;#39;t integrated it in to NCS. So in theory it&amp;#39;s possible to do what you are planning but we haven&amp;#39;t tested that. In addition you would need to compile the smaller application and the real application to start at a dedicated location, it&amp;#39;s something we haven&amp;#39;t tested.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So all in all I would suggest to go for the external flash solution.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot partition for Zephyr</title><link>https://devzone.nordicsemi.com/thread/346284?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 16:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3cd804d-a091-405e-9cca-8287406674cf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) Yes it&amp;#39;s possible. If you can add external flash to the board then you can configure MCUBoot to use the external flash as secondary slot. You can have a look at this case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72543/mcu-boot-with-external-flash-littles-partition-and-secondary-image-partition"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/72543/mcu-boot-with-external-flash-littles-partition-and-secondary-image-partition&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. This is a good idea. But I&amp;#39;m not 100% sure if it&amp;#39;s supported by MCUBoot and by Nordic implementation. You can have a look at the DirectXIP section &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#equal-slots-direct-xip"&gt;here.&lt;/a&gt;&amp;nbsp;I will need to check with our team to see if #1. You can use Direct XIP 2. You can configure Slot 1 larger size than Slot 2.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will keep you updated.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot partition for Zephyr</title><link>https://devzone.nordicsemi.com/thread/346192?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 13:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:830c7613-4036-41a7-a565-afaada23ad3b</guid><dc:creator>AndreasM</dc:creator><description>&lt;p&gt;What about following solutions:&lt;/p&gt;
&lt;p&gt;1.) Can we use an external Flash to store one of the images?&lt;/p&gt;
&lt;p&gt;2.) Can we do the update in two steps. First download a smaller application, that only has the BLE function to download a bigger file with the real application. The benefit would be, that we do not need two images with the same size rather have to images with different size they may overlap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot partition for Zephyr</title><link>https://devzone.nordicsemi.com/thread/346057?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 08:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09ad1fa8-759e-4666-9e41-3bdc8a8a68d6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid that&amp;nbsp;we don&amp;#39;t have any other solution besides trying to optimize the code.&amp;nbsp;&lt;br /&gt;Another option is to use the nRF5 SDK and Softdevice.&amp;nbsp;The Softdevice is still a good option&amp;nbsp;with most of the features in Bluetooth 5.2 supported. Of course porting the application back to nRF5 SDK would require considerable amount of work, depends on the application.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot partition for Zephyr</title><link>https://devzone.nordicsemi.com/thread/345963?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 15:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a2d6daf-aecb-4110-a316-6d5d6f6eb031</guid><dc:creator>AndreasM</dc:creator><description>&lt;p&gt;Thank for the answer&lt;/p&gt;
&lt;p&gt;Unfortunately we cant reduce the application size and we already upgraded from nFT52810 to the bigger nRf52832. To go bigger is a cost issue.&lt;/p&gt;
&lt;p&gt;To separate the Zephyr part was the last hope. We have to face it and negotiate with the customer. Update seems not feasible with this constellation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot partition for Zephyr</title><link>https://devzone.nordicsemi.com/thread/345943?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 14:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab8ec33-1c80-4af8-b9b5-4117fc266811</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is a difference between the Zephyr architecture and our legacy softdevice architecture that Zephyr&amp;#39;s stack is not separated from the application. So it&amp;#39;s not possible to have a dedicated &amp;quot;stack&amp;quot; area that will not get updated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So in this case you really need to suggest the customer to reduce the size of the application. Is there any&amp;nbsp;static data that was included in the application that can be moved to the storage area ?&amp;nbsp;&lt;br /&gt;Another option is to move to a chip with larger flash size, the nRF52840 for example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>