This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf51822 multilink central: error in client_handling_init (S120 v2.1, PCA10001, SDK v6.1.0.0)

Hi all,

I'm a newby in the Nordic BLE world, I hope I will find some support on this forum about my problem.

I'm working on a project to create a multilink central device, based on NRF51822 device. I'm using the PCA10001 dev board to develop my project and the soft device s120 v2.1 has been flashed.

In the SDK v6.1.0.0, I extracted the project s120/ble_app_multilink_central from the board directory nrf6310. I modified the Makefile to render it able to be compiled and debug it.

This is my problem, when the program start I got the error handler (system reset) in the client_handling_init because the return value of sd_ble_uuid_vs_add is 0x3001. After a quick search in the documentation and header file, I understand the error is :

  • NRF_ERROR_STK_BASE_NUM : 0x3000

  • About the 0x0001, I'm not sure because this value is not available in S120 doxygen documentation ; is it (available in the ble_err.h file) : BLE_ERROR_NOT_ENABLED (NRF_ERROR_STK_BASE_NUM+0x001) /**< @ref sd_ble_enable has not been called. */

If yes, I don't know why the function sd_ble_enable is not called before?

I don't modify at all the example code right now, this function is indeed not called in the previous function of the file main.c or client_handling.c of ble_app_multilink_central example project.

If you have any idea?

Thanks in advance

  • What IC revision do you have? If you have rev 3 I recommend using SDK 10 if you want to use S120 v2.1, or SDK 11 if you want to use S130 v2. S130 v2 offers the same functionality (++) as S120 v2.1. SDK 6.1.0 is compatible (out of the box) with S120 v1, not v2.

  • Hi Petter,

    Thanks for your support! I don't know how to retrieve revision information, this is what I get in nRFgo Studio for device information:

    • nRF51822 QFAAG00 0x003c

    But Anyway, the information you provided are very usefull and I will try to use either the SDK10 with the same soft device or change soft device to use the SDK11.

    Is there somewhere, this kind of information to get the link between, IC revision, soft device revision and SDK version?

    Thanks in advance

  • You can find the information in the link I added in my previous comment. QFAAG00 is revision 2. And from here, you can see that it is compatible with S120 v1 and S120 v2, but only S120 v1 revision 2 is only supported by SDK 6.1, which is compatible with S120 v1. If you are new to our chips I would start off with SDK 6.1 and S120 v1, or buy a newer development kit with rev 3 nRF51 (or maybe nRF52), to use the newer SDKs and SoftDevices.

  • Ok, sorry I don't see the link!

    I'm going to close the thread.

    Thx

Related