<?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>Device crashes when debug flags are turned on</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25421/device-crashes-when-debug-flags-are-turned-on</link><description>I am writing firmware for a BLE Nano device using the Nordic SDK 8.1. I was having problems where my device would suddenly stop printing to UART and stop trying to bond with ble peripherals also. It seems like it is crashing so I went to turn debug mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2017 14:15:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25421/device-crashes-when-debug-flags-are-turned-on" /><item><title>RE: Device crashes when debug flags are turned on</title><link>https://devzone.nordicsemi.com/thread/100192?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 14:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eddfe86-94e4-4bc9-b23a-86aa32817748</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;There are many guides online. Here is &lt;a href="https://mcuoneclipse.com/2015/03/25/command-line-programming-and-debugging-with-gdb/"&gt;one&lt;/a&gt; . But it&amp;#39;s not sure MK20 support it.&lt;/p&gt;
&lt;p&gt;Generally we recommend to buy a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52-DK"&gt;nRF5x-DK&lt;/a&gt; for development.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device crashes when debug flags are turned on</title><link>https://devzone.nordicsemi.com/thread/100190?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 16:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc203b0-f0ac-45ea-91fb-a41c24ed07c1</guid><dc:creator>tyler</dc:creator><description>&lt;p&gt;@sigurd Yes I am using the Freescale MK20 to program the board.  How would I go about setting up GDB debugging with it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device crashes when debug flags are turned on</title><link>https://devzone.nordicsemi.com/thread/100191?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 14:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f594be13-422e-439b-ae0d-b26de857792d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It could be that you are running into a hardfault.
Are you using the Freescale MK20 to program the board ? Are you able to debug with that using gdb?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device crashes when debug flags are turned on</title><link>https://devzone.nordicsemi.com/thread/100194?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 15:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c65ebc68-4e44-4f33-98bb-6337a119f3c8</guid><dc:creator>tyler</dc:creator><description>&lt;p&gt;@sigurd, yes I commented out __disable_irq() .  I also tried commenting out ble_debug_assert_handler().  When commenting out ble_debug_assert_handler() didn&amp;#39;t work I added it back into into the code since the comment says it should print a stack trace.  What should I try next?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device crashes when debug flags are turned on</title><link>https://devzone.nordicsemi.com/thread/100193?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 11:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ee54d43-616d-4de6-862c-9b2ca53cd097</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you try the approach we used last time &lt;a href="https://devzone.nordicsemi.com/question/119184/debugging-a-app_error_check/?comment=119339#comment-119339"&gt;in this post&lt;/a&gt; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>