<?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>crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33038/crash-in-ble_template_app-from-nrf5-sdk-15-0-0</link><description>I&amp;#39;ve installed the ble_template_app on the nrf52832DK and the nrf52840PDK and the Adafruit nrf52 Feather (almost the same as the nrf52832DK). I&amp;#39;ve modified the configuration enough to have Segger RTT logging enabled, but no changes to main. 
 I&amp;#39;m seeing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Apr 2018 13:32:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33038/crash-in-ble_template_app-from-nrf5-sdk-15-0-0" /><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/128823?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 13:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e2012d-cfa3-4599-9f04-61493479fc5a</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18075/nrf52-does-not-enter-system-off" target="_blank" rel="noopener noreferrer"&gt;Another Thread describing this in more depth&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/128781?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 11:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7f4f654-f792-49d7-be91-eb498907cc5e</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;what does &amp;quot;debugging&amp;quot; means in this case? No -DEBUG in Keil? No RTT logging? No SWD connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/128755?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 09:19:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78c39112-2302-4d7c-87f5-24a634d43225</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Breakpoint 1, app_error_handler (error_code=8198, line_num=323, p_file_name=0x2f468 &amp;quot;../../../main.c&amp;quot;)
    at C:\Users\male\Desktop\SDK\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_CUSTOM/components/libraries/util/app_error_handler_gcc.c:49
