<?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>Dual Bank DFU in NRF52805 using an external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74887/dual-bank-dfu-in-nrf52805-using-an-external-flash</link><description>Hi Nordic, 
 I have an NRF52805 board [ from Raytech] and I am implementing all my application using SDK v15.1.0. 
 
 As of now, I have implemented my application using the ble_app_uart service and it works perfectly with buttonless DFU! 
 but my problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 May 2021 14:37:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74887/dual-bank-dfu-in-nrf52805-using-an-external-flash" /><item><title>RE: Dual Bank DFU in NRF52805 using an external flash</title><link>https://devzone.nordicsemi.com/thread/310215?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 14:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e6c113-95b7-4a81-8e43-260a404df751</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dipak,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf_dfu_req_handler_init () &lt;/strong&gt;is called to initialize the dfu_req_handler but I don&amp;#39;t see the reason you need to modify that. What you need to modify is what I mentioned before to change the backend of the fstorage module. So instead of the nrf_fstorage_sd.c , you need to define your own nrf_storage_spi.c so that it handle the flash operation with the external SPI interface, not the internal flash.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;nrf_dfu_req_handler_init&lt;span&gt;&amp;nbsp;() &lt;/span&gt;&lt;/strong&gt;initializes the&amp;nbsp;&lt;strong&gt;&lt;span&gt;nrf_dfu_flash module, but what you need to modify is the fstorage which is the lower level of the nrf_dfu_flash.&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual Bank DFU in NRF52805 using an external flash</title><link>https://devzone.nordicsemi.com/thread/310143?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 12:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81503a86-19b2-4d80-b82a-9553dfc1943a</guid><dc:creator>Dipak</dc:creator><description>&lt;p&gt;&lt;strong&gt;But may I ask do you have to use nRF52805 and the W25Q32 in your design?&amp;nbsp;The DFU dual bank issue can be solved by simply use an nRF52832 which has 512kB of flash.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Yes, I have NRF52805 &amp;amp; W25Q32 in my design.&lt;/p&gt;
&lt;p&gt;Right now, I have no option except external flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual Bank DFU in NRF52805 using an external flash</title><link>https://devzone.nordicsemi.com/thread/310141?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 12:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a5b0cca-d753-44c3-b326-7746c770c7a5</guid><dc:creator>Dipak</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply!&lt;/p&gt;
&lt;p&gt;I have read this thread,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48961/dfu-with-external-qspi-memory"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48961/dfu-with-external-qspi-memory&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and after entering into DFU first&amp;nbsp;&lt;strong&gt;nrf_dfu_req_handler_init&amp;nbsp;&lt;/strong&gt;is initialize correct?&lt;/p&gt;
&lt;p&gt;if yes, then what kind of changes I have to make in the&amp;nbsp;&lt;span&gt;&lt;strong&gt;nrf_dfu_req_handler_init&amp;nbsp;&lt;/strong&gt;function for the external_SPI_interface _init?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Dipak&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual Bank DFU in NRF52805 using an external flash</title><link>https://devzone.nordicsemi.com/thread/308991?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 13:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b93150fc-dd37-4ac2-8e09-7377c8d2e4f5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dipak,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We currently don&amp;#39;t have an example on how to use external flash for doing DFU. What you need to do is to add a new backend to the fstorage to store data in external flash instead of the internal flash. It&amp;#39;s similar to the nrf_fstorage_nvmc.c and the nrf_storage_sd.c . But you need to write your own library to access SPI flash instead. This would require some study on how the DFU bootloader works and how fstorage works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But may I ask do you have to use nRF52805 and the W25Q32 in your design ?&amp;nbsp;The DFU dual bank issue can be solve by simply use a nRF52832 which has 512kB of flash.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>