<?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>Zigbee FOTA img not confirmed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112247/zigbee-fota-img-not-confirmed</link><description>Hello DevZone, 
 I am working in VS Code and nRF Connect SDK 2.6.0. Developing battery powered Zigbee device. I have an issue with FOTA - it started to rollback after update to the previous version. I started FOTA upgrade and after it finished I checked</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jun 2024 10:02:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112247/zigbee-fota-img-not-confirmed" /><item><title>RE: Zigbee FOTA img not confirmed</title><link>https://devzone.nordicsemi.com/thread/489471?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 10:02:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bafbd9e2-65ce-449b-8d1a-1944dfd2ff42</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]But I didn&amp;#39;t found it&amp;#39;s use in any Zigbee examples.[/quote]
&lt;p&gt;The Zigbee light sample has Zigbee fota support: See the section regarding extensions for how to enable forta&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/zigbee/light_switch/README.html#configuration_files_for_sample_extensions"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/zigbee/light_switch/README.html#configuration_files_for_sample_extensions&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;Is it called from bootloader? Do I need to use it in main.c?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;For the update procedure Zigbee is only handling the image transport from the DFU image distribution source to the target(s). After the new update image has been placed within the MCUboot application secondary partition, then it is the bootloader, i.e MCUboot, that handles the update procedure&lt;/p&gt;
&lt;p&gt;The device receives DFU chunks and &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.4.2/subsys/zigbee/lib/zigbee_fota/src/zigbee_fota.c#L546"&gt;processes &lt;/a&gt;them with ota_process_chunk(), which in turn calls ota_process_firmware() which in the end uses &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/dfu/dfu_multi_image.html"&gt;DFU multi-image&lt;/a&gt; library in NCS to move the image. After this, MCUBoot takes over the procedure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For more information regarding general DFU in NCS as well as multi-image DFU, please refer to&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt;. I also&amp;nbsp;recommend that you go through the light switch sample I mentioned and test DFU with the DFU configuration enabled&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>