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 samplecode

Hi ! I'm completely new into programming this device. I downloaded the nAn-36 source from Github and I'm trying to make it work on a PC10000 dongle. The code stops in the assert handler from line 165 with errorcode 0x3001. I'm using SDK ver. 6.1.0 and S110 ver. 7.1.0 What did I do wrong....please help me :-)

Best regards,

Jens Jespersen

Parents
  • Hi, Jens.

    In file ble_err.h we find

    #define BLE_ERROR_NOT_ENABLED (NRF_ERROR_STK_BASE_NUM+0x001) /* sd_ble_enable has not been called.*/
    

    and in file nrf_error.h we find:

    #define NRF_ERROR_STK_BASE_NUM  (0x3000)    ///< STK error base
    

    Your error is BLE_ERROR_NOT_ENABLED (= 0x3001) - function "sd_ble_enable" has not been called.

    Are you sure that the code should be used in dongle? I think that code should be use in evulation (PC10001) or developer board.

Reply
  • Hi, Jens.

    In file ble_err.h we find

    #define BLE_ERROR_NOT_ENABLED (NRF_ERROR_STK_BASE_NUM+0x001) /* sd_ble_enable has not been called.*/
    

    and in file nrf_error.h we find:

    #define NRF_ERROR_STK_BASE_NUM  (0x3000)    ///< STK error base
    

    Your error is BLE_ERROR_NOT_ENABLED (= 0x3001) - function "sd_ble_enable" has not been called.

    Are you sure that the code should be used in dongle? I think that code should be use in evulation (PC10001) or developer board.

Children
Related