<?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>using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108412/using-point-to-point-dfu-with-mesh---mesh-light-example-with-nrf52832</link><description>Hello, 
 I am trying to run the BLE mesh light example with nrf52832. 
 The program properly builds and runs without &amp;quot;overlay-dfu.conf&amp;quot; 
 However when I added the overlau-dfu.conf in the build configuration, I got error on zephyr_pre0.elf build. 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Feb 2024 08:59:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108412/using-point-to-point-dfu-with-mesh---mesh-light-example-with-nrf52832" /><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/470397?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2024 08:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f65582d-526a-4f9c-9148-5863f2da0e04</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Sounds good. If you feel like your answers here have been answered, please feel free to close this&amp;nbsp;case at your convenience.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/470340?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2024 00:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:439436dc-ae03-4b81-802d-ce216ee0fee4</guid><dc:creator>NavG</dc:creator><description>&lt;p&gt;Thanks I will contact him.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/470252?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 12:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89ac29f9-a7dc-4aec-9f03-77212796861a</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;My apology but we cannot comment on whether or not a feature is planned or when a feature will be released on DevZone. A local Nordic sales representative can help you with this. If you&amp;nbsp;don&amp;#39;t have a contact yet, I can help connecting you with one.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/470126?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 23:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd4bdcde-de8e-4cc1-8825-77af3feca8bf</guid><dc:creator>NavG</dc:creator><description>&lt;p&gt;Thanks for Confirmation. .. Is there any plan for it in future?&lt;/p&gt;
