<?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>nRF5340 FOTA using external spi flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89978/nrf5340-fota-using-external-spi-flash</link><description>Hi, 
 We have a project using nRF5340,and must consider upgrading for it. I see nRF5340 netcore has SPI peripheral,can nRF5340 upgrading using external spi flash? This post shows i can&amp;#39;t update the network core via QSPI , because of the network core doesn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Jul 2022 08:37:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89978/nrf5340-fota-using-external-spi-flash" /><item><title>RE: nRF5340 FOTA using external spi flash</title><link>https://devzone.nordicsemi.com/thread/377797?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 08:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f15dd4d1-2495-4c66-bc98-28cb52127da9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. If you want to connect the SPI flash directly to the NET core that should be possible too, but I think the easiest would be to only connect it to the app core and do it via the application core. Is there a specific reason to transmit directly to the NET core in your case? It is definitely possible as you say, so you&amp;#39;re welcome to implement it if you&amp;#39;d like.&lt;/p&gt;
&lt;p&gt;2. When updating both cores the memory partitions must be defined so you have partitions for both the application and network core image slots. The pcd_sram partition is used for command exhange between the app and net core. This is supported by enabling the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/kconfig/index.html#CONFIG_PCD_APP"&gt;CONFIG_PCD_APP&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 FOTA using external spi flash</title><link>https://devzone.nordicsemi.com/thread/377548?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 08:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:537086ae-55e5-4c82-9673-af279005d482</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;gt; &lt;span&gt;1. Yes, a SPI flash connected to the nRF53 (app core) it can forward NET core firmware to the NET core to do the DFU from the SPI flash to the NET core, and then the app core afterwards.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you mean app core get NET core firmware from spi flash, and then send it to NET core over shared SRAM?&lt;/p&gt;
&lt;p&gt;Maybe I didn&amp;#39;t describe it clearly, english is not my native language.&lt;/p&gt;
&lt;p&gt;About this case, my idea is NET core only get the &amp;quot;upgrade&amp;quot; command from app core over shared SRAM, then the NET core get NET core firmware from spi flash directly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NET core has its own bootloader named &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/nrf5340/netboot/README.html?highlight=b0n"&gt;B0n&lt;/a&gt;, and SPI peripherals it can be accessed.&lt;/p&gt;
&lt;p&gt;This problem can be equivalent to, does B0n can get firmware from its own SPI peripherals?&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;I&amp;#39;m not sure I understand this question. You will need to have more than one image for your different cores,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In this case, I see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/ug_nrf5340.html#simultaneous-multi-image-dfu"&gt;multi-image DFU&lt;/a&gt;&amp;nbsp;&lt;span&gt;allows the updating of both the application core and the network core in one go.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But app core firmware and NET core firmware use the same image slot. So when the app core is updated, &lt;/span&gt;&lt;span&gt; the old app core firmware will be deleted when the NET core is updating.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So how does app core reverse in this status?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;HuYang&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 FOTA using external spi flash</title><link>https://devzone.nordicsemi.com/thread/377513?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 06:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23428b0d-9337-4eeb-9f8a-6335b3ce3ea6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. Yes, a SPI flash connected to the nRF53 (app core) it can forward NET core firmware to the NET core to do the DFU from the SPI flash to the NET core, and then the app core afterwards.&lt;/p&gt;
&lt;p&gt;2. I think you only can update one core at a time from the same SPI peripheral, so one will be waiting for the other to finish I imagine.&lt;/p&gt;
&lt;p&gt;3. I&amp;#39;m not sure I understand this question. You will need to have more than one image for your different cores, etc.&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#image-slots"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html#image-slots&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 FOTA using external spi flash</title><link>https://devzone.nordicsemi.com/thread/377307?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 03:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9edec3e4-66c2-48e6-915d-103d467d6cc7</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;&lt;span&gt;During the boot process, the&lt;/span&gt;&lt;span&gt;&amp;nbsp;network core bootloader&lt;/span&gt;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/nrf5340/netboot/README.html?highlight=b0n"&gt;Bon&lt;/a&gt;&amp;nbsp;&lt;span&gt;and MCUboot interact using&amp;nbsp;shared SRAM including &amp;quot;netcore firmware&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want the B0n to get the firmware through the spi flash instead of the&amp;nbsp;shared SRAM.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 FOTA using external spi flash</title><link>https://devzone.nordicsemi.com/thread/377302?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 02:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15493c6b-f8e9-426c-9e68-8fa7a31a6c56</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;Thank you for your reply.&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;By &amp;quot;upgrading it&amp;quot; do you mean doing a Device Firmware upgrade over the air?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to confirm these three points.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;1. I hope to upgrade appcore and netcore via spi flash, can the two core have access to the same spi flash?&lt;br /&gt;&amp;gt; 2. What is another core doing when the one is upgrading, only waiting or processing its own things?&lt;br /&gt;&amp;gt; 3. Image reversion,the two core use the same image slot. How does image reverse?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I see nRF5340 netcore has SPI peripheral，so i want to &amp;nbsp;do a Device Firmware upgrade via spi flash not appcore flash.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;yang&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 FOTA using external spi flash</title><link>https://devzone.nordicsemi.com/thread/376988?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 13:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8ed1d3c-207f-4cc8-ac92-cf78904b3981</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;By &amp;quot;upgrading it&amp;quot; do you mean doing a Device Firmware upgrade over the air? &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/dfu/dfu_multi_image.html"&gt;Multi image DFU is explained here in the nRF Connect SDK&lt;/a&gt;. Please check it out, as it should indeed be possible to do DFU for both NET and APP cores on the nRF5340.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>