<?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>sd_rpc_open hangs for ever if sd_rpc_close was not called</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10485/sd_rpc_open-hangs-for-ever-if-sd_rpc_close-was-not-called</link><description>I&amp;#39;m using Windows driver 0.5.0 with a s130 BLE USB dongle. 
 If my application calls sd_rpc_open on init and sd_rpc_close before exiting, everything works fine. 
 Now, if my application crashs, sd_rpc_close is not closed. Then, next session will try</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Dec 2015 02:24:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10485/sd_rpc_open-hangs-for-ever-if-sd_rpc_close-was-not-called" /><item><title>RE: sd_rpc_open hangs for ever if sd_rpc_close was not called</title><link>https://devzone.nordicsemi.com/thread/38978?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2015 02:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b5c42a-f795-4a0f-bc61-1a25d02d5bfc</guid><dc:creator>jon</dc:creator><description>&lt;p&gt;This doesn&amp;#39;t work for me very well. I am calling sd_rpc_close() before my program exits (and getting NRF_SUCCESS return value), but I still can&amp;#39;t connect the next time I run my program. The behavior I am seeing is this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;First time running program, works fine. Calls &lt;code&gt;nrfjprog --pinreset&lt;/code&gt; and beginning and calls &lt;code&gt;sd_rpc_close()&lt;/code&gt; at end.&lt;/li&gt;
&lt;li&gt;Second time, calls &lt;code&gt;nrfjprog --pinreset&lt;/code&gt; (also tried &lt;code&gt;nrfjprog --reset&lt;/code&gt;), hangs at &lt;code&gt;sd_rpc_open()&lt;/code&gt;. Have to manually close program.&lt;/li&gt;
&lt;li&gt;Third time, runs flawlessly as in step 1.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;What is going on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_rpc_open hangs for ever if sd_rpc_close was not called</title><link>https://devzone.nordicsemi.com/thread/38977?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 12:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b232c23-fa6a-4598-8ab9-219cb36b6651</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;I can&amp;#39;t run those commands because nrfproj and JLinkExe are not deployed on the machine running my program. But as far as there&amp;#39;s a plan to have it fixed, that&amp;#39;s fine for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_rpc_open hangs for ever if sd_rpc_close was not called</title><link>https://devzone.nordicsemi.com/thread/38976?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 12:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97d2a65-69d1-445d-92c1-155596ce8c3a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, the problem is that the transport layer looses sync with the host when not closed beforehand. The development team is aware of this. A workaround is to reset the device before you start your script. You can make a script to do the reset it via the Segger programmer.&lt;/p&gt;
&lt;p&gt;E.g., using nrfjprog:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --reset
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or Jlink commander:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt;JLinkExe

&amp;gt;device nrf51

&amp;gt;r //reset and halt

&amp;gt;g // &amp;quot;go&amp;quot; start execution

&amp;gt;q // exit Jlink commander
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>