<?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>nrf52805 not reaching main function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90128/nrf52805-not-reaching-main-function</link><description>When trying to debug the &amp;quot;hello world&amp;quot; zephyr sample application in VS Code, the system seems to never hit the main function. 
 Any breakpoints set in &amp;quot;main&amp;quot; are never hit, and if the debugger is stopped, it always displays &amp;quot;cpu_idle.S:158&amp;quot; as the current</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Sep 2024 18:04:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90128/nrf52805-not-reaching-main-function" /><item><title>RE: nrf52805 not reaching main function</title><link>https://devzone.nordicsemi.com/thread/502184?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 18:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65a7ab6b-49d4-4d0b-abe0-d6a3997e99b0</guid><dc:creator>Saurav Saha</dc:creator><description>&lt;p&gt;OMG. I&amp;#39;ve been struggling with this for days. This worked like a charm.&lt;/p&gt;
&lt;p&gt;In case it helps, this is what I added to prj.conf:&lt;/p&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52805 not reaching main function</title><link>https://devzone.nordicsemi.com/thread/448226?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 22:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c89ee734-9c7e-4560-8812-6bae1cfe78bb</guid><dc:creator>keto</dc:creator><description>&lt;p&gt;Your are my savior!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52805 not reaching main function</title><link>https://devzone.nordicsemi.com/thread/377472?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 19:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd24b9ae-c838-4ab7-8711-f3024cb270c5</guid><dc:creator>alecamar</dc:creator><description>&lt;p&gt;Found the cause/solution. I am leaving this here in case someone else has the same problem:&lt;/p&gt;
&lt;p&gt;As of right now, any application that uses the zephyr RTOS (i.e. everything using the new SDK) requires the 32KHz clock to be supplied externally by default. The&amp;nbsp; _nrf_clock_control_lf_on function, which is run on startup, waits until this clock is locked, which will never happen if you don&amp;#39;t have it.&lt;/p&gt;
&lt;p&gt;Therefore, just select a different input to the 32KHz clock source (&amp;quot;RC Oscillator&amp;quot; or &amp;quot;Synthesized from HFCLK&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>