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

Problems with vendor-specific uuids

Hello,

I have been working with the example ble_app_hids_mouse to learn a bit whitelist. My code now doesn´t have anything about the mouse anymore since i only care about the whitelist code.

I followed the Bluetooth low energy Services, a beginner's tutorial to learn about customs services. I followed the first part of the tutorial (until step 4) and found out i had a problem with the sd_ble_uuid_vs_add function. Error code 4 which means NRF_ERROR_FORBIDDEN.

After some reading in the forums, I changed NRF_SDH_BLE_VS_UUID_COUNT to 1 and i get an error now in nrf_sdh_ble_enable  (error code 4). I changed the ram memory in the ble_app_hids_mouse_gcc_nrf52.ld file and i still have the error, can i get some help here?

Thank you 

 EDIT: I checked the debug terminal and i got the following:
<warning> nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
<warning> nrf_sdh_ble: Change the RAM start location from 0x20002218 to 0x20002220.
<warning> nrf_sdh_ble: Maximum RAM size for application is 0xDDE0.
<error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
<error> app: Fatal error

I changed the linker file to:
MEMORY
{
FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x5a000
RAM (rwx) : ORIGIN = 0x20002220, LENGTH = 0xdde0
//RAM (rwx) : ORIGIN = 0x20002218, LENGTH = 0xdde8             //***Original***
}

and i get the same error

Parents
  • Hi Gercer,

     | would like to know which SDK version you are using as well as the Softdevice version.

    Unfortunately the tutorial you are referring to is 3 years old and based on an older SDK version, so if you are using a newer one then there can be some incompatibilities.

    (There is an updated tutorial which can be of help to you)

     

    Since you got the error NRF_ERROR_FORBIDDEN from the sd_ble_uuid_vs_add() this can be related to this.

     

     

    //cheers

Reply
  • Hi Gercer,

     | would like to know which SDK version you are using as well as the Softdevice version.

    Unfortunately the tutorial you are referring to is 3 years old and based on an older SDK version, so if you are using a newer one then there can be some incompatibilities.

    (There is an updated tutorial which can be of help to you)

     

    Since you got the error NRF_ERROR_FORBIDDEN from the sd_ble_uuid_vs_add() this can be related to this.

     

     

    //cheers

Children
Related