<?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>SES debugger crashes without reason</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43882/ses-debugger-crashes-without-reason</link><description>Hi, 
 I have an app that uses freeRTOS 
 My app runs OK , however when I am debugging it in segger studio with my SWD connector, it crashes with no reason 
 
 If I check the dissassembly window, the line in which it crashes is 
 4B01 ldr r3, [pc, #4]</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Sep 2019 08:07:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43882/ses-debugger-crashes-without-reason" /><item><title>RE: SES debugger crashes without reason</title><link>https://devzone.nordicsemi.com/thread/209090?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 08:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d62cc69-b364-4475-8b70-d459eea13122</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Doesn&amp;#39;t&amp;nbsp;&lt;em&gt;&lt;strong&gt;ble_scan_stop()&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;return a status code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SES debugger crashes without reason</title><link>https://devzone.nordicsemi.com/thread/209074?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 07:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8bf5eef-7525-45e0-824e-faaeb84e914c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;It sounds like the nRF is entering the HardFault handler.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should use the hardfault handler from the hardfault handling library. Just add the following files to your build and enable the handler in sdk_config.h:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- nRF5_SDK_15.3.0_59ac345\components\libraries\hardfault\hardfault_implementation.c&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- nRF5_SDK_15.3.0_59ac345\components\libraries\hardfault\nrf52\handler\hardfault_handler_&amp;lt;name of toolchain used&amp;gt;.c&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This handler will attempt to determine the cause and print out the error information.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SES debugger crashes without reason</title><link>https://devzone.nordicsemi.com/thread/209051?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 03:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b900c7ed-7aa2-44b7-b6af-750c9492e717</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/DIS.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SES debugger crashes without reason</title><link>https://devzone.nordicsemi.com/thread/209050?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 03:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4000e72b-227e-4df7-8aa9-7c67910c35c3</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/CPU.jpg" /&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/STACK.jpg" /&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/7801.LOG.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SES debugger crashes without reason</title><link>https://devzone.nordicsemi.com/thread/209048?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 03:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee39d85a-7dc3-47e4-b1e9-7373f1cb3b2c</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;I have a similar issue, related code as follow:&lt;br /&gt;The scan had been stopped, but if I call &lt;em&gt;&lt;strong&gt;ble_scan_stop() &lt;/strong&gt;&lt;/em&gt;again after some while, it crashes atfer printing &amp;quot;Scan stop!&amp;quot; with no reason, and the call stack window show nothing, the dissassembly window show it crashed at : &lt;br /&gt;&lt;strong&gt;4B01 ldr r3, [pc, #4]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;source code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
void ble_scan_stop(void)
{
    nrf_ble_scan_stop();
    event_send(CENTRAL_SCAN_STOP, NULL);
    
    NRF_LOG_INFO(&amp;quot;Scan stop!&amp;quot;);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SES debugger crashes without reason</title><link>https://devzone.nordicsemi.com/thread/209046?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 03:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14399cc9-c8e5-4d53-9599-08dcec013e65</guid><dc:creator>jhc</dc:creator><description>&lt;p&gt;I have a similar issue, related code as follow:&lt;br /&gt;The scan had been stopped, but if I call &lt;em&gt;&lt;strong&gt;ble_scan_stop() &lt;/strong&gt;&lt;/em&gt;again after some while, it crashes atfer printing &amp;quot;Scan stop!&amp;quot; with no reason, and the call stack window show nothing, the dissassembly window show it crashed at : &lt;br /&gt;&lt;strong&gt;4B01 ldr r3, [pc, #4]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;source code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
void ble_scan_stop(void)
{
    nrf_ble_scan_stop();
    event_send(CENTRAL_SCAN_STOP, NULL);
    
    NRF_LOG_INFO(&amp;quot;Scan stop!&amp;quot;);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SES debugger crashes without reason</title><link>https://devzone.nordicsemi.com/thread/171931?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 14:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4f37780-5113-4aaf-ab11-d0f1ec95d5f9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Asantos,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to provide more information, the content of the CPU registers, the call stack etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you stepping through the code after the SoftDevice has been enabled? Are you stepping into a function with a sd_-prefix, i.e. a SoftDevice function?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>