<?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>Undesirable reset of nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22747/undesirable-reset-of-nrf51822</link><description>Hello,
I am using PCA10028 and sdk12.2. My challenge is nrf51822 resets after it executes the code for the first time. 
 I am storing few values in flash. After that I am using function for advertising. But after advertising for few seconds my nrf51</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jun 2017 13:18:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22747/undesirable-reset-of-nrf51822" /><item><title>RE: Undesirable reset of nrf51822</title><link>https://devzone.nordicsemi.com/thread/89416?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 13:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d2dba92-4d2d-410f-9536-a8a498625814</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, 0 means success, so then you could be getting a different error. Please debug to find the error.&lt;/p&gt;
&lt;p&gt;You also have a duplicate in Mypage and &lt;a href="https://devzone.nordicsemi.com/question/150468/how-to-send-data-from-flash-memory-to-ble/"&gt;here&lt;/a&gt;. Please continue on MyPage. Closing this one as duplicate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undesirable reset of nrf51822</title><link>https://devzone.nordicsemi.com/thread/89415?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 13:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db52d142-a35e-4bfa-b378-5ba8c7f8c8eb</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hello Sigurd,
I want to store 4000 samples in flash and send it out to nrf app using ble.
I have tested the return value of
FDS_TEST_INIT, FDS_TEST_WRITE and FDS_TEST_READ and all returns 0 and I think this means success.
Can you edit the code or suggest me what should I add to get rid of this error.
Thanks,
Shailav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undesirable reset of nrf51822</title><link>https://devzone.nordicsemi.com/thread/89414?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 12:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de40895a-a416-4058-8e21-06e5429cced3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A reset indicates that you are running into the error handler, where the default behavior is to do a reset. You should then debug in order to find the reason for the reset. See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this post&lt;/a&gt; about debugging.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Doing a quick test with the code you posted, I got the error &lt;code&gt;FDS_ERR_NO_SPACE_IN_QUEUES&lt;/code&gt;from the  &lt;code&gt;fds_test_write()&lt;/code&gt; in the main() function.&lt;/p&gt;
&lt;p&gt;From infocenter:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;FDS_OP_QUEUE_SIZE&lt;/code&gt;: The size of the
internal queue of FDS operations.
Increase the size if there are many
users, or if your application will
queue many operations at a time
without waiting for the previous
operations to complete. In general,
you should increase the queue size if
you frequently receive
&lt;code&gt;FDS_ERR_NO_SPACE_IN_QUEUES&lt;/code&gt; errors.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;FDS_CHUNK_QUEUE_SIZE&lt;/code&gt;: The number of
record chunks (pieces of record data)
that can be buffered. Increase the
queue size if you frequently receive
&lt;code&gt;FDS_ERR_NO_SPACE_IN_QUEUES&lt;/code&gt; errors
and your data is typically composed of
many chunks.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>