<?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>nRF52840 DONGLE debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51719/nrf52840-dongle-debugging</link><description>Hi, 
 
 I am developing a project using the nRF52840 DONGLE. As part of the process, I need to be able to debug my code, so I am using IAR and a J-TRACE PRO for that. The problem is, when I download any program that uses BLE, I just cant debug, as the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Sep 2019 20:37:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51719/nrf52840-dongle-debugging" /><item><title>RE: nRF52840 DONGLE debugging</title><link>https://devzone.nordicsemi.com/thread/208047?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 20:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741d177d-7eb8-40d5-829a-5124814141c3</guid><dc:creator>Eduardo Carletti</dc:creator><description>&lt;p&gt;I was already including the Softdevice in the IAR Build, the diference was that I was using the newest version, not the 6.1.0 as you suggested. Using this older version solved the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DONGLE debugging</title><link>https://devzone.nordicsemi.com/thread/208046?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 20:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086d10b4-35b4-4485-ab15-db952cffb1db</guid><dc:creator>Eduardo Carletti</dc:creator><description>&lt;p&gt;I am aware of the recomendation of the DK for the development, but I don&amp;#39;t have one on hand right now. I did a full erase previously, but it didn&amp;#39;t solved the problem alone. The solution given by hmolesworth did the trick.&lt;/p&gt;
&lt;p&gt;About nRFGO, if it is so outdated, why is this istill available as a active tool for nRF family? I think it should be, at least, advised on the software page this non recomendation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DONGLE debugging</title><link>https://devzone.nordicsemi.com/thread/207731?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 15:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e5d3df-cf24-40ec-b2cc-2474f428abad</guid><dc:creator>awneil</dc:creator><description>[quote userid="65515" url="~/f/nordic-q-a/51719/nrf52840-dongle-debugging/207728"]Debugging code with softdevice interrupts running using stepping is another issue[/quote]
&lt;p&gt;Indeed - See &lt;strong&gt;&lt;em&gt;Monitor Mode&lt;/em&gt; Debugging&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44100/nrf52832-ble_app_uart-as-central/173442#173442"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/44100/nrf52832-ble_app_uart-as-central/173442#173442&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DONGLE debugging</title><link>https://devzone.nordicsemi.com/thread/207729?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 15:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86e64d32-98e2-4667-af41-d38d90a91fd7</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;This is why it&amp;#39;s recommended to use a Development Kit for developing on!&lt;/p&gt;
&lt;p&gt;By default, the Dongle comes programmed&amp;nbsp; with a bootloader.&lt;/p&gt;
&lt;p&gt;Have you done a full chip erase to get rid of the bootloader?&lt;/p&gt;
&lt;p&gt;Note that nRFGO is way out of date. It predates the nRF52840 - so won&amp;#39;t handle it properly. nRF Connect is the one to use&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DONGLE debugging</title><link>https://devzone.nordicsemi.com/thread/207728?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 15:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7928dffd-3f7f-43a2-b89e-73207e63f5e6</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Are you including the softdevice in the IAR build? These are the steps we use, in particular the using Flash Loader was not an option:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Options-&amp;gt;Debugger-&amp;gt;Images:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp; Download Extra Image&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;[&lt;strong&gt;Checked&lt;/strong&gt;]&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp; Path:&lt;strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;blah\blah\s132_nrf52_6.1.0_softdevice.hex&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp; Offset:&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp; Options-&amp;gt;Debugger-&amp;gt;Download:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp; Verify Download&amp;nbsp;[&lt;strong&gt;Checked&lt;/strong&gt;]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp; Use Flash Loader:&amp;nbsp;[&lt;strong&gt;Un-Checked&lt;/strong&gt;]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;This works as-is with the vanilla linker icf file and standard SoftDevice settings (Nordic Uart example based) which doesn&amp;#39;t need editing:&lt;/p&gt;
&lt;p&gt;Debugging code with softdevice interrupts running using stepping is another issue, but at least the above lets the code run to main() and beyond with the ability to break on a breakpoint once pretty much anywhere. There are a few posts on debugging with running code beyond the first breakpoint.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>