49          __ASM volatile(
(gdb) bt&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which is:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9a62ddd10b90439e8bc30d18907420bf/pastedimage1524042725690v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This can be solved by not going to system-off when debugging. First, fix that by not going into system off then debug and see for future errors&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/128657?ContentTypeID=1</link><pubDate>Tue, 17 Apr 2018 14:33:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63114ecb-9892-41f8-87cb-a40c3aca7ba8</guid><dc:creator>david zuhn</dc:creator><description>&lt;p&gt;I will note that this crash occurs even when the debugger is not active.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/128656?ContentTypeID=1</link><pubDate>Tue, 17 Apr 2018 14:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aedea72-76c5-46ff-af61-f5beda40e634</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I am unfortunately not that familiar with GDB, but it looks that you are getting error:&amp;nbsp;0x2006 &amp;quot;NRF_ERROR_SOC_POWER_OFF_SHOULD_NOT_RETURN&amp;quot; on line 663 in ble_advertising.c.&lt;/p&gt;
&lt;p&gt;You could check out this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/15677/why-does-nrf52-hrs-sdk11-example-sd_power_off-return-6#post-id-90460" target="_blank" rel="noopener noreferrer"&gt;thread&lt;/a&gt;&amp;nbsp;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/17016/problem-with-emulated-system-off-mode-with-nrf52#post-id-98831"&gt;this&lt;/a&gt;&amp;nbsp;to see if they can be of help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/128317?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 22:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73d91821-c471-4987-9679-ba8ed4554675</guid><dc:creator>david zuhn</dc:creator><description>&lt;p&gt;I removed -O3, added -DDEBUG.&amp;nbsp; &amp;nbsp;Here&amp;#39;s the RTT log&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.
&amp;lt;error&amp;gt; app: ERROR 8198 [Unknown error code] at ../../../main.c:323
PC at: 0x0002E7E5
&amp;lt;error&amp;gt; app: End of error report&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and the results in the debugger:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Breakpoint 1, app_error_fault_handler (id=16385, pc=190437, info=536935544)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error_weak.c:57
57	    __disable_irq();
(gdb) where
#0  app_error_fault_handler (id=16385, pc=190437, info=536935544)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error_weak.c:57
#1  0x00027950 in app_error_handler (error_code=16385, line_num=190437, p_file_name=0x2000fc78 &amp;quot;C\001&amp;quot;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error_handler_gcc.c:49
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) list
52	 * Function is implemented as weak so that it can be overwritten by custom application error handler
53	 * when needed.
54	 */
55	__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
56	{
57	    __disable_irq();
58	    NRF_LOG_FINAL_FLUSH();
59	
60	#ifndef DEBUG
61	    NRF_LOG_ERROR(&amp;quot;Fatal error&amp;quot;);
(gdb) p/x id
$10 = 0x4001
(gdb) p/x pc
$11 = 0x2e7e5
(gdb) p/x info
$12 = 0x2000fc78
(gdb) up
#1  0x00027950 in app_error_handler (error_code=16385, line_num=190437, p_file_name=0x2000fc78 &amp;quot;C\001&amp;quot;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error_handler_gcc.c:49
49	    __ASM volatile(
(gdb) list
44	#if defined (__CORTEX_M) &amp;amp;&amp;amp; (__CORTEX_M == 0x04)
45	void app_error_handler(ret_code_t error_code, uint32_t line_num, const uint8_t * p_file_name) __attribute__(( naked ));
46	
47	void app_error_handler(ret_code_t error_code, uint32_t line_num, const uint8_t * p_file_name)
48	{
49	    __ASM volatile(
50	
51	    &amp;quot;push {lr}                      \n&amp;quot;
52	
53	    /* reserve space on stack for error_info_t struct - preserve 8byte stack aligment */
(gdb) p error_code
$13 = 16385
(gdb) p line_num
$14 = 190437
(gdb) p *p_file_name
$15 = 67 &amp;#39;C&amp;#39;
(gdb) p p_file_name
$16 = (const uint8_t *) 0x2000fc78 &amp;quot;C\001&amp;quot;
(gdb) cont
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00027a62 in app_error_fault_handler (id=16385, pc=190437, info=536935544)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error_weak.c:99
99	    NRF_BREAKPOINT_COND;
(gdb) 
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/128268?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 13:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ba7b7d-83f8-487f-8028-0fe5b8557001</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Could you&amp;nbsp;&lt;strong&gt;turn off Optimization&lt;/strong&gt; and define&amp;nbsp;&lt;strong&gt;DEBUG&lt;/strong&gt; then post your RTT log. (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;also described here)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/127702?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 00:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:683d52f9-e3e9-4956-9df6-9dc8f66b3e30</guid><dc:creator>david zuhn</dc:creator><description>&lt;p&gt;Here&amp;#39;s the GDB session after a fresh reflash (make erase &amp;amp;&amp;amp; make flash_softdevice &amp;amp;&amp;amp; make flash)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.0.20150604-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type &amp;quot;show copying&amp;quot;
and &amp;quot;show warranty&amp;quot; for details.
This GDB was configured as &amp;quot;--host=x86_64-apple-darwin10 --target=arm-none-eabi&amp;quot;.
Type &amp;quot;show configuration&amp;quot; for configuration details.
For bug reporting instructions, please see:
&amp;lt;http://www.gnu.org/software/gdb/bugs/&amp;gt;.
Find the GDB manual and other documentation resources online at:
&amp;lt;http://www.gnu.org/software/gdb/documentation/&amp;gt;.
For help, type &amp;quot;help&amp;quot;.
Type &amp;quot;apropos word&amp;quot; to search for commands related to &amp;quot;word&amp;quot;.
0x0000baa4 in ?? ()
Select SWD as target interface
Target endianess set to &amp;quot;little endian&amp;quot;
Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.
Selecting device: nrf52832
Target interface speed set to 1000 kHz
Breakpoint 1 at 0x27194: file /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error_weak.c, line 56.
Loading section .text, size 0x995c lma 0x26000
Loading section .sdh_soc_observers, size 0x18 lma 0x2f95c
Loading section .sdh_ble_observers, size 0x40 lma 0x2f974
Loading section .log_const_data, size 0x80 lma 0x2f9b4
Loading section .nrf_balloc, size 0x18 lma 0x2fa34
Loading section .sdh_state_observers, size 0x10 lma 0x2fa4c
Loading section .sdh_stack_observers, size 0x10 lma 0x2fa5c
Loading section .sdh_req_observers, size 0x8 lma 0x2fa6c
Loading section .ARM.exidx, size 0x8 lma 0x2fa74
Loading section .data, size 0xd8 lma 0x2fa7c
Loading section .log_dynamic_data, size 0x40 lma 0x2fb54
Start address 0x262d0, load size 39828
Transfer rate: 36 KB/sec, 1991 bytes/write.
Resetting target
(gdb) cont
Continuing.

Breakpoint 1, app_error_fault_handler (id=id@entry=16385, pc=pc@entry=0, info=info@entry=536935476)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error_weak.c:56
56	{
(gdb) list
51	/**
52	 * Function is implemented as weak so that it can be overwritten by custom application error handler
53	 * when needed.
54	 */
55	__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
56	{
57	    __disable_irq();
58	    NRF_LOG_FINAL_FLUSH();
59	
60	#ifndef DEBUG
(gdb) print id
$1 = 16385
(gdb) print pc
$2 = 0
(gdb) p/x info
$4 = 0x2000fc34
(gdb) where
#0  app_error_fault_handler (id=id@entry=16385, pc=pc@entry=0, info=info@entry=536935476)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error_weak.c:56
#1  0x0002718c in app_error_handler_bare (error_code=&amp;lt;optimized out&amp;gt;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error.c:73
#2  0x0002be6a in ble_advertising_start (p_advertising=0x2000362c &amp;lt;m_advertising&amp;gt;, 
    advertising_mode=&amp;lt;optimized out&amp;gt;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/ble/ble_advertising/ble_advertising.c:663
#3  0x0002c07e in on_terminated (p_ble_evt=&amp;lt;optimized out&amp;gt;, p_ble_evt=&amp;lt;optimized out&amp;gt;, 
    p_advertising=0x2000362c &amp;lt;m_advertising&amp;gt;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/ble/ble_advertising/ble_advertising.c:146
#4  ble_advertising_on_ble_evt (p_ble_evt=&amp;lt;optimized out&amp;gt;, p_context=0x2000362c &amp;lt;m_advertising&amp;gt;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/ble/ble_advertising/ble_advertising.c:687
#5  0x0002d27c in nrf_sdh_ble_evts_poll (p_context=&amp;lt;optimized out&amp;gt;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/softdevice/common/nrf_sdh_ble.c:307
#6  0x0002d22a in nrf_sdh_evts_poll ()
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/softdevice/common/nrf_sdh.c:386
#7  SWI2_EGU2_IRQHandler ()
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/softdevice/common/nrf_sdh.c:395
#8  0xffffffe8 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

(gdb) up
#1  0x0002718c in app_error_handler_bare (error_code=&amp;lt;optimized out&amp;gt;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/libraries/util/app_error.c:73
73	    app_error_fault_handler(NRF_FAULT_ID_SDK_ERROR, 0, (uint32_t)(&amp;amp;error_info));
(gdb) p error_info
$5 = {line_num = 0, p_file_name = 0x0, err_code = 8198}

(gdb) up
#2  0x0002be6a in ble_advertising_start (p_advertising=0x2000362c &amp;lt;m_advertising&amp;gt;, 
    advertising_mode=&amp;lt;optimized out&amp;gt;)
    at /Users/zoo/Programming/nordic/SDK/nRF5_SDK_15.0.0_a53641a/components/ble/ble_advertising/ble_advertising.c:663
663	        p_advertising-&amp;gt;evt_handler(p_advertising-&amp;gt;adv_evt);


&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and the console log (via RTT):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.
&amp;lt;error&amp;gt; app: Fatal error&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I did not connect to the service or do anything with this device except sit and wait (~30 seconds or so) for the fatal error to occur.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/127659?ContentTypeID=1</link><pubDate>Tue, 10 Apr 2018 14:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0a08134-f76a-43c9-8e71-d235ee8d082f</guid><dc:creator>david zuhn</dc:creator><description>&lt;p&gt;The changes from the stock 15.0.0 SDK are shown in&amp;nbsp;&lt;a href="https://github.com/davidzuhn/nrf-test-b-a-u/commit/b25fc238fef784434be46075cd01dfa1fb7f0147"&gt;https://github.com/davidzuhn/nrf-test-b-a-u/commit/b25fc238fef784434be46075cd01dfa1fb7f0147&lt;/a&gt;.&amp;nbsp; &amp;nbsp;Nothing to the source of the program itself.&amp;nbsp; &amp;nbsp;Changes to the Makefile to allow me to specify a serial number to nrfjprog.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have erased the chip and reflashed everything (via &amp;#39;make erase &amp;amp;&amp;amp; make flash_softdevice &amp;amp;&amp;amp; make flash&amp;#39;).&amp;nbsp; &amp;nbsp;That didn&amp;#39;t change anything.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll upload the details from app_error_handler and the RTT log tonight.&amp;nbsp; &amp;nbsp;Although the RTT log is basically just &amp;quot;app:&amp;nbsp;&lt;span&gt;Debug logging for UART over RTT started.&amp;quot; shortly followed by &amp;quot;app:&lt;/span&gt;&amp;nbsp;Fatal error&amp;quot;.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/127635?ContentTypeID=1</link><pubDate>Tue, 10 Apr 2018 13:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e87ea09c-0054-4527-a759-eb1fb7987a65</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;fewer changes needed&amp;quot;? What did you change from the unmodified application?&lt;/p&gt;
&lt;p&gt;What error code do you get out of your &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting#60126" target="_blank" rel="noopener noreferrer"&gt;app_error_handler`&lt;/a&gt;`?&lt;/p&gt;
&lt;p&gt;Could you try to erase your chip then try to flash the Softdevice and application again.&lt;/p&gt;
&lt;p&gt;Send me your RTT log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/127134?ContentTypeID=1</link><pubDate>Fri, 06 Apr 2018 00:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a6e697-4327-4909-a36b-3b177d2c10dd</guid><dc:creator>david zuhn</dc:creator><description>&lt;p&gt;I have now tested the ble_app_uart application (see my source at&amp;nbsp;&lt;a href="https://github.com/davidzuhn/nrf-test-b-a-u"&gt;https://github.com/davidzuhn/nrf-test-b-a-u&lt;/a&gt;).&amp;nbsp; &amp;nbsp;Fewer changes needed, as the RTT console was already enabled.&amp;nbsp; &amp;nbsp;I see the same results -- app: Fatal error -- although it seems to take a little longer for this to occurs (minutes rather than seconds).&amp;nbsp; &amp;nbsp;Stack traces from within gdb look very much like that shown for the ble_app_template.&amp;nbsp; &amp;nbsp;The calling point for the entry to app_error_handler is the&amp;nbsp;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;nRF5_SDK_15.0.0_a53641a/components/ble/ble_advertising/ble_advertising.c:663 file (again, shown above).&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;This happens on both the nrf52832 DK (pca10040) and the nrf52840 PDK (pca10056).&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/126943?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 23:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da3a305-8f1c-4baf-a8e3-62654aa81690</guid><dc:creator>david zuhn</dc:creator><description>&lt;p&gt;I will also note that the program still exhibits the same crash behavior if I disable optimization (remove -O3 from the Makefile OPT setting).&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/126941?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 23:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b79b63-d5dd-494e-b34c-ff7f20b6ecc4</guid><dc:creator>david zuhn</dc:creator><description>&lt;p&gt;I have seen unusual issues with other programs (of my own).&amp;nbsp; &amp;nbsp;This is the only demo program I&amp;#39;ve tried using so far.&amp;nbsp; &amp;nbsp;I&amp;#39;ll try ble_app_uart tomorrow.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve put my application into github at&amp;nbsp;&lt;a href="https://github.com/davidzuhn/nrf-test-app.git"&gt;github.com/.../nrf-test-app.git&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The changes I made were:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;set SDK_ROOT accordingly (points to an unmodified 15.0.0 directory)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;set NRF_LOG_BACKEND_RTT_ENABLED to 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;setup the Makefiles to use a variable for NRFJPROG (since I have several boards attached at once, I set --snr XYZ appropriately).&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s it.&amp;nbsp; &amp;nbsp;NO changes to the code of the program.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have done some debugging (see the original report, which includes the call trace of the crash).&amp;nbsp; &amp;nbsp;I don&amp;#39;t understand how a call to p_advertising-&amp;gt;evt_handler() ends up in the app_error_handler (since the stack trace doesn&amp;#39;t show anything from within the evt_handler function).&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have no sniffer log available at this time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: crash in ble_template_app (from nRF5 SDK 15.0.0)</title><link>https://devzone.nordicsemi.com/thread/126878?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 13:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47eacdb0-11a3-43a9-94d0-d2599782dbc8</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hello David,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I need a little more information from you:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Have you tested with other unmodified examples like &amp;quot;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_nus_eval.html&amp;amp;cp=4_0_0_4_1_2_24" target="_blank" rel="noopener noreferrer"&gt;ble_app_uart&lt;/a&gt;&amp;quot;?&lt;/p&gt;
&lt;p&gt;Could you include your code?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What have you added to the template project?&lt;/p&gt;
&lt;p&gt;Have you tried&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting" target="_blank" rel="noopener noreferrer"&gt;debugging&lt;/a&gt;&amp;nbsp;your code?&lt;/p&gt;
&lt;p&gt;If you have a BLE connection between the devices, a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer" target="_blank" rel="noopener noreferrer"&gt;sniffer log&lt;/a&gt; would be helpful to see what is going on over the air.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>