<?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>Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109652/pairing-only-works-when-connected-to-rtt</link><description>Hello there, 
 
 I&amp;#39;m using Win11, ncs 2.5.2. We&amp;#39;re building an app that uses a lot of the nrf desktop example as foundation. 
 Right now I&amp;#39;m writing something that will erase and pair to a single identity. The app turns on, a button is pushed, erase advertises</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Mar 2024 10:22:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109652/pairing-only-works-when-connected-to-rtt" /><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475779?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 10:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1f726ec-75af-4637-9e8c-916b00becb7f</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi mrd,&lt;/p&gt;
&lt;p&gt;Håkon is on Easter Vacation, so you have two choices:&lt;/p&gt;
&lt;p&gt;1. Wait until Håkon has returned.&lt;/p&gt;
&lt;p&gt;2. Get help from me. In that case, I ask that you sum up this ticket briefly, so I can understand what it is about. Was the original issue that pairing does not work with RTT, or without RTT?&lt;br /&gt;Does pairing work for all cases now, since you say you partially solved the issue?&lt;/p&gt;
[quote user="mrd"]My EEPROM thread has a positive priority (8) and waits on a queue[/quote]
&lt;p&gt;Do you have k_sleep() in your application? Or is that question not relevant since you work with shell?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475778?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 20:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8fbed44-d957-48f9-8f07-770341b8707d</guid><dc:creator>mrd</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This solves my problem! Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475777?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 12:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:925fc313-1371-4f3c-ba31-592b6cad25cf</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Thank you for the update and for the reproducable example.&lt;/p&gt;
&lt;p&gt;Check out this pull request which is likely causing this issue. You may cherry-pick the solution that is best for you. &lt;br /&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/68941"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/68941&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475776?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 22:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81ed220e-b7e9-490e-98ca-05bcf3b1c47e</guid><dc:creator>mrd</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;I tried that (&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y) and it did not change anything.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am happy to report that&amp;nbsp;I have a minimum reproduceable example for you to try!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Minimum reproduceable example&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For&amp;nbsp;nrf52840 dk hardware.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Create a new application from nrf desktop sample in vscode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Set up build configuration for nrf52840dk, prj_keyboard.conf, app.overlay.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Add following lines to prj_keyboard.conf&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL_BACKENDS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL_BACKEND_RTT&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;Erase and flash. Now pairing fails and no connection is made when RTT viewer is not connected.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If I change&amp;nbsp;CONFIG_SHELL_BACKEND_RTT=n, pairing succeeds and the connection starts.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I&amp;#39;ve attached the support file with my versions of everything. Please try to reproduce this and let me know what you find.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank you!&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7723.version_5F00_info.txt"&gt;devzone.nordicsemi.com/.../7723.version_5F00_info.txt&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475775?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 12:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db9357f0-ae04-416b-9618-04c5479734ee</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Try configuring your project to use internal LF Oscillator. It should be straight forward to select this, however, I could update with the exact details later.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475774?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 21:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:822efde6-67b6-457b-a75d-1a90621e6cd7</guid><dc:creator>mrd</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any news? This bug cripples our product.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475773?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 22:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe0744ee-b149-4a73-b4ff-4367b34e89a6</guid><dc:creator>mrd</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Something I just noticed: you don&amp;#39;t need to be connected to RTT for a successful pairing. I only need to have connected to RTT.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I flash my app, connect to RTT, &lt;em&gt;disconnect from RTT&lt;/em&gt;, then pair, it works.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Additionally, we tried adding an inductor to one of our devboards, as indicated on page 31&amp;nbsp;&lt;a href="https://www.raytac.com/download/index.php?index_id=44"&gt;here&lt;/a&gt;, but it did not fix the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475772?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 18:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc464e45-1e27-4bb2-95fb-9f34fe601738</guid><dc:creator>mrd</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;We are using a bootloader, as we are building on top of nrf desktop which uses a bootloader. When building nrf desktop with prj_keyboard.conf, it shows&amp;nbsp;-Db0_CONF_FILE=&amp;quot;C:/Users/mrdri/OneDrive/Documents/Work/CanAssist/Joystick/Joystick2/nrf_desktop_app/configuration/nrf52840dk_nrf52840/child_image/b0/prj.conf&amp;quot;, so I added the two DCDC disable commands there.&lt;/p&gt;
&lt;p&gt;A pristine build and flash later, I see the same behaviour.&lt;/p&gt;
&lt;p&gt;I also created nrf_desktop_app/configuration/nrf52840dk_nrf52840/child_image/mcuboot.conf and added the disable commands there, as well as adding them to ....b0/prj_keyboard.conf, just in case, without effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Am I doing that properly?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would&amp;nbsp;also like to clarify what is not working to make sure we&amp;#39;re on the same page: it&amp;#39;s only the pairing/bonding process. If I connect to RTT, bond to a bt central device, then disconnect from RTT and power cycle our board, it will happily auto-reconnect to the the bonded device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached the gerbers for inspection.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Finally, I think it would be great once we solve this to remove our schematics/gerbers and make this case public again, in case anyone else has the same issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475771?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 15:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94bb504c-c5b5-40ff-93e0-72ecee9e815b</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;We should look further into things regarding the DCDC.&lt;/p&gt;
&lt;p&gt;When using RTT the SoC does not enter sleep, which will mask potential hardware issues. Several other customers report that things are running fine in debug mode and when RTT is connected you are continously debugging.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using a bootloader? You would have to disable DCDC for the bootloader as well. Here is how to do so(from &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92422/setting-config_bootloader_mcuboot-y-in-prj-config-on-custom-board-prevents-code-working"&gt;another ticket&lt;/a&gt;):&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/92422/setting-config_bootloader_mcuboot-y-in-prj-config-on-custom-board-prevents-code-working/388708"]Create a folder in your project called &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html"&gt;child_image&lt;/a&gt;.&lt;br /&gt;Then create the file child_image/mcuboot.conf.&lt;br /&gt;Set the relevant configurations to disable DC-DC inside this mcuboot.conf as well.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for sharing the schematic. Would you be able to share the Gerber files as well. We could check whether the layout might influence anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475770?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 16:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48549488-2886-48b7-9eb6-29d392ade379</guid><dc:creator>mrd</dc:creator><description>&lt;p&gt;Hi Hakon, thank you for the additional information.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, I tested with those settings with the same results. I thought I&amp;#39;d include the build files&amp;nbsp;on the off-chance that I was setting the DCDC converter to be disabled but it was not actually being disabled.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, I should note that when flashing and testing the board without RTT connected, the J-Link remains&amp;nbsp;physically connected, just not in software. Would the grounding really change that much with the connection active or not?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For high-level design context, we are making a joystick that works over bluetooth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475769?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 10:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75ab1001-3a59-4b39-b86c-7e1ae4c805a6</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hello mrd,&lt;/p&gt;
&lt;p&gt;The issue you are seeing is typical for projects with grounding issues. When RTT is connected, there might be better grounding and the grounding issue potentially improved.&lt;/p&gt;
&lt;p&gt;Has anyone at Nordic reviewed the schematic and layout? We can do this as a free service. I will make the case private in case you would like to upload the files.&lt;/p&gt;
[quote user="mrd"]&lt;p&gt;Edit: new build folder with&amp;nbsp;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC&lt;/span&gt;&lt;span&gt;=n and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC_HV&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6138.build_5F00_noDCDC.zip"&gt;build_noDCDC.zip&lt;/a&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I assume you have tested with these settings. Did you get the same results?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475768?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 05:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57bd1271-38ad-45ba-99ab-7d6fce61f93b</guid><dc:creator>mrd</dc:creator><description>&lt;p&gt;Hello again Hakon,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;I have tried&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC&lt;/span&gt;&lt;span&gt;=n and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC_HV&lt;/span&gt;&lt;span&gt;=n, but it did not change behaviour.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;I&amp;#39;ve attached the .conf file we are using.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Could you provide more information on what settings connecting to RTT changes in the background?&amp;nbsp;Our symptoms are truly identical to the post that I linked to: it works when debugging or RTT connected.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Please note that this bug is striking at a terrible time - we must send our device in for RF testing in the next day or so. We do not need a fix, only a workaround - is there any way we can fool our chip into thinking it&amp;#39;s connected to RTT, but not really be connected?&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;br /&gt;&lt;span&gt;&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 insight would be appreciated. Thank you.&lt;/span&gt;&amp;nbsp;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2117.prj_5F00_keyboard.conf"&gt;devzone.nordicsemi.com/.../2117.prj_5F00_keyboard.conf&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475767?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 17:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:505f17ba-e92f-41b6-a61b-644acc3e8d2c</guid><dc:creator>mrd</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are building nrf desktop for nrf52840 dk, using a modified prj_keyboard.conf. I downloaded the nrf desktop schematic files for the keyboard variant from &lt;a href="https://www.nordicsemi.com/Products/Reference-designs/nRF-Desktop/Download?lang=en#infotabs"&gt;here&lt;/a&gt;&amp;nbsp;and it looks like keyboard example layout does have the DCDC converter components populated, which makes me think it&amp;#39;s enabled.&lt;/p&gt;
&lt;p&gt;For anyone seeing this in the future, where should I look to determine if DCDC is enabled in the build files? And how would I disable the DCDC converter, to make our design work for now?&lt;/p&gt;
&lt;p&gt;Thank you for the help.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5355.build.zip"&gt;devzone.nordicsemi.com/.../5355.build.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: new build folder with&amp;nbsp;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC&lt;/span&gt;&lt;span&gt;=n and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC_HV&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0131.build_5F00_noDCDC.zip"&gt;devzone.nordicsemi.com/.../0131.build_5F00_noDCDC.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing only works when connected to RTT</title><link>https://devzone.nordicsemi.com/thread/475766?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 10:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87afec05-287c-4c14-9fe4-3320c8c88045</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Would you be able to share your project&amp;#39;s build folder? Which board are you building for? The idea is to check whether the DCDC is enabled in the build files and to see whether this is set in the board files.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>