<?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>Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90898/does-bank1-gets-erased-after-successfull-ota-upgrade-via-ble</link><description>Hi, 
 
 Iam using &amp;quot;pca10056_s140_ble&amp;quot; secure bootloader example for my project. 
 FYI. My project gets its new firmware from internet and stores it in BANK1 memory using GSM module. 
 
 My question is: 
 1.Whether the secure bootloader erases the BANK1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Aug 2022 10:34:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90898/does-bank1-gets-erased-after-successfull-ota-upgrade-via-ble" /><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/382218?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 10:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc032d37-85df-4774-8e0d-1f16b388f10c</guid><dc:creator>helsing</dc:creator><description>[quote user="mahesh vicky"]I had this issue, where the crc of new firmware in BANK1 mismatches on posvalidation process, after when i added fstorage_erase for BANK1 before storing the firmware, then everything worked fine[/quote]
&lt;p&gt;If this works for you then it should be fine. I am not aware of any significant side effects to be aware of. To be able to say what went wrong with the CRC validation one would need more details, like a flash dump from a failed update that could be compared to a flash dump from a successful update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/382190?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 09:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61cb935c-8b82-47e7-a8b5-44ac96d5fb68</guid><dc:creator>helsing</dc:creator><description>[quote user="mahesh vicky"]what if the no.of pages required for new firmware is lesser than the no.of pages used for the previous firmware in BANK1, does the remaining pages of old firmware in BANK1 gets erased?[/quote]
&lt;p&gt;Only the pages needed for the write will be erased. So, some pages will remain in flash, containing data from older images.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/382094?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 14:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:042d3f9f-9669-4f05-92b7-4c02e8b33e26</guid><dc:creator>Vignesh R</dc:creator><description>&lt;p&gt;No worries brother,&lt;/p&gt;
&lt;p&gt;I had this issue, where the crc of new firmware in BANK1 mismatches on posvalidation process, after when i added fstorage_erase for BANK1 before storing the firmware, then everything worked fine&lt;/p&gt;
&lt;p&gt;But i dont know how the process happens via BLE, that&amp;#39;s why i asked here&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/382085?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 14:24:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:455879d5-4cde-4b26-bf6f-cdb055117a91</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Vignesh, sorry for the delay.&lt;/p&gt;
&lt;p&gt;If the new image is smaller, I would assume some pages are not overwritten and will remain intact. However, I will double check this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/381403?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 14:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d34c0ec5-bc9d-40c1-b80d-b7791568447f</guid><dc:creator>Vignesh R</dc:creator><description>&lt;p&gt;Oh okay, understood..&lt;/p&gt;
&lt;p&gt;So you said that each page gets erased whenever a new request is created on the fly, what if the no.of pages required for new firmware is lesser than the no.of pages used for the previous firmware in BANK1, does the remaining pages of old firmware in BANK1 gets erased??&lt;/p&gt;
&lt;p&gt;BTW, Pardon me for further questioning...Just curious to know...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/381401?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 14:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa0034d-6e6c-4a33-853a-28fe1bf044b2</guid><dc:creator>helsing</dc:creator><description>&lt;div style="font-family:-apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, &amp;#39;Segoe UI Web&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0;text-transform:none;white-space:normal;"&gt;To be more specific, the flash page is erased whenever a new dfu object is created with the &lt;span&gt;&lt;a title="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_transport.html?cp=8_1_3_5_2_0_1#lib_dfu_transport_op_create" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_transport.html?cp=8_1_3_5_2_0_1#lib_dfu_transport_op_create" rel="noopener noreferrer" target="_blank"&gt;Create request&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/381400?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 14:28:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53eb4ce-bc3a-454c-9cd5-42f7e26660db</guid><dc:creator>helsing</dc:creator><description>&lt;div&gt;The bank is erased on the fly during the DFU transfer. One page at a time.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/381362?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 12:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aedbcc74-6cfb-44e9-8f2d-eae68b0ee06b</guid><dc:creator>Vignesh R</dc:creator><description>&lt;p&gt;Hi, thanks for the update.&lt;/p&gt;
&lt;p&gt;I have another doubt:&lt;/p&gt;
&lt;p&gt;1.When does the BANK1 contents gets erased if i execute the DFU via BLE for the 2nd time??&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/381360?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 12:30:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b62a19e-7f35-4ec8-887d-45b71b7ebd66</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Bank 1 will not be erased. It is up to you whether you would like to erase the bank or not before writing to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/381359?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 12:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2357277f-e8d3-4bbc-bcf3-427cbd54907f</guid><dc:creator>Vignesh R</dc:creator><description>&lt;p&gt;Hi helsing,&lt;/p&gt;
&lt;p&gt;I am using sdk version 17.1.0&lt;/p&gt;
&lt;p&gt;&amp;quot;SDK_17.1.0&amp;quot; --&amp;gt;secure bootloader--&amp;gt;pca10056_s140_ble.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BANK1 gets erased after successfull OTA upgrade via BLE</title><link>https://devzone.nordicsemi.com/thread/381348?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 11:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec61417e-90a1-481d-aba6-8747a0c24fd9</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Vignesh,&lt;/p&gt;
&lt;p&gt;I will check. Which nRF5 SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>