<?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>Unhandled exception in Master Control Panel 3.8.0.7</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6096/unhandled-exception-in-master-control-panel-3-8-0-7</link><description>I&amp;#39;m creating an application based on the s110 SoftDevice found in nRF51_SDK_8.0.0_5fc2c3a. I&amp;#39;m new to the SoftDevice framework so I&amp;#39;ve probably made an error somewhere but a second or two after discovering all services of my device using Master Control</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Mar 2015 05:19:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6096/unhandled-exception-in-master-control-panel-3-8-0-7" /><item><title>RE: Unhandled exception in Master Control Panel 3.8.0.7</title><link>https://devzone.nordicsemi.com/thread/21337?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2015 05:19:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2cc0618-b50d-4b2c-832b-fa75c8445c72</guid><dc:creator>Claus Andersen</dc:creator><description>&lt;p&gt;I have tried another application and this does not cause the unhandled exception. Also, I don&amp;#39;t always see the error so something in my application seems to be triggering it.
The exception occurs at the same time that the message &amp;quot;Received Connection Parameter Update Request&amp;quot; is shown in the log.&lt;/p&gt;
&lt;p&gt;I have attached the hex file: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Demo.hex"&gt;Demo.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;Ok I see.
I can see how this is an unexpected value seen from the MCP&amp;#39;s perspective (though it shouldn&amp;#39;t of course cause an exception) but shouldn&amp;#39;t the softdevice check for ou of range values and return an error code to my application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unhandled exception in Master Control Panel 3.8.0.7</title><link>https://devzone.nordicsemi.com/thread/21336?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2015 18:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf3dac1-d3c8-49f4-bad3-98d678b1a6b6</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce the error just by using a standard SDK example. Anyway, I don&amp;#39;t think MCP should give you an unhandled execption error, so it could be a bug. Maybe you can post the hex-file of the application you created. Then I can test it out here.&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;I tested the hex-file and I managed to reproduce the error. The &lt;strong&gt;Connection Parameter Update Request&lt;/strong&gt; packet has a field called &lt;strong&gt;Timeout Multiplier&lt;/strong&gt;. You set this field to 0xFFFF (=65535). In the BLE core specification 4.2 page 83 (Vol 3, Part A, section 4.20) you can read about this packet. The range of the timeout field is specified to be between 10 and 3200, which is below your value. So that&amp;#39;s why MCP throws an exception.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>