<?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>Softdevice S112 Flash Write Hangs Indefinitely</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61731/softdevice-s112-flash-write-hangs-indefinitely</link><description>Hi all, Within my application I&amp;#39;ve followed the example/fstorage to the letter however upon requesting a flash write to the s112 the nrf_fstorage_is_busy() function loops indefinitely. Spec: 
 The flash page has been sectioned off in the XML. And is also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 May 2020 10:59:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61731/softdevice-s112-flash-write-hangs-indefinitely" /><item><title>RE: Softdevice S112 Flash Write Hangs Indefinitely</title><link>https://devzone.nordicsemi.com/thread/251683?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 10:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:136e8bc4-ef8c-4865-8a6c-3ab79e62611e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming that it worked. I don&amp;#39;t think super obvious wait_for_flash_ready() can become blocking. You are definitely not the first one to encounter this problem. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice S112 Flash Write Hangs Indefinitely</title><link>https://devzone.nordicsemi.com/thread/251541?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 15:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3383e1c-19ab-42e5-a35d-37e15d609102</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;Indeed it was this and I&amp;#39;m an idiot for not realising. I moved the check and response into the main loop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice S112 Flash Write Hangs Indefinitely</title><link>https://devzone.nordicsemi.com/thread/251510?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 13:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a5ce128-a9e6-439f-814d-e3aa51952a6c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try this without calling wait_for_flash_ready() and instead monitor the fstorage callback (or read flash content) to check if data is being successfully written? Not sure if it&amp;#39;s relevant to the problem you see, but&amp;nbsp; wait_for_flash_ready() will become blocking if called from an interrupt context with priority 6 or higher because it would prevent Softdevice flash events from getting through (ie the fstorage busy flag will not get cleared).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>