<?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>system auto reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52472/system-auto-reset</link><description>I use sdk13.0,s332,when my system working,it will auto reset about 129 seconds per time,I make a breakpoint,find it caused by &amp;quot;softdevice_fault_handler&amp;quot;,when it reset,the parameter: 
 id=1,pc=18640,info=0,,waht&amp;#39;s the priblem?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Sep 2019 20:09:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52472/system-auto-reset" /><item><title>RE: system auto reset</title><link>https://devzone.nordicsemi.com/thread/211917?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 20:09:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce6d611b-7112-4af1-9c8c-cd1827ac3499</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Maybe direct this question to the thisisant forum? For instance I can find:&lt;br /&gt;&lt;a href="https://www.thisisant.com/forum/viewthread/6713/"&gt;https://www.thisisant.com/forum/viewthread/6713/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system auto reset</title><link>https://devzone.nordicsemi.com/thread/211756?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 09:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a0dcafd-d700-4b46-a03f-89a212a1368c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.avrfreaks.net/comment/2418156#comment-2418156" rel="noopener noreferrer" target="_blank"&gt;How To Debug&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;IAR&amp;#39;s debug capabilities will work just the same on nRF as on any other Cortex-M4.&lt;/p&gt;
&lt;p&gt;RTT is Segger-specific, but not dependent on the IDE.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/communicate.html"&gt;infocenter.nordicsemi.com/.../communicate.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Nordic provide some tutorials for SES &amp;amp; Keil:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_keil/UG/gsg/debug.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_keil/UG/gsg/debug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All IDEs have basically the same capabilities - so you can work out how to apply them for IAR.&lt;/p&gt;
&lt;p&gt;With a SoftDevice enabled, you are likely to need Monitor-Mode Debug - this is also&amp;nbsp;&lt;span&gt;Segger-specific, but&amp;nbsp;transparent to&amp;nbsp; the IDE:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48647/ble-debugging-on-nrf52/193088#193088"&gt;devzone.nordicsemi.com/.../193088&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging---revolutionize-the-way-you-debug-ble-applications"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging---revolutionize-the-way-you-debug-ble-applications&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38666/monitor-mode-debugging/149581#149581"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38666/monitor-mode-debugging/149581#149581&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system auto reset</title><link>https://devzone.nordicsemi.com/thread/211389?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 00:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be86b94-1499-49d7-ac81-02262d25470d</guid><dc:creator>jwx</dc:creator><description>&lt;p&gt;sorry，I&amp;nbsp;use IAR,how&amp;nbsp;to&amp;nbsp;debug？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system auto reset</title><link>https://devzone.nordicsemi.com/thread/211170?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 09:35:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b56918c-995e-4aa0-8a08-0583208b1e03</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5224._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;
[quote userid="19133" url="~/f/nordic-q-a/52472/system-auto-reset/211161"]I enable it [/quote]
&lt;p&gt;How &amp;amp; where, exactly ?&lt;/p&gt;
[quote userid="19133" url="~/f/nordic-q-a/52472/system-auto-reset/211161"]can&amp;#39;t complie[/quote]
&lt;p&gt;Why not?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fdebug.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fdebug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fdebug.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fdebug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system auto reset</title><link>https://devzone.nordicsemi.com/thread/211161?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 09:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e9a850-76eb-4599-82c4-052bf8807520</guid><dc:creator>jwx</dc:creator><description>&lt;p&gt;how to print the debug infor ?I enable it , can&amp;#39;t complie.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;don&amp;#39;t&amp;nbsp;add&amp;nbsp;bt&amp;nbsp;code，now&amp;nbsp;it&amp;nbsp;only&amp;nbsp;run&amp;nbsp;Ant&amp;nbsp;scan，when I delete the function&amp;quot;&amp;nbsp;&lt;span&gt;continuous_scan_init() &amp;quot;at&amp;nbsp;Initialize,it can run ok,but use it ,the system will reset 129s per time.pls see the function&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;static void continuous_scan_init()&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; static uint8_t network_key[] = {0xB9, 0xA5, 0x21, 0xFB, 0xBD, 0x72, 0xC3, 0x45};&lt;br /&gt; // Set library config to report RSSI and Device ID&lt;br /&gt; err_code = sd_ant_lib_config_set(&lt;br /&gt; ANT_LIB_CONFIG_MESG_OUT_INC_RSSI | ANT_LIB_CONFIG_MESG_OUT_INC_DEVICE_ID);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;// Configure channel 0 for scanning mode, but do not open it.&lt;br /&gt; // The scanning channel will be opened in scan mode for a short amount of time on a button press.&lt;br /&gt; ant_channel_config_t channel_config =&lt;br /&gt; {&lt;br /&gt; .channel_number = ANT_SCAN_CHANNEL_NUMBER,&lt;br /&gt; .channel_type = CHANNEL_TYPE_SLAVE,&lt;br /&gt; .ext_assign = 0x00,&lt;br /&gt; .rf_freq = RF_FREQ,&amp;nbsp; //57&lt;br /&gt; .transmission_type = CHAN_ID_TRANS_TYPE,&amp;nbsp; &amp;nbsp; &amp;nbsp;// 0&lt;br /&gt; .device_type = CHAN_ID_DEV_TYPE,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//120&lt;br /&gt; .device_number = 0x00, // Wildcard&lt;br /&gt; .channel_period = 0x00, // Not used, since this is going to be scanning&lt;br /&gt; .network_number = ANT_NETWORK_NUMBER,&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;err_code = ant_channel_init(&amp;amp;channel_config);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;err_code =sd_ant_network_address_set(ANT_SCAN_CHANNEL_NUMBER, network_key);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; err_code = sd_ant_rx_scan_mode_start(ANT_SCAN_CHANNEL_NUMBER);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; // Assign a second channel for sending messages on the reverse direction&lt;br /&gt; // There is no need to configure any other parameters, this channel is never opened;&lt;br /&gt; // its resources are used by ANT to send messages in the reverse direction while in&lt;br /&gt; // continuous scanning mode.&lt;br /&gt;/* err_code = sd_ant_channel_assign(ANT_RESPONSE_CHANNEL_NUMBER,&lt;br /&gt; CHANNEL_TYPE_SLAVE,&lt;br /&gt; ANT_NETWORK_NUMBER,&lt;br /&gt; 0x00);&lt;br /&gt; APP_ERROR_CHECK(err_code);*/&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system auto reset</title><link>https://devzone.nordicsemi.com/thread/211151?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 08:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11b5442c-37f2-4b2c-9192-a5409ad0e9ee</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So your code is crashing and it&amp;#39;s going to the Hard Fault handler.&lt;/p&gt;
&lt;p&gt;Do you have a &amp;#39;Debug&amp;#39; configuration that gives log output to help you find the problem?&lt;/p&gt;
&lt;p&gt;Think about what might be happening at 130 seconds - eg, an Advertising timeout, etc ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>