<?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>Problem with nRF52 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8725/problem-with-nrf52-dk</link><description>Hi all, 
 I just received my nRF52 DK and started attempting to run examples on it. I am having an odd trouble that the LED2 is always lit after programming the board, no matter the application. Additionally the LED4 is dimly lit. Does anyone have any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Aug 2015 23:36:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8725/problem-with-nrf52-dk" /><item><title>RE: Problem with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/31999?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2015 23:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a170d727-2ae3-49db-ba13-f832aae9ca94</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s what I did actually before I found the debug startup point, I copied the register set from SystemInit to the top of main, annoying but that worked fine too .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/31998?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2015 23:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de3ab3fb-ff58-4064-9d56-5dc4b0cbbde2</guid><dc:creator>Garth</dc:creator><description>&lt;p&gt;Alright well I&amp;#39;ll see what I can do as I continue working. Thanks for the insight!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/31997?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2015 23:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bc82870-b358-4183-9a4b-d71045a20b3b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s the fix which is working for me. You could also, annoying though it is, stick a breakpoint in SystemInit. Or else repeat the logic from there which turns trace off at the start of main.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/31996?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2015 21:56:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66698f23-8900-405f-93dd-32b45e3c5d20</guid><dc:creator>Garth</dc:creator><description>&lt;p&gt;Thanks for the quick response and help! It seems that immediately as I connect to the board in CrossWorks the trace is activated and remains active until I reset the board by powering off and on. Even after running/debugging a program to the board with the startup point specified to be &amp;#39;SystemInit&amp;#39;  I am still seeing the issue. If I power cycle the board the program runs as expected with the trace then not being displayed (obviously because the debugger isn&amp;#39;t messing it up then). But regardless, it seems that I am unable to debug without this problem still.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/31995?ContentTypeID=1</link><pubDate>Sat, 15 Aug 2015 00:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92688d5e-0f90-419b-97f8-e45654033985</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;oh sure - sorry I would have put it in text but I never thought anyone else would be using Crossworks.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a standard Crossworks feature, which you&amp;#39;ve probably never seen, I hadn&amp;#39;t until I asked a question a while ago. If you check properties and search for &amp;#39;start&amp;#39; you should find one called &amp;#39;Startup Completion Point&amp;#39;, it&amp;#39;s saved in the project file as &amp;#39;debug_startup_completion_point&amp;#39;&amp;#39; and it&amp;#39;s the place debug and debug IO (eg RTT) is enabled, it&amp;#39;s also useful when using Segger RTT else it doesn&amp;#39;t start logging.&lt;/p&gt;
&lt;p&gt;Set that to &amp;#39;SystemInit&amp;#39; and it should enable debug at the start of that routine, which turns trace on (anomaly) just in time for the code there to turn it off again.&lt;/p&gt;
&lt;p&gt;I assume most of the other tools turn debug on right at the very start after reset and don&amp;#39;t wait for some code to have finished running first, so they are already in debug/trace mode when SystemInit runs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/31994?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2015 16:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc25158c-7925-49ea-aeb6-a1f84bd1ce89</guid><dc:creator>Garth</dc:creator><description>&lt;p&gt;I am also working in Crossworks. Would you be able to detail your workaround to get into debug before SystemInit?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/31993?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2015 00:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca04902f-4d65-4728-9036-12bd3a1faa61</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Read the anomaly about trace being activated when debug is activated. The trace pins, rather strangely I thought, are the same ones chosen for LED2 and LED4, LED2 is connected to the pin with trace data, so it&amp;#39;s high, LED4 to the pin with trace clock, so it&amp;#39;s 50% duty cycle lit.&lt;/p&gt;
&lt;p&gt;The current SystemInit code turns trace off to work around that anomaly, unless you&amp;#39;ve defined the ENABLE_TRACE define, however that has to run &lt;em&gt;after&lt;/em&gt; your debugger puts the chip into debug mode otherwise it has no effect and when the chip is later put into debug mode, the trace gets re-enabled and nothing turns it off again. I had to fix a property in my build environment (Crossworks) to get into debug mode before SystemInit.&lt;/p&gt;
&lt;p&gt;And if you are defining the ENABLE_TRACE macro, then you&amp;#39;re getting what you asked for, trace enabled, and those two LEDs are somewhat less useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>