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

adding 'scan_start()' to 'ble_app_uart' example.

Hi, all

I just asked similar one yesterday, but I think this should be resolved first.

I want to merge ble_app_uart_c and ble_app_uart.

So I added scan_init / scan_start function to ble_app_uart example.

It works well, but it gets error when scan connect.

it returns 0x12 error

So I want to know what did I miss.. Thank you in advance.

Parents
  • Hello,

    0x12 corresponds to NRF_ERROR_CONN_COUNT, and this error indicates that the Softdevice has not been configured to support the central link. Please make sure NRF_SDH_BLE_CENTRAL_LINK_COUNT is set to '1' and that NRF_SDH_BLE_TOTAL_LINK_COUNT reflects the total number of links you plan to support (guessing it is 2)

    Best regards,

    Vidar

  • Hi,

    I set NRF_SDH_BLE_CENTRAL_LINK_COUNT '1' and NRF_SDH_BLE_TOTAL_LINK_COUNT '2'.

    And then error occurs 0x04 in ble_stack_init.

    Is this because of RAM START and SIZE? If so, what data should I refer to to change the values?

    I'm using pca10100, s140.

    added) I changed RAM SIZE and START refer to my code value but still same error code (0x04) occurs.

    Did I miss something? Thank you in advance.

Reply
  • Hi,

    I set NRF_SDH_BLE_CENTRAL_LINK_COUNT '1' and NRF_SDH_BLE_TOTAL_LINK_COUNT '2'.

    And then error occurs 0x04 in ble_stack_init.

    Is this because of RAM START and SIZE? If so, what data should I refer to to change the values?

    I'm using pca10100, s140.

    added) I changed RAM SIZE and START refer to my code value but still same error code (0x04) occurs.

    Did I miss something? Thank you in advance.

Children
Related