<?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>NRF52 doesn&amp;#39;t start without debugger (Jlink) on GCC toolchain</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27430/nrf52-doesn-t-start-without-debugger-jlink-on-gcc-toolchain</link><description>Okay this got us going around in circles and it looks stupidly simple. It seems there is a knowledge gap since we saw many posts similar to ours but without clarity as of what to do in practice. 
 -- Problem statement: 
 Boards with NRF52 do not start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Nov 2017 12:55:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27430/nrf52-doesn-t-start-without-debugger-jlink-on-gcc-toolchain" /><item><title>RE: NRF52 doesn't start without debugger (Jlink) on GCC toolchain</title><link>https://devzone.nordicsemi.com/thread/108338?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 12:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9fa1046-d49a-463e-adfd-cdb66d2fc945</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Thomas, good to hear that you figured it out! I will mention it to my boss and hopefully this will be changed in the future. You might want to take a &lt;a href="https://devzone.nordicsemi.com/question/180438/is-nrf_clock_lfclksrc-broken-by-sdk-14-ble-init-changes/"&gt;look at this case&lt;/a&gt;, as it is somewhat similar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 doesn't start without debugger (Jlink) on GCC toolchain</title><link>https://devzone.nordicsemi.com/thread/108337?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 02:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec9af48-ce93-40c5-8e60-2bf237d7716c</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;There were several issues, intertwined. One of them raises interesting questions.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Easy stuff, we left the RTT setup in
the sdk_config.h to blocking, so yea
it was blocking of course. LOG
frontend was waiting forever that a
backend picks the logs. duh...&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Something Nordic might want to look
into: For people with multiple
hardware like us, some of our
systems will have a low frequency
crystal and some others won&amp;#39;t. In
the current setup (SDK14), it is
impossible to use the board files to
define that (clock source and
softdevice clock source). That
creates very subtle bugs:&lt;/p&gt;
&lt;p&gt;imagine you are using a clock source
for LF crystal on a configuration
that doesn&amp;#39;t have such crystal. It
will look like it is working. If you
then use a bootloader and DFU it
will stop working with no apparent
reason. Inside the bootloader is a
routine to disable and re-enable the
clock source that will fail in an
infinite loop waiting for the
crystal system to stop running.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It took us multiple days to find this out. We saw 2 reasons for that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;As far as we know there is no way to tell that a board
has or not a hardware LF crystal in
the board file for SDK14+ (and prior I believe)&lt;/li&gt;
&lt;li&gt;Since the bug appears far removed
from its origin, it is very hard to
find and reproduce. Having a #define or something like that in the board file would eliminate this issue. It would also allow to detect bugs at compile time by refusing to compile if the board file says there is no hardware LF crystal and the sdk_config.h says there is one.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 doesn't start without debugger (Jlink) on GCC toolchain</title><link>https://devzone.nordicsemi.com/thread/108335?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 15:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5bc3f9-2d27-474a-a063-275aac87a5f4</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;We also did connect the debugger only after power cycling (connect to the running board) and what happens is that upon connection the board starts. that&amp;#39;s why we are really puzzled since even before we get to hit break or otherwise stop the execution on the board, it has started normally and does what it should.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 doesn't start without debugger (Jlink) on GCC toolchain</title><link>https://devzone.nordicsemi.com/thread/108334?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 13:41:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:539dbcc0-1f83-4a2a-be27-1ee58c148ac7</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Have you tried what RK has suggested? Did that help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 doesn't start without debugger (Jlink) on GCC toolchain</title><link>https://devzone.nordicsemi.com/thread/108336?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 07:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60f1ddf5-a40f-475c-ad29-365e5ad9711c</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;have you tried power cycling the board and THEN plugging the JLink in. JLink can be connected to a running board. Hit break. Where are you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>