<?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>NRF52840 Using 15.3 SDK Internal Flash Write Issue when Device Config multiple Role.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60675/nrf52840-using-15-3-sdk-internal-flash-write-issue-when-device-config-multiple-role</link><description>HI. 
 I Want DFU In Application So I Want to Write DFU Data In Internal Flash. Device configure has total 3 links... 2 -Pheriphiral Link and 1 Central Link use in my project 
 when i used only peripheral link Internal Flash Read Write Work ok but when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jun 2020 10:12:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60675/nrf52840-using-15-3-sdk-internal-flash-write-issue-when-device-config-multiple-role" /><item><title>RE: NRF52840 Using 15.3 SDK Internal Flash Write Issue when Device Config multiple Role.</title><link>https://devzone.nordicsemi.com/thread/252676?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 10:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bf3b0f2-5d45-47a5-9e00-86c4862539cb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Perhaps you can show how you disconnect, stop advertising and stop scanning before you try to write to flash?&lt;/p&gt;
&lt;p&gt;Another thing you can try is to increase the connection interval. Let me know if you are not sure how to do this. Please remember that it is the central that decides the connection interval. Also, increase the scan interval and advertising interval, but&amp;nbsp;&lt;strong&gt;not&lt;/strong&gt; the scan window.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Using 15.3 SDK Internal Flash Write Issue when Device Config multiple Role.</title><link>https://devzone.nordicsemi.com/thread/252549?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2020 07:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c551e20c-9f26-48a7-b96c-e68d0e89f064</guid><dc:creator>Nikunj Patel</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;When Device is in Central mode First Disconnect Connection ,Stop scanning and Stop Advertisement after try to Erase Internal Flash at that time i got an error Flash is Busy.Even i increase flsah time out 2 sec to 5 sec got same error ,Please suggest what is the reson for that issue.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;-Nikunj&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Using 15.3 SDK Internal Flash Write Issue when Device Config multiple Role.</title><link>https://devzone.nordicsemi.com/thread/252509?ContentTypeID=1</link><pubDate>Sat, 30 May 2020 10:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69120f95-cdb4-445b-a842-90183888017d</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Flash updates cannot run while the RADIO is running, so the SD schedules them in between radio events.&lt;/p&gt;
&lt;p&gt;If your connection and/or scanning parameters are too tight, there will not be enough room left for those flash events. In this case they can be delayed significantly.&lt;/p&gt;
&lt;p&gt;Workaround: Use looser connection intervals, and less &amp;quot;active&amp;quot; scanning time for central.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Using 15.3 SDK Internal Flash Write Issue when Device Config multiple Role.</title><link>https://devzone.nordicsemi.com/thread/252507?ContentTypeID=1</link><pubDate>Sat, 30 May 2020 09:25:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b013424-1ebe-462a-9293-3d6e6051c16b</guid><dc:creator>Nikunj Patel</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Device Support 2 PeriphiraL AND 1 Central link when my device is in periphiral Internal Flash Read Write is ok ..im using same firmware Deivce In Central Mode at that time intenal flash is busy what is the reason please Suggest im using bleow Function.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
            if(flash_write_timeout())
			{
                 #ifdef DEBUG_BLE_NETWORK
                    uint8_t debug[50];
                    memset(debug, 0, sizeof(debug));
					sprintf((char *)debug,&amp;quot;\r\n CASE A \r\n);      
                    DEBUG(debug);                
                #endif	
                
				return 1;
			}

		  // Erase the target page
		  ret_val = nrf_dfu_flash_erase(target_addr, 1, NULL);
		  if (ret_val != NRF_SUCCESS)
		  {
			  #ifdef DEBUG_BLE_NETWORK
                    uint8_t debug[50];
                    memset(debug, 0, sizeof(debug));
                    sprintf((char *)debug,&amp;quot;\r\n ERASE ERROR:%X\r\n&amp;quot;,ret_val);   
                    DEBUG(debug);                
               #endif
			return ret_val;
		  }
            if(flash_write_timeout())
			{
                #ifdef DEBUG_BLE_NETWORK
                    uint8_t debug[50];
                    memset(debug, 0, sizeof(debug));
                    sprintf((char *)debug,&amp;quot;\r\n CASE B\r\n&amp;quot;);
                    DEBUG(debug);                
                #endif	
                
				return 1;
			}


//Flash Wait Timeout
uint8_t flash_write_timeout(void)
{      
    uint8_t lu8_count=0;       
	while (nrf_fstorage_is_busy(NULL))
	{
		if(lu8_count++ &amp;gt; 100)
		{
			return(1);
		}
        nrf_delay_ms(20);
	}
	return(0);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Allways When Deivce is in Central mode i got error Debug &amp;quot;CASE B&amp;quot; What is the reason Please suggest me.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;-Nikunj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Using 15.3 SDK Internal Flash Write Issue when Device Config multiple Role.</title><link>https://devzone.nordicsemi.com/thread/246847?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 12:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f89e474a-f02d-4357-9a79-ff634223a443</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nikunj,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]when i used only peripheral link Internal Flash Read Write Work ok but when I use Central with peripheral it&amp;#39;s not work&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Can you elaborate what part that didn&amp;#39;t work? Does the log say anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>