<?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>FDS asynchronous operation to synchronous</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123353/fds-asynchronous-operation-to-synchronous</link><description>Hi 
 I am writng some peer information just after connection using pm_peer_data_store . I need to read the data stored to do the next task. As the FDS is asynchronous, i am not able to wait for the completion of FDS write using a wait loop. Is there any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Jul 2025 15:20:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123353/fds-asynchronous-operation-to-synchronous" /><item><title>RE: FDS asynchronous operation to synchronous</title><link>https://devzone.nordicsemi.com/thread/544242?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 15:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfcde3f7-5212-44a8-80cc-90e7f4c4a164</guid><dc:creator>Ansil</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for the reply. I will change the program logic then.&lt;/p&gt;
&lt;p&gt;with regards,&lt;/p&gt;
&lt;p&gt;Ansil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS asynchronous operation to synchronous</title><link>https://devzone.nordicsemi.com/thread/544192?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 10:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39100d9a-bb71-422a-968b-283196248bd3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ansil,&lt;/p&gt;
&lt;p&gt;I assume this loop is inside a BLE event running in the SD_EVT_IRQn. This would prevent the application from receiving the flash events signaling the completion of the&amp;nbsp;flash writes from the SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS asynchronous operation to synchronous</title><link>https://devzone.nordicsemi.com/thread/544190?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 09:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70fccb88-4bdd-458a-ab45-6834e195c34b</guid><dc:creator>Ansil</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I have used a wait cycle with sd_app_evt_wait() inside.&amp;nbsp;And i didn&amp;#39;t obtain any event from the peer_data_storage.c. As per documentation, the priority of flash access is four (&lt;a href="https://docs.nordicsemi.com/bundle/sds_s140/page/SDS/s1xx/multilink_scheduling/priorities_and_events_intro.html#priorities_and_events__table_qgg_zc2_cs"&gt;priority&lt;/a&gt;) and&amp;nbsp;also &amp;quot;&lt;span&gt;In order to wake up from disabled interrupts, the SEVONPEND flag has to be set in the Cortex-M MCU&amp;#39;s System Control Register (SCR), CMSIS_SCB&amp;quot; (&lt;a href="https://docs.nordicsemi.com/bundle/s140_v6.1.1_api/page/group_n_r_f_s_o_c_f_u_n_c_t_i_o_n_s.html#ga11d88d38ac99fb72cde74c9385d36433"&gt;disabled interrupts&lt;/a&gt;)&amp;nbsp;&lt;/span&gt;. So are these the reasons for this asynchronous behaviour and also are FDS events disabled interrupts?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;with regards,&lt;/p&gt;
&lt;p&gt;Ansil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS asynchronous operation to synchronous</title><link>https://devzone.nordicsemi.com/thread/544186?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 09:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c2eb0a-7e80-4fe4-b75e-d8e5e98b7a4a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ansil,&lt;/p&gt;
&lt;p&gt;I would suggest changing the program logic to allow this response to be sent after receiving the FDS callback.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS asynchronous operation to synchronous</title><link>https://devzone.nordicsemi.com/thread/544062?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 11:21:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99280d83-46fd-4b6d-a9d4-6def7a66c5fe</guid><dc:creator>Ansil</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;It is for the verification that the data exists in flash and the data is critical. Then the chip can reply that the information is stored successfully.&lt;/p&gt;
&lt;p&gt;with reagrds,&lt;/p&gt;
&lt;p&gt;Ansil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS asynchronous operation to synchronous</title><link>https://devzone.nordicsemi.com/thread/544060?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 11:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d94f70fb-879e-4050-b046-5354250aaa98</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ansil,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not possible to make the API itself synchronous while the&amp;nbsp;softdevice is enabled. However, are you sure you need to read the data back immediately after storing it? Since you already know what you&amp;#39;ve written, why not use that data directly for the next task?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>