<?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>my program starts resetting, after trying to save the logs in to flash.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12500/my-program-starts-resetting-after-trying-to-save-the-logs-in-to-flash</link><description>Hi,
I am using nrf51822 CDAB version chip which has 128kb of flash memory, my code is built on ble_hrs
I am trying to save my app_trace logs i.e., redirecting my printf to the below function which will save the data on to my flash. After adding this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Mar 2016 14:18:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12500/my-program-starts-resetting-after-trying-to-save-the-logs-in-to-flash" /><item><title>RE: my program starts resetting, after trying to save the logs in to flash.</title><link>https://devzone.nordicsemi.com/thread/47385?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 14:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f6c923c-0415-4c00-ab30-b374659082dc</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Faizan&lt;/p&gt;
&lt;p&gt;Why is your device resetting? Do you see any error code in the error handler? Look at &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this thread for info on how to enable the error handler&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/lib_pstorage.html?cp=4_0_4_3_13"&gt;pstorage documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/15271/how-can-i-write-10kb-of-data-to-internal-flash/?answer=17300#post-id-17300"&gt;pstorage examples&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/22791/how-to-preserve-app-data/?comment=22989#comment-22989"&gt;Where stores pstorage data in flash?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>