<?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>Update Application with SPI flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91765/update-application-with-spi-flash</link><description>Hi, 
 I have used DFU to update my application and worked normally. Now I need to update the application which has be written in NOR flash. 
 Firstly, I will write the application file in NOR flash in old application. The size of application is over 40k</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Sep 2022 12:15:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91765/update-application-with-spi-flash" /><item><title>RE: Update Application with SPI flash</title><link>https://devzone.nordicsemi.com/thread/388764?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c231ad2-285f-45c3-b336-e35d575ff055</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The standard bootloader will either store the new image in a second slot in internal flash (dual bank updates), or erase the current application before receiving the new image into the application slot (single bank updates). With dual bank updates, the new image is copied from secondary slot to primary slot after complete image have been received and verified, before it can be run.&lt;/p&gt;
&lt;p&gt;What you need to do is to rewrite the bootloader to store the image into external flash instead of the internal second slot. When the image is received and verified, you can copy the image from external flash to the primary slot before it can be run. Unfortunately, we do not have any examples showing this in nRF5 SDK.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Application with SPI flash</title><link>https://devzone.nordicsemi.com/thread/387863?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 10:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a267f4-5f04-4bc2-8e2d-eef9e9d9f614</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen Holmefjord&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll download application to&amp;nbsp;&lt;span&gt;external flash and then reset my system in order to into bootloader. And&amp;nbsp;I will replace application with external flash codes next. So I want to know how to &amp;quot;eplace application with external flash codes&amp;quot; in bootloader.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Application with SPI flash</title><link>https://devzone.nordicsemi.com/thread/385257?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:179b6d54-f191-4be2-9403-7921fcf74da2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]How can I jump to bootloader in application[/quote]
&lt;p&gt;We do not provide any examples of jumping from application to bootloader, the SDK examples uses one of the supported &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html#lib_bootloader_dfu_mode"&gt;DFU enter metods&lt;/a&gt;, and reset the chip. On boot, the bootloader will always run first and only jump to the application if the DFU enter methods are not set.&lt;/p&gt;
[quote user=""]what should I do in bootloader next?[/quote]
&lt;p&gt;The bootloader does not support storing application updates in external flash. You will have to rewrite the bootloader to store the received update chunks in the SPI flash and copy it back to internal flash from the external flash once the entire image is received and verified.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>