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

sigtrap when lightblue access

Hello,

I've completed the ble iBeacon like application we are working on, with some custom GATT services/characteristics as well.

When I use LightBlue on a MacBookPro to access the device, the device often "resets".

I've attached a screen shot of what Eclipse/GDB show when this happens.

I'm looking for ideas to further isolate and debug this issue.

Debug/Dev in Win8.1: Platform: PCA10000, Eclipse, Arm GDB Some basic testing from Mac LightBlue

Best regards,

Matthew

Edit: Note: I just tested LightBlue on iOS7, iphone4s, and it seems to work great. Also just realized that LightBlue on osx is not "seeing" both of my custom services, where LightBlue-iOS7 is seeing everything great.

Screenshot 2014-01-29 10.01.07.png

  • My best guess is that what's really happening here is an error occurring, that is caught by an APP_ERROR_CHECK(), which results in app_error_handler() being called, which does a reset by default.

    For development, I'd strongly recommend to remove this reset and instead uncomment the ble_debug_assert_handler(), since that will cause the application to hang there in an infinite loop there instead. At least you should put a permanent breakpoint in app_error_handler(), so that you see any error occuring.

    It's hard to say exactly what may be the original error, but I suggest that you find out which method fails first, which error code you get back, and then take a look if it has been asked somewhere here before, or post a new question with that.

Related