<?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>how to re-adverise without resetting the data in RAM on NRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15604/how-to-re-adverise-without-resetting-the-data-in-ram-on-nrf51822</link><description>Hello,
I am using SDK7.1.0 for NRF51822.
In my subroutine, I would like to disconnect with the peer device, and re-advertise. But when after re-advertising, I found the data in RAM has been reset. I would like to know some questions as below: 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Aug 2016 02:36:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15604/how-to-re-adverise-without-resetting-the-data-in-ram-on-nrf51822" /><item><title>RE: how to re-adverise without resetting the data in RAM on NRF51822</title><link>https://devzone.nordicsemi.com/thread/59526?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 02:36:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43fc8806-7821-4643-8331-4db130219a8b</guid><dc:creator>ta2</dc:creator><description>&lt;p&gt;The SoftDevices have strict timing requirements where certain operations (mostly interrupts I think) need to happen on a schedule.&lt;/p&gt;
&lt;p&gt;If you set a breakpoint while a SoftDevice is active, the CPU probably won&amp;#39;t be running when the event from the SoftDevice needs to be handled. This results in a timeout and the SoftDevice will throw an error when you continue the CPU.&lt;/p&gt;
&lt;p&gt;The default operation for all errors  -- if the DEBUG flag is NOT set -- is to call NVIC_SystemReset() which resets the device.&lt;/p&gt;
&lt;p&gt;Using your current build setup -- without the DEBUG flag set --, set a breakpoint on main(). I suspect that you will find when you continue from one of your breakpoints that the device will reset and you&amp;#39;ll be back at main().&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;p&gt;--- tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to re-adverise without resetting the data in RAM on NRF51822</title><link>https://devzone.nordicsemi.com/thread/59525?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 01:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:248edf60-249b-4beb-806b-59f327adaace</guid><dc:creator>sunnyjet16</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thank you for your information. I will check it as you suggested. Actually, I use breakpoint to trace the routines. Just before performing re-advertising start, all the data in RAM is kept correctly, but after doing it, the data reset. Does advisting start() lead the system to check all the errors or warnings? If possible, I would like to know to get error reports from system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to re-adverise without resetting the data in RAM on NRF51822</title><link>https://devzone.nordicsemi.com/thread/59524?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 11:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ba65f34-93a1-463a-af97-d977d5fdbd68</guid><dc:creator>J&amp;#248;rgen Kvalvaag</dc:creator><description>&lt;p&gt;Starting and stopping advertising should not reset your RAM.&lt;/p&gt;
&lt;p&gt;Most likely, you are developing your code without the DEBUG compile flag set. This will cause your device to perform a full system reset on all assert/error conditions.&lt;/p&gt;
&lt;p&gt;Try setting a breakpoint in the assert handler, or recompile your app with the debug flag set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>