Hello! I try to add nus service to ble_app_template.
I add ble_nus.c file into project
add include "ble_nus.h"
declared service
BLE_NUS_DEF(m_nus);
add into service_init()
uint32_t err_code;
ble_nus_init_t nus_init;
memset(&nus_init, 0, sizeof(nus_init));
nus_init.data_handler = nus_data_handler;
err_code = ble_nus_init(&m_nus, &nus_init);
APP_ERROR_CHECK(err_code);
Compiled without errors. app not works, in log "fatal error".
here find that we have to increase service counter. I couldn't find it in SDK14, so I found
// <o> NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs.
#ifndef NRF_SDH_BLE_VS_UUID_COUNT
#define NRF_SDH_BLE_VS_UUID_COUNT 0
#endif
changed count to 1
Now it's compliant to
nrf_sdh_ble: RAM start should be adjusted to 0x200020F0.
nrf_sdh_ble: RAM size should be adjusted to 0xDF10.
nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
I also tried to change IRAM settings for different values. But nothing changed