<?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>Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71957/problems-with-the-j-link-debugger-on-nrf51-dongle</link><description>Hi, 
 I managed to compile and run(?) my first two programs for nrf51 dongle on Keil uVision, however while i think they run I cannot make the debugger work and see what they do. 
 The UART outputs is emply, both in the uVision and when I try the Termite</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Feb 2021 20:17:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71957/problems-with-the-j-link-debugger-on-nrf51-dongle" /><item><title>RE: Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296111?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 20:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06d46667-560c-4451-a8bd-198b2d87e438</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="6103" url="~/f/nordic-q-a/71957/problems-with-the-j-link-debugger-on-nrf51-dongle/296095#296095"]It works now.[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote userid="6103" url="~/f/nordic-q-a/71957/problems-with-the-j-link-debugger-on-nrf51-dongle/296095#296095"]Wow, Can you please explain what was actually wrong?[/quote]
&lt;p&gt;Could have been some bootloader or other code on the device that stopped your app from running.&lt;/p&gt;
[quote userid="6103" url="~/f/nordic-q-a/71957/problems-with-the-j-link-debugger-on-nrf51-dongle/296100#296100"]is it maybe possible to see the debug messages inside the uVision IDE? There is a window for it but it&amp;#39;s always empty.[/quote]
&lt;p&gt;I have not used that before, I think it requires Trace, and that is not supported by the nRF51.(might require a debugger with ETM support as well).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296100?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 17:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cce3424-3ec5-47b5-a5d9-ac0c0d1d24ff</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Also, is it maybe possible to see the debug messages inside the uVision IDE? There is a window for it but it&amp;#39;s always empty.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296095?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 16:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce396594-1b3c-46c9-80c7-153a9f328426</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;For the teminal software I&amp;#39;m using &amp;quot;Termite&amp;quot;. The nrfjprog --eraseall has helped!!! It works now. I can see a series of messages:&amp;nbsp;APP:INFO:&lt;br /&gt;FE F8 4C 29 99 31 12 71 D1 98 F2 96 E0 DB AB 15 &amp;thorn;&amp;oslash;L).1.q..&amp;ograve;.&amp;agrave;.&amp;laquo;.&lt;br /&gt;APP:INFO:&lt;br /&gt;APP:INFO:Random Vector:&lt;br /&gt;APP:INFO:&lt;br /&gt;98 7B 3B 28 9D 99 A0 97 6F 73 ED F0 AD 36 23 AF .{;(..&amp;nbsp;.os&amp;iacute;&amp;eth;.6#&amp;macr;&lt;br /&gt;APP:INFO:&lt;/p&gt;
&lt;p&gt;Wow, Can you please explain what was actually wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296080?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 16:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:880df359-95c2-44a3-8e56-391391361bf1</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;I&amp;#39;m using nrf connect to erase. But I will try with nrfprod and let you know. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296079?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 15:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51cffb19-74c7-4ea9-9879-f6e9c0e9338a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not tested tracing, but except for that, it looks correct.&lt;/p&gt;
&lt;p&gt;1)What UART terminal software are you using ?&lt;/p&gt;
&lt;p&gt;2) Try to use &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;nrfjprog&lt;/a&gt;, and call &amp;quot;nrfjprog --eraseall&amp;quot; before you load the firmware, and see if that makes any difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296036?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 13:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb83c9e-0fb4-4097-8ca3-41292bee9b6f</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Here&amp;#39;s my debug configuration in uViiosn, maybe you can spot something obvious:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://photos.app.goo.gl/pZV8E3Swc73fFAHD6"&gt;photos.app.goo.gl/pZV8E3Swc73fFAHD6&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296033?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 13:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab523250-08d2-4b31-95be-28d3c326bfeb</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Hi, Thank you for your reply. I just compiled and run the example you mentioned and the program compiles and load with no problems. However in debug I still can&amp;#39;t see any messages in neither UART nor RTT (using RTT viewer, external terminal and debug output in the IDE).&lt;/p&gt;
&lt;p&gt;My problem must lie somewhere in the configuration of my IDE or the debugger maybe?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One thing worth noting (I think) - when I turn on the Trace option in my IDE, the device goes into HardFault_Handler immediately.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the j-link debugger on nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296020?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 12:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaf08d32-c720-49af-b430-26419316d27f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Make sure that you have this in sdk_config.h&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_ENABLED 1&lt;/p&gt;
&lt;p&gt;Take a look at how it&amp;#39;s done in the pca10031(nRF51 dongle) RNG example project, in folder SDK_12\examples\peripheral\rng\pca10031\blank\arm5_no_packs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>