<?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>Attaching gdb to running nRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5671/attaching-gdb-to-running-nrf51822</link><description>I have an nRF51822 board that is running fine for a while. At some point, it runs into an error and calls ble_debug_assert_handler() and goes into an infinite loop. At that point, I would like to hook it up to a JLink and start gdb to find what the error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Mar 2015 20:43:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5671/attaching-gdb-to-running-nrf51822" /><item><title>RE: Attaching gdb to running nRF51822</title><link>https://devzone.nordicsemi.com/thread/19866?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2015 20:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2880cd49-066a-4429-86ff-ee69e8a0a699</guid><dc:creator>v</dc:creator><description>&lt;p&gt;I have just found a solution by Eliot Stock. This is a partial solution for me, since I have several boards running at the same time and only one of them can be connected and debugged at a time. Here is a link to Eliot Stock&amp;#39;s solution for reference:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/7050/reattaching-gdb-to-a-running-nrf51822/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Attaching gdb to running nRF51822</title><link>https://devzone.nordicsemi.com/thread/19865?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 18:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92082959-9695-46f8-8983-6ba7e94b65ad</guid><dc:creator>v</dc:creator><description>&lt;p&gt;Thanks for pointing that out, but, yes, unfortunately, that does not work. I imagine there ought to be a way to attach gdb and some Nordic engineers must have done this before.&lt;/p&gt;
&lt;p&gt;In case attaching gdb to a running board does not work, the documentation for ble_debug_assert_handler() says that it writes the error code, line number, and filename to flash. I am thinking another way is to hook up the board after the error occurred and read the flash for those values. But I am not sure at the moment where in flash those values are stored at.
&lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.2.0/s110/html/a00111.html"&gt;developer.nordicsemi.com/.../a00111.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Attaching gdb to running nRF51822</title><link>https://devzone.nordicsemi.com/thread/19864?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 09:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed33c5ed-cdd3-44e9-b5d7-1343dab111da</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using the Eclipse GDB Segger J-Link Debugging Plugin which allows me to check the &amp;quot;Connect to running target&amp;quot; option in the Debugger-Tab. Unfortunately, the accompanying info tip tells me, that this is currently not supported by SEGGER. I hope that this is just my setup and I could get this to run because it would be helpful for errors that only occur on a random basis.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>