<?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>BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90754/bt_enable-function-stuck-in-bt_rpmsg_platform_endpoint_is_bound-for-nrf5340</link><description>Hello, 
 
 I am having an issue with board bring up for a custom board I developed using the nrf5340 processor. 
 
 I have created firmware based off the peripheral_uart sample that works on the nrf5340-dk. 
 
 My issue is my code is in bt_enable() only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Aug 2022 06:07:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90754/bt_enable-function-stuck-in-bt_rpmsg_platform_endpoint_is_bound-for-nrf5340" /><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/382371?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 06:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0c959d-ed86-4f03-8bd3-a29949cd3984</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;Thank you for the update and feedback. I am glad to hear that it is finally working now.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/382350?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 22:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35c65b49-b2f8-4625-8c92-0cfd579f68ee</guid><dc:creator>mattmacleod</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I was able to get it working after all, It turns out it was an electrical issue with the board I was trying to bring up.&lt;/p&gt;
&lt;p&gt;After making all the modifications that are listed above to a fresh board I was able to get it up and working and the connection seems to be stable, transmitting the correct data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much for all your help, I really appreciate the level of detail you included in your responses.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Matt&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/382336?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 18:47:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64704395-abcc-476f-a49a-9b51775e3df1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s interesting that the central side has to be reset to re-connect. Isn&amp;#39;t that supposed to happen automatically after a disconnect? I would suggest to check the debug logs from the central side as well, maybe there is an assert exception that causes the program to hang and require a reset to recover. Though I don&amp;#39;t have a good explanation as to why this would only happen when connected to your custom board and not another DK.&lt;/p&gt;
&lt;p&gt;There should not be an issue with the HFXO, or the LFCLK for that matter, as you are able to maintain the connection with your iOS device just fine.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/382331?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 18:00:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:220b13ca-a0e5-41eb-9ff2-22928960e8e7</guid><dc:creator>mattmacleod</dc:creator><description>&lt;p&gt;Hi Vedar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You are correct, I am getting the&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/482dcc7865f7d3a458f061a1d8276c5801eed1e4/include/zephyr/bluetooth/hci_err.h#L26"&gt;BT_HCI_ERR_CONN_TIMEOUT&lt;/a&gt;&lt;span&gt;&amp;nbsp; error when viewing the RTT logs.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In my code, I am able to reliably connect to the other nrf5340-dk I am using as a central device, but it cuts out after a while and requires a reset to re-connect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As a test, I have an LED that turns on when the device is connected over BLE on my board. Then turns off when its disconnected. When connecting over nrf connect for IOS I am able to toggle the LED manually and the connection appears to be stable. It is when I try to send data over my service to the nrf5340-dk that is running the modified&amp;nbsp;central application&amp;nbsp;that I am running into this issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have any suggestions for what could be causing the &amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/482dcc7865f7d3a458f061a1d8276c5801eed1e4/include/zephyr/bluetooth/hci_err.h#L26"&gt;BT_HCI_ERR_CONN_TIMEOUT&lt;/a&gt;? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I already tried investigating&amp;nbsp;the XFXO oscillator&amp;nbsp;as a possible&amp;nbsp;source of the issue&amp;nbsp;since I was originally&amp;nbsp;using external caps, so I re-configured the following for internal caps:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Removing the external caps I had connected to the HFXO oscillator&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Calculating the internal CL values as &lt;strong&gt;12.5pF&lt;/strong&gt; for &lt;a href="https://ecsxtal.com/store/pdf/ecx-1637.pdf"&gt;my XTal with a CL of 8pF&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Adding the following configs to both cores config files:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SOC_HFXO_CAP_INTERNAL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SOC_HFXO_CAP_INT_VALUE_X2&lt;/span&gt;&lt;span&gt;=25&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again for all your help,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Matt&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/381593?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 13:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd64504-935e-46b1-8962-7dd37228bb51</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;The connection loss could be a symptom of poor link quality. Do you have debug logging enabled in your peripheral project? It would be good to know what the disconnect reason is. For a bad connection I would expect the reason to be &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/482dcc7865f7d3a458f061a1d8276c5801eed1e4/include/zephyr/bluetooth/hci_err.h#L26"&gt;BT_HCI_ERR_CONN_TIMEOUT&lt;/a&gt; in most cases.&lt;/p&gt;
&lt;p&gt;Also, it would be good if you could try to connect with it using the nRF connect app on Android or iOS to see if it gives you the same result.&lt;/p&gt;
&lt;p&gt;Disconnect reason is logged over RTT if you use the peripheral_uart example as you can see here: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/2bee52d57e51cbe3108f0bbcb9ed68743bcd4e40/samples/bluetooth/peripheral_uart/src/main.c#L346"&gt;https://github.com/nrfconnect/sdk-nrf/blob/2bee52d57e51cbe3108f0bbcb9ed68743bcd4e40/samples/bluetooth/peripheral_uart/src/main.c#L346&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/381239?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2022 18:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:827472e0-ffe1-40ba-ad41-405f87af096c</guid><dc:creator>mattmacleod</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I added the following config:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_SOC_HFXO_CAP_EXTERNAL&lt;/span&gt;&lt;span&gt;=y to both app and network core.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And confirmed the internal caps were disabled in ozone:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1660240721523v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And it appears to be connecting (tested by sending a 240 byte buffer of dummy data to central) but the connection is not stable, it appears to be working, sending a few packets then the connection drops and I have to reset my board to reconnect where it again sends a few packets, then drops and requires a reset.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This code was tested on the dk board so I dont believe it to be a software issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have any other suggestions?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your help,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Matt&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/381167?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2022 10:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e201081a-49f9-4594-aeb9-dfaeabe3d499</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;I noticed you had provided your board schematics in a previous ticket, so I had a look at those, and I see you have opted to use external load capacitors for the 32M crystal. This is perfectly fine, but it is different from DK design where we use the internal load capacitors (&lt;span&gt;&lt;a title="Using internal capacitors" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/oscillators/doc/oscillators.html?cp=3_0_0_3_11_0_0#concept_internal_caps"&gt;Using internal capacitors&lt;/a&gt;&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;Please add &lt;span&gt;CONFIG_SOC_HFXO_CAP_EXTERNAL&lt;/span&gt;=y to your prj.conf file. This should ensure the &lt;span&gt;&lt;a title="XOSC32MCAPS (Retained) " href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/oscillators/doc/oscillators.html?cp=3_0_0_3_11_3_0#register.XOSC32MCAPS"&gt;XOSC32MCAPS (Retained) &lt;/a&gt;&lt;/span&gt;register stays at its reset value with the internal caps disabled.&amp;nbsp; You can start a debug session for the application core if you want to confirm the register setting afterwards:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1660214756134v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If the current load capacitance is wrong as I suspect, you will end up with nominal frequency that is slightly off and shift the RADIO carrier frequency enough to make your advertisement packets &amp;quot;invisible&amp;quot; to your Bluetooth central device. &lt;/p&gt;
&lt;p&gt;I hope this helps.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/381063?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 19:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c5e605a-0a67-434b-90b5-230dc18b49b9</guid><dc:creator>mattmacleod</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ive tried connecting to the device with a version of peripheral_central on another DK board and I am not able to connect to the custom board despite it clearing bt_Enable in the debugger.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note: this code works when I use it to connect to 2 DK boards so its not a software issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve added the following config:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_RESET_ON_FATAL_ERROR"&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition to adding the above lines of code and my program doesnt appear to be hanging in the following line as I can step over it (which seems promising):&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have any other suggestions?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for all your help,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Matt&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/380957?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 08:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b714302-8efa-42a6-89c2-6a08f21ec199</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;This sounds promising. Are you able to connect to it over BLE as well? Also, does it still work after you exit debug mode?&lt;/p&gt;
[quote user="mattmacleod"]Is there some way that the network core got unlocked during this process?&amp;nbsp;[/quote]
&lt;p&gt;The network core is booted by the application core&amp;#39;s FW on startup, so it should get powered on as long as the app core FW is being executed (&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/482dcc7865f7d3a458f061a1d8276c5801eed1e4/boards/arm/nrf5340dk_nrf5340/nrf5340_cpunet_reset.c#L53"&gt;link&lt;/a&gt;).&lt;/p&gt;
[quote user="mattmacleod"]I am now able to debug the network core and I dont see any issues when stepping through[/quote]
&lt;p&gt;The network core may be entering a bootloop if there is a failing assert in the hci_rpmsg FW and maybe mask the problem if there is one. You can set &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_RESET_ON_FATAL_ERROR"&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/a&gt; for the hci_rpmsg image to make it easier to catch such problems.&lt;/p&gt;
&lt;p&gt;Lastly, as test, please try to run the code snippet below &lt;span style="text-decoration:underline;"&gt;before&lt;/span&gt; bt_enable() to see if you are able to manually start the HF crystal (the program will get stuck in the while loop if not).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	NRF_TIMER1-&amp;gt;BITMODE = TIMER_BITMODE_BITMODE_32Bit &amp;lt;&amp;lt; TIMER_BITMODE_BITMODE_Pos;
	NRF_TIMER1-&amp;gt;TASKS_CLEAR = 1;
	NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
	NRF_TIMER1-&amp;gt;TASKS_START = 1;
	NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
	while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);
	NRF_TIMER1-&amp;gt;TASKS_CAPTURE[0] = 1;

	printk(&amp;quot;HF Clock has started. Startup time: %d uS\n&amp;quot;, NRF_TIMER1-&amp;gt;CC[0]);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/380897?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 23:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d88e4b-ba09-4cb8-9556-f0c31a1f9bf8</guid><dc:creator>mattmacleod</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I am now able to debug the network core and I dont see any issues when stepping through the networkcore of the custom board compared to when I step through with my DK board.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Strange finding: &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;bt_enable function was hanging before debugging the network core, now after debugging the network core I can get out of the bt_enable function in VSCode... So that issue appears to be fixed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there some way that the network core got unlocked during this process?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again for all your help,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Matt&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/380890?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 20:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce69bdc4-c088-4596-97e4-6f8adc8c78dd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
