<?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>Counting flash writing operations in Bootloader (Bug maybe?)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24122/counting-flash-writing-operations-in-bootloader-bug-maybe</link><description>Hello, 
 I&amp;#39;m working on the bootloader using SDK13.1. In the file dfu_req_handling.c there is a variable called m_flash_operations_pending that gets incremented with every call to nrf_dfu_flash_store() or nrf_dfu_flash_erase() . 
 My question is why</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Aug 2017 14:05:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24122/counting-flash-writing-operations-in-bootloader-bug-maybe" /><item><title>RE: Counting flash writing operations in Bootloader (Bug maybe?)</title><link>https://devzone.nordicsemi.com/thread/94980?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 14:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34b03cec-77bf-4113-b36d-31582c2b4f65</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;Thank you very much for letting us know. I will investigate a little bit further, and report it to the developers.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Counting flash writing operations in Bootloader (Bug maybe?)</title><link>https://devzone.nordicsemi.com/thread/94979?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 13:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10f3e756-2fe4-4e50-94df-693c7b10caf5</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;I added a &lt;code&gt;m_flash_operations_pending++&lt;/code&gt; before calling &lt;code&gt;nrf_dfu_settings_write()&lt;/code&gt; and it solved my problem. I also passed the &lt;code&gt;dfu_data_write_handler&lt;/code&gt; callback to those calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>