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

Porting BLE Throughput example to custom application

HI,

I am trying to port the existing BLE throughput example code to my custom board with nrf52840 with SDK v17.0.2  soft device is S140.

I want my custom board to work as a tester (sending data continuously till the test is completed) and the receiver can be another nrf evaluation board.

I see there are 2 APIs in the main.c. 

server_init() and client_init() I assume both have to be called for initialization.
However, on calling of either of the API, I end up with error 4 (NRF_ERROR_NO_MEM If there are no more free slots for VS UUIDs)
In both the cases this is coming from API sd_ble_uuid_vs_add().
What is the memory that I need to take care? is it the RAM or anything else?
Thanks in advance
Manjunath S.
  • Hi, 

    sd_ble_uuid_vs_add() will return NRF_ERROR_NO_MEM if there are no more free slots for VS UUIDs. In other words, if you haven't configured the SoftDevice to reserve enough RAM for storing vendor specific base UUIDs. You could try to increase NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h. 

    If this cannot help, please build with debug mode and provide the debug log on the device. 

    -Amanda H.

Related