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

SDK15 HID service_error_handler NRF_ERROR_NO_MEM

I am working in sdk15 nrf52832 ble_app_hids_keyboard.

I want merge ble_app_uart_c ,so modify in 

sdk_config.h :

NRF_SDH_BLE_CENTRAL_LINK_COUNT 1

PM_CENTRAL_ENABLED 1

But bonding with Iphone

Debug massege :

16:12:49.746> <error> app: ERROR 4 [NRF_ERROR_NO_MEM] at ..\..\..\main.c:502
16:12:49.746> PC at: 0x00034503

static void service_error_handler(uint32_t nrf_error)
{
APP_ERROR_HANDLER(nrf_error);
}

nrf_error is 0x00000004(NRF_ERROR_NO_MEM)

I don't know where no memery .

Parents
  • Hi!

    Hard to say what is returning the error, as I don't know what your modified code looks like.

    However, when you are migrating the ble_app_uart_c to the ble_app_hids_keyboard example, you are most likely adding a vendor specific UUID.

    When doing this, you should specify the number of vendor-specific UUIDs in the sdk_config.h file.

    Maybe you start by taking a look at the #define NRF_SDH_BLE_VS_UUID_COUNT
    and see that it is set to 1 and not 0?

    If that isn't helpful, please let me know so we can look closer at the problem.

    Best regards,
    Joakim.

Reply
  • Hi!

    Hard to say what is returning the error, as I don't know what your modified code looks like.

    However, when you are migrating the ble_app_uart_c to the ble_app_hids_keyboard example, you are most likely adding a vendor specific UUID.

    When doing this, you should specify the number of vendor-specific UUIDs in the sdk_config.h file.

    Maybe you start by taking a look at the #define NRF_SDH_BLE_VS_UUID_COUNT
    and see that it is set to 1 and not 0?

    If that isn't helpful, please let me know so we can look closer at the problem.

    Best regards,
    Joakim.

Children
Related