<?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>Flash erase failure when scanning interval/window is 3.125 ms</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48621/flash-erase-failure-when-scanning-interval-window-is-3-125-ms</link><description>Hi all, 
 I have a problem where I get a Flash page erase failure when scanning interval/window is 3.125 ms (or other very small value). 
 (SD132 2.0.0, SDK 11.0.0) 
 When I call Flash page erase via sd_flash_page_erase( ) after power up, it fails if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jun 2019 16:23:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48621/flash-erase-failure-when-scanning-interval-window-is-3-125-ms" /><item><title>RE: Flash erase failure when scanning interval/window is 3.125 ms</title><link>https://devzone.nordicsemi.com/thread/193251?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 16:23:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4183f41f-8d12-4087-a997-e53aaf59e7a5</guid><dc:creator>Guilherme de Paula</dc:creator><description>&lt;p&gt;Thank you for the additional information on advertising and connection events!&amp;nbsp; I&amp;#39;ll mark my own comment as the answer to the initial question about scanning events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash erase failure when scanning interval/window is 3.125 ms</title><link>https://devzone.nordicsemi.com/thread/193184?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 12:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54d72920-4a4e-460d-88a9-958fbf1372d1</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Scanning, advertising and connection events typically all block flash access. I recommend having a look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsds_s132%2FSDS%2Fs1xx%2Fmultilink_scheduling%2Fmultilink_scheduling.html"&gt;Scheduling&lt;/a&gt; section of the SoftDevice Specification, and in particular the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsds_s132%2FSDS%2Fs1xx%2Fmultilink_scheduling%2Fpriorities_and_events_intro.html"&gt;SoftDevice timing-activities and priorities&lt;/a&gt; subsection.&lt;/p&gt;
&lt;p&gt;Each advertising event, scan event, and connection event will either be scheduled or not scheduled by the SoftDevice, depending on whether there is a free slot at the requested time (also taking priorities into account.)&lt;/p&gt;
&lt;p&gt;You have already answered the question regarding scanning (as well as provided the two solutions from which you must choose what best fits your application.)&lt;/p&gt;
&lt;p&gt;Flash access may be prioritized over connectable advertiser and scanner, but if the advertising/scan intervals are short then you will quickly get to a situation of &amp;quot;has been blocked consecutively for a few times&amp;quot; which means advertiser/scanner gets higher priority than flash access.&lt;/p&gt;
&lt;p&gt;Keeping connections through flash erases should normally be no problem, depending on the connection setup with regards to supervision timeout.&lt;/p&gt;
&lt;p&gt;In all cases it is important not to request more time (through BLE activity, flash, timeslots, etc.) than what is available, in order for the lower priority activities to get scheduled.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash erase failure when scanning interval/window is 3.125 ms</title><link>https://devzone.nordicsemi.com/thread/192979?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 17:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ae7b556-91ce-4a2e-934b-15929b623ba9</guid><dc:creator>Guilherme de Paula</dc:creator><description>&lt;p&gt;Additionally:&lt;/p&gt;
&lt;p&gt;1. How about advertising?&amp;nbsp; If I advertise with an interval/window smaller than about 90 ms?&amp;nbsp; Should I also stop/restart advertising?&lt;/p&gt;
&lt;p&gt;2. And if I&amp;#39;m connected, should I disconnect or postpone the Flash page erase as well?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing this issue would apply to all 3 &amp;hellip; scanning, advertising and connection.&amp;nbsp; Is that right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash erase failure when scanning interval/window is 3.125 ms</title><link>https://devzone.nordicsemi.com/thread/192978?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 17:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b92c20d-d105-4002-b7c7-906b20f246e6</guid><dc:creator>Guilherme de Paula</dc:creator><description>&lt;p&gt;Yes, I think I&amp;#39;ve figured it out.&amp;nbsp; If Flash page erasure takes 85 ms (plus possible overhead), then I can&amp;#39;t scan with an interval/window shorter than about 90 ms.&amp;nbsp; I guess that if I really need to have a short scan interval, then I just have to stop scanning, then erase Flash page, then restart scanning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>