<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>nRF5340 Peripheral BLE connections always fail with reason 0x3e (62)</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/82647/nrf5340-peripheral-ble-connections-always-fail-with-reason-0x3e-62</link><description>I solved this but the solution wasn&amp;#39;t obvious and it didn&amp;#39;t show up on google so I&amp;#39;m going to leave a quick writeup here. 
 nRF Connect SDK 1.7.1 on windows and linux 
 We have a custom board using the nRF5340 module from ublox (Nora-B1) testing using</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 15 Dec 2021 08:59:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/82647/nrf5340-peripheral-ble-connections-always-fail-with-reason-0x3e-62" /><item><title>RE: nRF5340 Peripheral BLE connections always fail with reason 0x3e (62)</title><link>https://test-devzone.nordicsemi.com/thread/343563?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 08:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5191388b-de00-4043-ae64-38ca2cd9a089</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Thank you for the suggestions. I agree with your points and have made an internal feature request for it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Peripheral BLE connections always fail with reason 0x3e (62)</title><link>https://test-devzone.nordicsemi.com/thread/343292?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 03:02:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e07ae87-6756-484f-9b58-471d32c3a93c</guid><dc:creator>user101389</dc:creator><description>&lt;p&gt;Two things would make this easier to debug. The first would be changing the loop that waits on the external crystal to have a max count, and fail out with a console/debug log error saying the 32khz crystal isn&amp;#39;t working. Currently the SDK behavior is to spin forever with no messages.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The second would be to log an error if the 32khz clock isn&amp;#39;t running when we expect it to be, again with a brief and searchable message.&amp;nbsp; something like &amp;lt;err&amp;gt; 32KHZ clock not running - check K32SRC.&lt;/p&gt;
&lt;p&gt;Making documentation on the startup sequence more discoverable might help as well.&amp;nbsp; The quickstart assumes you&amp;#39;re using the DK and doesn&amp;#39;t discuss the details in depth, then the Board Porting Guide only mentions the system clock.&amp;nbsp; The 32K clock may only be mentioned indirectly (&amp;quot;configure a tick source&amp;quot;?) and not expanded on. &lt;/p&gt;
&lt;p&gt;Searching for &lt;span style="background-color:rgba(255, 255, 153, 1);"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC &lt;/span&gt;only finds hits on the Kconfig pages, so you have to know what you&amp;#39;re looking for before you can find it.&lt;/p&gt;
&lt;p&gt;This applies to some other parts of the initial bringup, such as fixed-purpose pins (NFC, LFXO) and that there&amp;#39;s extra steps involved to configure them as GPIO aside from just setting them in the device tree.&amp;nbsp; Searching for that issue finds many threads of people confused why some pins don&amp;#39;t work, and all getting the same answer.&amp;nbsp; There&amp;#39;s a devicetree validator as part of the build process already, perhaps it could flag an error on trivial conflicts such as using pin0.00/0.01 while having CONFIG_SOC_ENABLE_LFXO=y?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>