<?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>Why Flash access should be restricted in radio operation?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11184/why-flash-access-should-be-restricted-in-radio-operation</link><description>Hi 
 I want to know why flash memory access should be scheduled in between the protocol radio event?
is there any relation between the flash access and radio opeartion physically ? 
 thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Jan 2016 11:26:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11184/why-flash-access-should-be-restricted-in-radio-operation" /><item><title>RE: Why Flash access should be restricted in radio operation?</title><link>https://devzone.nordicsemi.com/thread/41897?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 11:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67b8e0e6-8c60-4fea-90fa-c1976631ff31</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/lib_pstorage.html?cp=4_0_0_3_17"&gt;pstorage&lt;/a&gt; functions can be called at any time. Pstorage and the SD flash api will make sure that the flash operations are performed between radio events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why Flash access should be restricted in radio operation?</title><link>https://devzone.nordicsemi.com/thread/41895?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 02:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:844b142c-d3c1-4eac-9451-d2e31586cea9</guid><dc:creator>xtting</dc:creator><description>&lt;p&gt;Hi, Berg&lt;/p&gt;
&lt;p&gt;I have some question about it.&lt;/p&gt;
&lt;p&gt;Does this mean I can&amp;#39;t call pstorage_store any time, when the BLE is work? If I called it, the BLE connection may be lost, right?&lt;/p&gt;
&lt;p&gt;How could I do if my BLE-sensor product need to real-time restore the data when BLE connection works? Need I disconnect the connection, then save to flash, then automatically reconnection it? But out purpose to set the transter interval is 1s, you said the save time should be more than 1s up-to 10s, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why Flash access should be restricted in radio operation?</title><link>https://devzone.nordicsemi.com/thread/41893?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 01:30:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8143a5f-ea67-4f0b-93d8-efad9d908cf6</guid><dc:creator>jorbar</dc:creator><description>&lt;p&gt;Thanks RK.&lt;/p&gt;
&lt;p&gt;I understand your explanation.
I&amp;#39;m a beginner at Nordic solution. then it&amp;#39;s my curiosity why those inconveniences should be exist.&lt;/p&gt;
&lt;p&gt;in nRF51 manual, description says CPU is not stalled when CODE/DATA are fetched from RAM even in flash write operation. this fact is the cause of my addtional question.&lt;/p&gt;
&lt;p&gt;But with your description,  it is cleared that because SoftDevice code is always located in flash,
cpu can be halted in radio operation with simultaneous flash access..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why Flash access should be restricted in radio operation?</title><link>https://devzone.nordicsemi.com/thread/41892?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 00:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d63caa1-4400-433a-b337-9ba4c6c73a3d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Which series are we talking about here, nRF51 and nRF52 are slightly different. It&amp;#39;s not really anything to do with reading from flash, it&amp;#39;s writing. tWRITE, tERASE and tERASEALL can take from a few 10s of microseconds to 1/4 second (depending on chip). Those are the operations which need to be scheduled.&lt;/p&gt;
&lt;p&gt;Yes it is true on the nrf51 series that a flash erase can happen with the CPU running as long as code is being read from RAM, but a flash write always stops the CPU and anyway the softdevice code runs from flash,not RAM, and that&amp;#39;s the code which has strict timing requirements. For the nRF52 series it&amp;#39;s not even specified (anywhere I can see) that code can run at all during a page erase.&lt;/p&gt;
&lt;p&gt;So the flash module, which deals with flash writes and erases, needs to be carefully scheduled between radio events to ensure the link stays alive.&lt;/p&gt;
&lt;p&gt;Why does it matter, by the way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why Flash access should be restricted in radio operation?</title><link>https://devzone.nordicsemi.com/thread/41896?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 13:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30832c44-2ffa-4612-bea1-6c8c8ca0d60c</guid><dc:creator>jorbar</dc:creator><description>&lt;p&gt;ok thanks...&lt;/p&gt;
&lt;p&gt;But the description of NVMC chapter says that CPU is halted when CPU tries to fetch the CODE/DATA from flash only. that is, if CPU tries to fetch the CODE/DATA from RAM,
it says there is no halt.&lt;/p&gt;
&lt;p&gt;is it right?&lt;/p&gt;
&lt;p&gt;if then, is the flash acccess in radio operation only restricted when CPU is using the flash for fetching  CODE/DATA ?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why Flash access should be restricted in radio operation?</title><link>https://devzone.nordicsemi.com/thread/41894?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 12:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cbcce92-a701-4826-94c7-86374af3c277</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Some processing from the CPU is required to handle the radio events, but not much. The problem with that is that the CPU is halted during flash operations, see NVMC chapter in the reference manual. So the problem is not the radio itself, but the availability of the CPU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>