&lt;p&gt;If so when ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason I am asking is, we need to do this sort of update to be compatible with existing product..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Navin&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/470035?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 13:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8bbbe15-0574-437c-beae-2853c1c095a0</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;My apology, I indeed have misunderstood you. However, I got what you want to do&amp;nbsp;now.&amp;nbsp;You want single slot update over BLE.&lt;/p&gt;
&lt;p&gt;Then this is unfortunately something possible in the nRF5 SDK, but not possible in NCS, at least for the time being.&lt;/p&gt;
&lt;p&gt;The reason is because in the nRF5 SDK, the majority of BLE stack is wrapped in the SoftDevice, and both the bootloader and the application can make use of it. Meanwhile, in NCS, the BLE stack is&amp;nbsp;compiled with the application, and the bootloader does not have access to it.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/469917?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 01:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:351e751e-9b1a-4aa4-92ba-4c22fa621770</guid><dc:creator>NavG</dc:creator><description>&lt;p&gt;Hi Hieu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;May be I could not make you understand my question.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Our previous product never had mesh.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do not want to use mesh for bootloader for my product. However the application will be mesh. When in bootloader, it should act as other &amp;quot;normal&amp;quot;&amp;nbsp; BLE device connecting to phone. Is not that what the &amp;quot;point to point&amp;quot; bootloader is supposed to do?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So with that concept, can we not live with a single memory partition for App? I know it has a risk, there is no role back. With watchdog, it should fall back to bootloader if app fails to boot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;yes changing to higher size memory requires change in HW , which we are trying to avoid at this moment.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the previous SDK5 application ( without mesh). We had bootloader, Softdevice and application, three different entity. We were updating application only. But not sure similar things can be done with nrf connect SDK and mcuboot.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Or may be my understanding in BLE bootloader may be limited..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Navin&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/469641?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 21:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:355e20a6-b423-440b-b919-5ee389e2c25f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
[quote user="NavG"]I had looked at Partition manager. It talks about pm.yml. Where do I define/place that? Currently where it is picking it from to create partition.yml?&amp;nbsp;[/quote]
&lt;p&gt;Please continue to read the documentation I linked,&amp;nbsp;especially about static configuration.&lt;/p&gt;
[quote user="NavG"]&lt;p&gt;In previous bootloader,&amp;nbsp; There was only one segment defined for application. I am not sure when bootloader is running it usages any of the code of application there. The bootloader just overwrites the application in the same slot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can we not do the same with mcuboot ? I don&amp;#39;t need to swap. In this way, my application can be larger than 256kB. I can work with single application partition. Is it possible to do this? If so how? Any example?&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;If you look into &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_dfu_protocol.html?cp=9_2_2_4_0"&gt;the nRF5 SDK for Mesh DFU documentation&lt;/a&gt;, you will find that&amp;nbsp;while a partition to&amp;nbsp;store the download image is not defined, the solution depends on the free space to be large enough for serving the same purpose.&lt;/p&gt;
&lt;p&gt;As far as partitioning and concepts go, they are not much different. It is the increase in application size that is a problem here.&lt;/p&gt;
&lt;p&gt;As Bluetooth Mesh provides very limited throughput, transfer takes a long time. Therefore, it&amp;#39;s essential to use background download, where a DFU target&amp;nbsp;serves its usual functions normally while downloading an update.&lt;/p&gt;
&lt;p&gt;However, with background download, an additional image partition is necessary, as the&amp;nbsp;downloading application cannot overwrite itself (it has to be intact while running).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As mentioned in the DevZone case I linked, the simplest approach to this is to get more flash, either via using&amp;nbsp;the stronger models, nRF52840 and nRF5340, or by getting an external flash device. Other options are also discussed in the same case.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/469629?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 17:32:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:237a1fbb-02e1-4f1b-85ba-814abb18412f</guid><dc:creator>NavG</dc:creator><description>&lt;p&gt;Hi Hieu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had looked at Partition manager. It talks about pm.yml. Where do I define/place that? Currently where it is picking it from to create partition.yml?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will look into the optimizing the memory that you have provided. I have already gone through the thread analyzer to optimize RAM to fit my application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our previous product is developed with peripheral/central concept. But with mesh, it has certain advantages and performance enhancement. Hence I am thinking to migrate the application to mesh. The application is working fine and fits in memory. But now the DFU is becoming bit challenged with nrf connect and VSCODE. both are new here. We had used SES and NRF5 SDK15.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The mcuboot seem to be more perfect but may be all features are&amp;nbsp; not needed&amp;nbsp; for us.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In previous bootloader,&amp;nbsp; There was only one segment defined for application. I am not sure when bootloader is running it usages any of the code of application there. The bootloader just overwrites the application in the same slot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can we not do the same with mcuboot ? I don&amp;#39;t need to swap. In this way, my application can be larger than 256kB. I can work with single application partition. Is it possible to do this? If so how? Any example?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also do you think there is drop in replacement with higher memory for 52832?&lt;/p&gt;
&lt;p&gt;let me know...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Navin&amp;nbsp;&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: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/469624?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 17:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4633e07b-f144-4e92-967a-4f910831c493</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi NavG,&lt;/p&gt;
[quote user=""]1. How do I start to debug this?&amp;nbsp;[/quote]
&lt;p&gt;As you have&amp;nbsp;figured out, the issue is that the Flash and RAM required for the image cannot be satisfied with the current device and/or partitioning.&lt;/p&gt;
&lt;p&gt;The first place to look at is where in the build process this problem happen. In &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/config_and_build/multi_image.html"&gt;a multi-image build&lt;/a&gt; like one with DFU, this problem could occur during the bootloader build step, or during the application build step.&lt;/p&gt;
&lt;p&gt;After that, it is a matter of optimizing the image and/or change the partitioning to fit everything in.&amp;nbsp;While doing this, do keep in mind some margins for future updates.&lt;/p&gt;
&lt;p&gt;I have a hunch this happened during the application step. Regardless, I am afraid it is just&amp;nbsp;very difficult to fit both Bluetooth Mesh and DFU onto the nRF52832. More on this when I answered your 3rd question.&lt;/p&gt;
[quote user=""]2. It looks like the bootloader partition was not properly setup to accommodate the bootloader...? Where to change it in VSCODE?&amp;nbsp;[/quote][quote user="NavG"]The other thing is the &amp;quot;linker_zephyr_pre0.pre&amp;quot; files shows the flash size as 38e00 irrespective of the dts file size of 62000. Where this 38e00 size is coming from? any idea?&amp;nbsp;[/quote]
&lt;p&gt;It seems you have found and attempted to fix it by updating the partitioning in the DeviceTree. If you are building the multi-image using the default child image solution (not sysbuild), then the DeviceTree partitioning is completely overridden by &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/scripts/partition_manager/partition_manager.html#partition-manager"&gt;the Partition Manager&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please go over the multi-image build and Partition Manager documentation pages I linked above.&lt;/p&gt;
[quote user=""]3. The application alone compiles using 65% of Flash and 76% of RAM. Can I accommodate the bootloader with this application? If not what is the resources required for Bootloader alone?&amp;nbsp;[/quote]
&lt;p&gt;RAM should not be an issue, as the application and the bootloader runs independently. Your challenge here is the Flash.&lt;/p&gt;
&lt;p&gt;The bootloader itself can be optimized into a very small footprint. However, it&amp;#39;s the partitioning&amp;nbsp;for the DFU solution that is a problem here.&lt;/p&gt;
&lt;p&gt;Normally, you want two partitions for the application. One for the active app, and one to download the new one. As one application alone already took 65% of the Flash, it is very difficult to fit another partition in.&lt;/p&gt;
&lt;p&gt;You can have a single application partition, but you will be restricted to wired serial update solutions. You must have two partitions if you want over the air update, as the running application cannot overwrite itself.&lt;/p&gt;
&lt;p&gt;I discussed about optimizing image size for this exact purpose here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97367/add-mcuboot-to-connect-sdk-ble-sample-central-and-peripheral"&gt;Add mcuboot to connect SDK BLE sample &amp;quot;central and peripheral&amp;quot;&lt;/a&gt;&amp;nbsp;. The links in that DevZone case are for a previous version of the nRF Connect SDK (NCS). Please try to switch to the equivalent page in the latest version.&lt;/p&gt;
[quote user=""]4. This may be bit odd question but -- My previous existing application in the existing product has bootloader&amp;nbsp; based on NRF SDK16. We would like to change the application with mesh. Is it possible to keep the same bootloader and use the nrf connect Mesh with latest SDK for application?&amp;nbsp;[/quote]
&lt;p&gt;I would say this is theoretically possible, however quite challenging.&lt;/p&gt;
&lt;p&gt;We have gotten some unofficial proof of concept for upgrading from the nRF5 SDK v17.1.0 (standalone, without the nRF5 SDK for Mesh) to a nRF Connect SDK application. However, a similar trial with the nRF5 SDK for Mesh hasn&amp;#39;t been done.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using point to point DFU with mesh - Mesh light example with NRF52832</title><link>https://devzone.nordicsemi.com/thread/469370?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 01:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9101d7a1-4c07-4135-bdb0-0aa64fccd543</guid><dc:creator>NavG</dc:creator><description>&lt;p&gt;additional info , I changed the slot0_partition to 62000, but still it says it does not fit,,,,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1708304527060v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The other thing is the &amp;quot;linker_zephyr_pre0.pre&amp;quot; files shows the flash size as 38e00 irrespective of the dts file size of 62000. Where this 38e00 size is coming from? any idea?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&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/pastedimage1708304765513v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>