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

Custom UUID troubles

In an attempt to add a custom UUID to your current project I change NRF_SDH_BLE_VS_UUID_COUNT from 0 to 1. Then loaded the code onto our PCA100040 53822 devkit. At runtime ble_stack_init() calls nrf_sdh_ble_enable() returns with error code 4 (NRF_ERROR_NO_MEM). I am using IAR workbench and the memory region for RAM is 0x20002250 to 0x2000fff

Not sure why there is a memory issue.

Parents
  • Hello,

    The current app RAM base address is probably set too low so the Softdevice can't fit the new UUID buffer. So basically you need to increase the app RAM start address to free RAM to the Softdevice. If you have debug logging enabled you should get a warning message stating what the new minimum RAM start address requirement is.  If not you can just try to increase it with a few bytes. 16 bytes is probably enough considering the size of the vendor UUID

Reply
  • Hello,

    The current app RAM base address is probably set too low so the Softdevice can't fit the new UUID buffer. So basically you need to increase the app RAM start address to free RAM to the Softdevice. If you have debug logging enabled you should get a warning message stating what the new minimum RAM start address requirement is.  If not you can just try to increase it with a few bytes. 16 bytes is probably enough considering the size of the vendor UUID

Children
No Data
Related