<?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 BLE fails to pair after changing device name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77782/nrf52-ble-fails-to-pair-after-changing-device-name</link><description>Hi, 
 
 I was able to succesfully pair my smartphone (Mi 9T pro) with the BLE nordic UART NRF52 connectivity-bridge FW. I did this succesfully with 2 thingy91&amp;#39;s. 
 I then tried to change one of the names (to more easily seperate them), and repair them</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jul 2021 14:38:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77782/nrf52-ble-fails-to-pair-after-changing-device-name" /><item><title>RE: NRF52 BLE fails to pair after changing device name</title><link>https://devzone.nordicsemi.com/thread/321401?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 14:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a323748-08f7-4996-af2a-16a082e45622</guid><dc:creator>Arnout</dc:creator><description>&lt;p&gt;Wtf. It -was- the device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I reflashed it with JTAG after building the connectivity example myself, .. and suddenly it works. (Did this on both devices)&lt;/p&gt;
&lt;p&gt;I dont really get it, because what I did previously was using the nrf programmer with the same segger jlink, fully erasing memory and flashing with the prebuilt example thingy91_nrf52_connectivity_bridge_2021-06-28_7a076c22. After doing that, you could clearly see it &amp;quot;forgetting&amp;quot; having BLE_ENABLED in the &amp;quot;config&amp;quot;, but I couldn&amp;#39;t get it to work anymore. Suddenly with the prebuilt it works..&lt;/p&gt;
&lt;p&gt;Even though Im actually NOT trying to debug this, because its so weird, I tried the same process again:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Removed pairing from my phone&lt;/p&gt;
&lt;p&gt;- Added and removed again (just to double check that there no time-related stuff on the phone. Paired just fine, and removed just fine)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6840.programmer.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;- Cleared memory though jlink in nrf connect programmer.&lt;/p&gt;
&lt;p&gt;- Cleared and Flashed&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;thingy91_nrf52_connectivity_bridge_2021-06-28_7a076c22.hex through jlink&amp;nbsp;in nrf connect programmer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- through USB, simply enabled BLE, safely eject, remove, replug USB&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Try to pair ==&amp;gt; AGAIN does not work! (??)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then go into SES, and flash my own built project in sdk 1.6.0 (no modifs)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BAM, pairing works immediately..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6153.ses.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;FYI, the logs from the SEGGER debugger show this (when it works)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.000,335] &#x1B;[0m&amp;lt;inf&amp;gt; usb_msc: Sect Count 128&#x1B;[0m
[00:00:00.000,335] &#x1B;[0m&amp;lt;inf&amp;gt; usb_msc: Memory Size 65536&#x1B;[0m
[00:00:00.001,220] &#x1B;[0m&amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: 
                                         58 5d 8b 31 54 67 00 e9  b8 4a a7 df a9 9c e4 1c |X].1Tg.. .J......
                                         b3 0b ce 74                                      |...t             &#x1B;[0m
[00:00:00.015,380] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device suspended&#x1B;[0m
[00:00:00.015,380] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device suspended&#x1B;[0m
[00:00:00.130,889] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device resumed&#x1B;[0m
[00:00:00.130,889] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: from suspend&#x1B;[0m
[00:00:00.130,889] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device resumed&#x1B;[0m
[00:00:00.130,889] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: from suspend&#x1B;[0m
[00:00:01.015,808] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device configured&#x1B;[0m
[00:00:01.015,838] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device configured&#x1B;[0m
[00:00:00.000,366] &#x1B;[0m&amp;lt;inf&amp;gt; usb_msc: Sect Count 128&#x1B;[0m
[00:00:00.000,366] &#x1B;[0m&amp;lt;inf&amp;gt; usb_msc: Memory Size 65536&#x1B;[0m
[00:00:00.001,281] &#x1B;[0m&amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: 
                                         58 5d 8b 31 54 67 00 e9  b8 4a a7 df a9 9c e4 1c |X].1Tg.. .J......
                                         b3 0b ce 74                                      |...t             &#x1B;[0m
[00:00:00.016,021] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device suspended&#x1B;[0m
[00:00:00.016,021] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device suspended&#x1B;[0m
[00:00:00.143,615] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device resumed&#x1B;[0m
[00:00:00.143,615] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: from suspend&#x1B;[0m
[00:00:00.143,615] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device resumed&#x1B;[0m
[00:00:00.143,615] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: from suspend&#x1B;[0m
[00:00:00.287,536] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device configured&#x1B;[0m
[00:00:00.287,567] &#x1B;[0m&amp;lt;inf&amp;gt; usb_cdc_acm: Device configured&#x1B;[0m
[00:00:10.064,727] &#x1B;[0m&amp;lt;inf&amp;gt; ble_handler: Connected 53:E4:C2:E5:01:48 (random)&#x1B;[0m
&lt;/pre&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;So.. I guess there must be -something- different with either how the code is flashed/was built.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In any case, I hope I wont spend any more time on this (as I am -actually- trying to write code for the nrf91:)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Arnout&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>