<?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>hang in device_instance_find() in SDK7.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5999/hang-in-device_instance_find-in-sdk7-2</link><description>Hi, 
 I recently tried SDK7.2 on PCA10028 board in order to make sure that SDK7.2 works well before I migrate my project to SDK7.2 codebase. My project code didn&amp;#39;t work as expected once I resolved all the compilation issues. The issue was in the bonding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 May 2015 18:23:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5999/hang-in-device_instance_find-in-sdk7-2" /><item><title>RE: hang in device_instance_find() in SDK7.2</title><link>https://devzone.nordicsemi.com/thread/20965?ContentTypeID=1</link><pubDate>Thu, 14 May 2015 18:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b8ed88e-1bd5-42e8-8292-7c33d7a91225</guid><dc:creator>sam wagner</dc:creator><description>&lt;p&gt;Aryan,
Thanks for the info.
Best,
Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hang in device_instance_find() in SDK7.2</title><link>https://devzone.nordicsemi.com/thread/20964?ContentTypeID=1</link><pubDate>Thu, 14 May 2015 12:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88d76e50-0318-4525-8d3e-cb2c7540e17e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Sam, The code you showed in the question is the proper fix. checking p_addr against NULL.
I have created a bug and I just checked that it has been fixed by the team end of March. I think it should have been released with 8.1, but i did not check that myself&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hang in device_instance_find() in SDK7.2</title><link>https://devzone.nordicsemi.com/thread/20963?ContentTypeID=1</link><pubDate>Thu, 14 May 2015 08:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b499139d-c55f-495d-85fa-96b76d04af42</guid><dc:creator>sam wagner</dc:creator><description>&lt;p&gt;Hi Aryan,&lt;/p&gt;
&lt;p&gt;what is the proper fix for this issue?  has it been released as part of any SDK?&lt;/p&gt;
&lt;p&gt;thanks,
Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hang in device_instance_find() in SDK7.2</title><link>https://devzone.nordicsemi.com/thread/20962?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2015 12:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:985507ce-2572-4d92-ba6b-1cb20049e85e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Sam,&lt;/p&gt;
&lt;p&gt;Thanks for reporting this issue&lt;/p&gt;
&lt;p&gt;the function where this problem occurs device_instance_find is used at two places.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;when we have get a BLE_GAP_EVT_CONNECTED event and&lt;/li&gt;
&lt;li&gt;when we get BLE_GAP_EVT_SEC_INFO_REQUEST event&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;when the latter occurs the the p_addr is NULL as we try to find the instance using evt.gap_evt.params.sec_info_request.div
That check for p_addr which you have added to fix this issue is a proper way to fix this issue. This is a bug which I have reported to the team. Hopefully it will be fixed in next release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>