<?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>BLE Service Discovery Start log is printed twice even though it&amp;#39;s called once</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94071/ble-service-discovery-start-log-is-printed-twice-even-though-it-s-called-once</link><description>Hello there 
 In the project of the company I work for, we have a device working as a BLE central which connects to a nearby device and checks if that device is registered with our desiring Service. Hence we call the ble_db_discovery_start (ONLY ONCE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 18 Dec 2022 13:24:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94071/ble-service-discovery-start-log-is-printed-twice-even-though-it-s-called-once" /><item><title>RE: BLE Service Discovery Start log is printed twice even though it's called once</title><link>https://devzone.nordicsemi.com/thread/401149?ContentTypeID=1</link><pubDate>Sun, 18 Dec 2022 13:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c07f03fd-18b2-46df-806f-cf4f4437eee4</guid><dc:creator>Vahidreza</dc:creator><description>&lt;p&gt;This issue was caused by a bug in my application code.&lt;br /&gt;&lt;br /&gt;About the Softdevice upgrade, I fixed my issue by allocating the RAM as shown in attached picture:&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2022_2D00_12_2D00_18-at-4.53.48-PM.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Service Discovery Start log is printed twice even though it's called once</title><link>https://devzone.nordicsemi.com/thread/401133?ContentTypeID=1</link><pubDate>Sat, 17 Dec 2022 11:10:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e833b2-281d-4efd-b5b6-7c3cc724f824</guid><dc:creator>Vahidreza</dc:creator><description>&lt;p&gt;Hello Simon&lt;br /&gt;I thought I answered this question but it looks like the answer was not posted...&lt;br /&gt;&lt;br /&gt;About &amp;quot;did not work&amp;quot; I mean not even the code executes after changing the Vector Table in Linker configuration in IAR project settings.&lt;br /&gt;&lt;br /&gt;What that I did was replacing the header&amp;nbsp;files in &lt;em&gt;sdk/components/softdevice/s140/headers&lt;/em&gt; directory and changing the allocated flash and RAM according to the documentation.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;ROM start = 0x2700 (which previously was 0x2600)&lt;/p&gt;
&lt;p&gt;RAM start = 0x20001678 (which previously was 0x20001628)&lt;br /&gt;&lt;br /&gt;I also tried changing&amp;nbsp;the preprocessor&amp;nbsp;NRF_SD_BLE_API_VERSION from 6 to 7.&lt;br /&gt;&lt;br /&gt;Then I programmed the DK board using nrfConnect Programmer and the HEX file that built using IAR along with the Softdevice HEX file. But nothing happens after that. I even tried building the HEX in debug mode but no log is printed. It looks like nothing works at all after changing the &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;.intvec start&lt;/em&gt;&lt;/span&gt; in IAR Linker&amp;nbsp;configuration settings (Picture attached).&lt;br /&gt;And if I don&amp;#39;t change the .intvec start, there is collision between application and softdevice hex files in nrfConnect Programmer!&lt;br /&gt;&lt;br /&gt;What is &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;.intvec start&lt;/em&gt;&lt;/span&gt; in IAR linker configurations?&lt;br /&gt;The documentation does not say anything about changing preprocessors or something similar. Is there anything specific I have to do?&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/Screenshot-2022_2D00_12_2D00_17-at-2.25.38-PM.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Service Discovery Start log is printed twice even though it's called once</title><link>https://devzone.nordicsemi.com/thread/397079?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 09:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5fbe4c-84eb-4315-ae36-d9338695723a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you explain what you mean about using the newest SoftDevice &amp;quot;did not work&amp;quot;? In the downloaded SoftDevice you have there should be a section/file of migration notes/guide that tells you if there is anything else that needs to be done than adjusting the FLASH/RAM start/size preprocessor settings.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Service Discovery Start log is printed twice even though it's called once</title><link>https://devzone.nordicsemi.com/thread/396952?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 13:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd815b11-1b23-497b-b6e1-3620ab7ce9b1</guid><dc:creator>Vahidreza</dc:creator><description>&lt;p&gt;Thanks for your response Simon&lt;br /&gt;&lt;br /&gt;I tried moving to the latest version of the SoftDevice but it did not work. I only did the Memory adjustment stuff. Is there anything else I&amp;#39;m supposed to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Service Discovery Start log is printed twice even though it's called once</title><link>https://devzone.nordicsemi.com/thread/396830?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 09:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7d253c-864b-4f99-a0f6-151181324410</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;So you have only registered one handler with the discovery module? Have you seen where the&amp;nbsp;&lt;strong&gt;registered_handler_set()&lt;/strong&gt; function has been called from? As it generally has to be called from another function because the application thinks it needs to increase the number of handlers registered.&lt;/p&gt;
&lt;p&gt;Do you have any logs or information on the &lt;strong&gt;registered_handler_set&lt;/strong&gt;() function in your application?&lt;/p&gt;
&lt;p&gt;It&amp;#39;s also worth noting that SoftDevice v6.1.1 and SDK v17.1.0 are not tested with each other and it&amp;#39;s recommended to move to SoftDevice v7.2.0 or 7.3.0.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>