<?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 limitation on NRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106876/zigbee-fota-limitation-on-nrf5340</link><description>Hi Nordic team, 
 We have two types of devices; 
 1. Bridge 
 2. Sensors 
 Bridge - We have nrf5340 and nrf9160 connected via UART. NRF5340 is the main controller while nrf9160 is only for cloud communication, this is the hardware for Bridge. 
 Sensors</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jan 2024 08:28:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106876/zigbee-fota-limitation-on-nrf5340" /><item><title>RE: Zigbee FOTA limitation on NRF5340</title><link>https://devzone.nordicsemi.com/thread/463065?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 08:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53c3e9f2-01fc-4ff5-81a6-c1e20a59469d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Sigurd Hellesvik"]I will ask our bootloader developers on what they recommend here. I am curious myself to our take on robusteness here. However, as it is the christmas vacation now, I will ask them in January.[/quote]
&lt;p&gt;I think this was the only one I should pick up on right:&lt;/p&gt;
&lt;p&gt;Our developers confirm what you say: FOTA for the nRF5340 is at the moment less robust that for our single-core chips. This is something we are working on improving.&lt;/p&gt;
&lt;p&gt;For now, I suggest being extra vigilant on testing new applications to prevent errors to happen.&lt;/p&gt;
&lt;p&gt;If you have serial access to the nRF5340, you could also enable Serial Recovery, which enables you to recovery the device over serial if FOTA breaks the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee FOTA limitation on NRF5340</title><link>https://devzone.nordicsemi.com/thread/461591?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 14:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8641eb2-c506-4abc-8217-f2ae1d7f4672</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="bilal337"]Bridge - Firmware will be downloaded in Nrf9160 and through UART it will be sent to nrf5340.&amp;nbsp;[/quote]
&lt;p&gt;We got a sample for this at &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/cellular/lwm2m_client/fota_external_mcu.html"&gt;Evaluating LwM2M Advanced Firmware Update for external MCU&lt;/a&gt;. This would be similar for non-LwM2M applications as well. Download the firmware and then send it via DFU Target to the external chip over UART.&lt;/p&gt;
[quote user="bilal337"]Zigbee FOTA Limitation -&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/zigbee/zigbee_fota.html#limitations"&gt;developer.nordicsemi.com/.../zigbee_fota.html&lt;/a&gt;[/quote]
&lt;p&gt;Right, I remember the limitation now. The nRF5340 has two slots in this mode, but it can not revert the image when doing &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#simultaneous-multi-image-dfu"&gt;SImultaneous multi-image updates&lt;/a&gt;: &lt;/p&gt;
&lt;p&gt;&amp;quot; CONFIG_BOOT_UPGRADE_ONLY - The simultaneous update of multiple images does not support network core image reversion, so you need to disable application image reversion. &amp;quot;&lt;/p&gt;
&lt;p&gt;We do not provide any fix for this yet. You can turn on revertion, but then need to handle the consequences yourself.&lt;/p&gt;
&lt;p&gt;MCUboot will still verify the signature and hash of the image, so a corrupted image should not be booted.&lt;/p&gt;
[quote user=""] we&amp;#39;d appreciate insights into potential mitigation strategies for handling corrupted firmware images during the update process, particularly regarding bootloader and critical functionality impact.[/quote]
&lt;p&gt;I will ask our bootloader developers on what they recommend here. I am curious myself to our take on robusteness here. However, as it is the christmas vacation now, I will ask them in January.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee FOTA limitation on NRF5340</title><link>https://devzone.nordicsemi.com/thread/461586?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 13:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e64d6134-5e3f-4b09-85b7-2d065975d434</guid><dc:creator>bilal337</dc:creator><description>&lt;p&gt;Bridge - Firmware will be downloaded in Nrf9160 and through UART it will be sent to nrf5340.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Zigbee FOTA Limitation -&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/zigbee/zigbee_fota.html#limitations"&gt;developer.nordicsemi.com/.../zigbee_fota.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee FOTA limitation on NRF5340</title><link>https://devzone.nordicsemi.com/thread/461580?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 13:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24975b04-92a2-4a4a-9df3-10f65ab4d2b6</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="bilal337"]Bridge - Firmware is stored on Aws s3 bucket. The device will call an API and firmware will be downloaded in MCU it will do security verification. If the firmware is for bridge it will update itself.&amp;nbsp;[/quote]
&lt;p&gt;The bridge is both the nRF9160 and nRF5340. How does this process affect each of these?&lt;/p&gt;
[quote user="bilal337"]But in the case of sensors, the bridge will call an API download the firmware, and will do security verification and after that, the bridge will send it to the sensor via Zigbee protocol. The issue here is that nrf5340&amp;nbsp; only support single bank and not a dual bank OTA,&amp;nbsp; Meaning it will delete the previous firmware and then write the new firmware and in case new firmware is corrupted the device will not work anymore.[/quote]
&lt;p&gt;I am not very familiar with&amp;nbsp; ZigBee FOTA specifially, but in the nRF Connect SDK MCUboot FOTA is is in all cases I have seen dual bank. Can you link to where you learned that this is single bank, so I can have a look at it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee FOTA limitation on NRF5340</title><link>https://devzone.nordicsemi.com/thread/461578?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 13:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f2dc455-4f56-4e07-a095-78c08dccc12d</guid><dc:creator>bilal337</dc:creator><description>&lt;p&gt;Bridge - Firmware is stored on Aws s3 bucket. The device will call an API and firmware will be downloaded in MCU it will do security verification. If the firmware is for bridge it will update itself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But in the case of sensors, the bridge will call an API download the firmware, and will do security verification and after that, the bridge will send it to the sensor via Zigbee protocol. The issue here is that nrf5340&amp;nbsp; only support single bank and not a dual bank OTA,&amp;nbsp; Meaning it will delete the previous firmware and then write the new firmware and in case new firmware is corrupted the device will not work anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee FOTA limitation on NRF5340</title><link>https://devzone.nordicsemi.com/thread/461577?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 12:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b39e3c44-7ca5-4c34-b165-88dcd60f95d0</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You want to update two things, the sensor and the bridge, right?&lt;br /&gt;For each of those, can you explain where the DFU is sent from? &lt;br /&gt;For example, does the sensor receive DFU over UART from the bridge?&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>