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

Why 52DK(10056) reset when I connected the nrfUART app?

FormerMember
FormerMember

Hi, I add the NUS in the ble_app_hids_mouse example which the sdk version is 14.0. There are four services in the project: dis, bas, hids and nus. When I connceted the 52DK from the nrfUART app, a reset ocurred while I pushing a button to send the mouse movement. Why did that reset happen? Thank you, it is really urgent to me.

Parents
  • (Why? How should we know with such poor info supplied?! It's great to know that it's urgent and the whole universe should help you ASAP - for free - but you don't bother to supply any debug information:)

    Debug, debug, debug, debug. What UART or RTT logging says when enabled? On which line in your source code hard fault or asserted error code from some SD or SDK function return occurs?

  • Come on, that's trivial:

    1. You will look where function ble_hids_inp_rep_send is implemented in SDK. It either is implemented in source code (and then you simply read it or even put some debug into it if not present) or just in header files as SVALL directly to SD (in that case you should get explanation of all possible error codes. This is the first case so we jump to file components\ble\ble_services\ble_hids\ble_hids.c.
    2. Now you see that the only way how this error status could be returned is by call of SD API function sd_ble_gatts_hvx. So you will find its signature in header file components\softdevice\s132\headers\ble_gatts.h.

    (1/2)

Reply
  • Come on, that's trivial:

    1. You will look where function ble_hids_inp_rep_send is implemented in SDK. It either is implemented in source code (and then you simply read it or even put some debug into it if not present) or just in header files as SVALL directly to SD (in that case you should get explanation of all possible error codes. This is the first case so we jump to file components\ble\ble_services\ble_hids\ble_hids.c.
    2. Now you see that the only way how this error status could be returned is by call of SD API function sd_ble_gatts_hvx. So you will find its signature in header file components\softdevice\s132\headers\ble_gatts.h.

    (1/2)

Children
No Data
Related