This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unhandled exception in Master Control Panel 3.8.0.7

I'm creating an application based on the s110 SoftDevice found in nRF51_SDK_8.0.0_5fc2c3a. I'm new to the SoftDevice framework so I've probably made an error somewhere but a second or two after discovering all services of my device using Master Control Panel the unhandled exception message below is shown.

image description

Is this just a bug in MCP or a sign of something bad in my code?

I'm running Windows 8.1 64 bit (fully up to date) and Master Control Panel 3.8.0.7.

  • I'm not able to reproduce the error just by using a standard SDK example. Anyway, I don'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.

    EDIT

    I tested the hex-file and I managed to reproduce the error. The Connection Parameter Update Request packet has a field called Timeout Multiplier. 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's why MCP throws an exception.

  • I have tried another application and this does not cause the unhandled exception. Also, I don'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 "Received Connection Parameter Update Request" is shown in the log.

    I have attached the hex file: Demo.hex

    EDIT:

    Ok I see. I can see how this is an unexpected value seen from the MCP's perspective (though it shouldn't of course cause an exception) but shouldn't the softdevice check for ou of range values and return an error code to my application?

Related