[quote user="mattmacleod"]I should also note that I am&amp;nbsp;using an nrf5340-dk with VTG and VDD_nrf shorted together to re-direct the J-Link as my debugger for my custom board, where&amp;nbsp;the&amp;nbsp;SWD pins are connected to my custom board via the DKs Debug out port - if this information has any impact on your guidance.&amp;nbsp;[/quote]
&lt;p&gt;This should be fine as long as the DK and custom board share the same VDD voltage (there is no built-in level shifter). I don&amp;#39;t think this is the problem here considering you are able to program and debug the application core just fine.&lt;/p&gt;
[quote user="mattmacleod"]Then&amp;nbsp;I attempted to perform the&amp;nbsp;same procedure you provided on my custom board and I wasnt able to step through at all, it appears to be locked out entirely.&amp;nbsp;[/quote]
&lt;p&gt;Just to make sure, did you try to start the debug session for the application core first as suggested in the the documentation here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_testing.html#debugging-an-application"&gt;multicore debugging&lt;/a&gt;? This step is important as the app core is responsible for powering up the network core.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/380889?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 19:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36d21544-bcee-4db9-9c01-56bb3e2430e5</guid><dc:creator>mattmacleod</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your detailed response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I should also note that I am&amp;nbsp;using an nrf5340-dk with VTG and VDD_nrf shorted together to re-direct the J-Link as my debugger for my custom board, where&amp;nbsp;the&amp;nbsp;SWD pins are connected to my custom board via the DKs Debug out port - if this information has any impact on your guidance.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;First I debugged netcore of my DK board using your above instructions and I was able to step through the network core to confirm proper procedure:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1660072541688v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then&amp;nbsp;I attempted to perform the&amp;nbsp;same procedure you provided on my custom board and I wasnt able to step through at all, it appears to be locked out entirely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have any other suggestions?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for all your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Matt&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/380858?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 13:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51e2ae2f-9d12-4d19-9cf3-a4c5f031ec74</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;Thanks for confirming. At least it should not become stuck waiting for the LF crystal to ramp up now. The next step I would suggest is that you try to debug the netcore to try to find out exactly where the program is hanging (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_testing.html#debugging-an-application"&gt;multicore debugging&lt;/a&gt;). Maybe the problem is with the &lt;span&gt;&lt;a title="32 MHz crystal oscillator (HFXO)" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/clock/doc/clock.html?cp=3_0_0_3_10_0_1#concept_hfxo"&gt;32 MHz crystal oscillator (HFXO)&lt;/a&gt;&lt;/span&gt; not starting up (The bluetooth controller will request this clock source whenever it is using the RADIO).&lt;/p&gt;
&lt;p&gt;In vscode:&lt;/p&gt;
&lt;p&gt;1. Make sure application core is selected.&lt;/p&gt;
&lt;p&gt;2. Start debug session using vs code&amp;#39;s debug extension or Ozone&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3173.pastedimage1660051179960v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;1. Make sure the hci_rpmsg child image is selected&lt;/p&gt;
&lt;p&gt;2. Start the 2nd debug session for the netcore&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1030.pastedimage1660051262774v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4162.pastedimage1660052206984v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/380670?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 17:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1abc5cb-0cba-42f9-baf2-906ce6dd39da</guid><dc:creator>mattmacleod</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No, I do not have an external LF crystal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The program is still stuck in bt_enable() after making the following changes:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. Add the following lines to proj.conf:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#config internal crystal for XL1/Xl2 oscillator &lt;/span&gt;&lt;/div&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&gt;&lt;span&gt;CONFIG_BT_SMP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;2. Copy and rename following file &lt;span&gt;/peripheral_uart/child_image/hci_rpmsg/boards/thingy53_nrf5340_cpunet.conf&lt;/span&gt;:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1659980803562v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. Added the following lines to the&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340_cpunet.conf file:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;#config internal crystal for XL1/Xl2 oscillator&lt;/span&gt;&lt;/div&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&gt;&lt;span&gt;CONFIG_BT_SMP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Any other suggestions?&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Kind regards,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Matt&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT_Enable Function stuck in bt_rpmsg_platform_endpoint_is_bound() for nrf5340</title><link>https://devzone.nordicsemi.com/thread/380625?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 13:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3835639f-3305-401e-8fc2-5913aa2cd91e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Matt,&lt;/p&gt;
&lt;p&gt;Does your custom board include the optional LF crystal shown in the ref. schematics below?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1659963819041v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;If not, and assuming you are using the DK board files,&amp;nbsp; please make sure you have selected the internal RC oscillator as the clock source for the netcore image too. These clock settings can be applied by adding a new config file in the child_image folder (/peripheral_uart/child_image/hci_rpmsg/boards). You can make a copy of the existing thingy53_nrf5340_cpunet.conf file and rename it to nrf5340dk_nrf5340_cpunet.conf. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>