<?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>When the app timer is started and the timing time is less than 8Ms, fstore cannot be used to write user data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59896/when-the-app-timer-is-started-and-the-timing-time-is-less-than-8ms-fstore-cannot-be-used-to-write-user-data</link><description>hi, I used NRF52833 to debug the program, and I used the ble_app_hid_mouse project in SDK16 to debug the fstore function ,and the file path is E:\nrf52833\nRF5SDK160098a08e2\examples\ble_peripheral\ble_app_hids_mouse\pca10056\s140\arm5_no_packs. 
 Now</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Apr 2020 08:14:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59896/when-the-app-timer-is-started-and-the-timing-time-is-less-than-8ms-fstore-cannot-be-used-to-write-user-data" /><item><title>RE: When the app timer is started and the timing time is less than 8Ms, fstore cannot be used to write user data</title><link>https://devzone.nordicsemi.com/thread/243817?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 08:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4bda0e2-6fa2-4bf3-a87b-a36068c6a919</guid><dc:creator>summer</dc:creator><description>&lt;p&gt;ok,thank you very much,&amp;nbsp;&lt;span&gt;I know what to do.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When the app timer is started and the timing time is less than 8Ms, fstore cannot be used to write user data</title><link>https://devzone.nordicsemi.com/thread/243815?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 08:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aa62033-b27b-48a8-b0a0-44eba64c7498</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It will likely&amp;nbsp;prevent the NRF_ERROR_NO_MEM error and should be ok as long as you do this infrequently. For more frequent flash operations I would recommend using the FDS filesystem on top because it leads to fewer page erases and provide basic wear leveling for flash. Note that the&amp;nbsp;&lt;a title="Absolute maximum ratings" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/abs_max_ratings.html?cp=4_2_0_4#abs_max_ratings"&gt;Absolute maximum ratings&lt;/a&gt;&amp;nbsp;specify&amp;nbsp;the flash endurance to 10 000 cycles.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When the app timer is started and the timing time is less than 8Ms, fstore cannot be used to write user data</title><link>https://devzone.nordicsemi.com/thread/243801?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 07:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d321849c-94d8-4e04-8562-e134cc12c841</guid><dc:creator>summer</dc:creator><description>&lt;p&gt;Thank you very much. w&lt;span&gt;hen I erase flash, I stop the timer and wait for the flash write to complete,a&lt;/span&gt;nd then turn on the timer,may I ask if this method is ok?&amp;nbsp;&amp;nbsp;Is there a better way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When the app timer is started and the timing time is less than 8Ms, fstore cannot be used to write user data</title><link>https://devzone.nordicsemi.com/thread/243788?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 06:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec507b4-cc9b-40ff-ae8d-e8272e596859</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the log. The assertion is occurring in the app timer because you have run out of space in the app scheduler queue.&amp;nbsp; You may try to increase the size of &amp;#39;SCHED_QUEUE_SIZE&amp;#39; to see if it helps. But keep in mind that flash erase operations take around 90 ms to complete, so you will eventually run out of&amp;nbsp;queues if you repeat this operation every 8 ms.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When the app timer is started and the timing time is less than 8Ms, fstore cannot be used to write user data</title><link>https://devzone.nordicsemi.com/thread/243770?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 01:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed61bae4-0158-4d3e-92a0-bb7f48c3bae6</guid><dc:creator>summer</dc:creator><description>&lt;p&gt;hi ,&lt;span&gt;When I erase flash using nrf_fstorage_erase, the err_code returned is 0x0000000,&lt;em&gt;&lt;span class="skip"&gt;as shown in the following figure:&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;span class="skip"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1586221245043v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p class="src"&gt;When I turned on the debug&amp;nbsp; log, the &lt;span&gt;log&amp;nbsp;&lt;/span&gt;data was printed as follows:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;span class="skip"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1586221335358v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p class="src"&gt;May I ask what I should do? thanks.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;span class="skip"&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When the app timer is started and the timing time is less than 8Ms, fstore cannot be used to write user data</title><link>https://devzone.nordicsemi.com/thread/243615?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 11:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e48ead5-7571-42ea-a175-278f04cf1700</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to check what the returned error&amp;nbsp;from&amp;nbsp;&lt;a title="nrf_fstorage_write" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__fstorage.html?cp=7_1_6_11_20_20#ga5a37147f85e54eb049d3cad8bf59c807"&gt;nrf_fstorage_write&lt;/a&gt;() is? Or do you get the error in your fstorage callback?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>