OS in development environment :Windows10
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
builder :SEGGER Embedded Studio for ARM Release 3.34a Build 2018022300.35192 Windows x64
2014-2018 SEGGER Microcontroller GmbH & Co. KG
1997-2018 Rowley Associates Ltd.
GCC/BINUTILS: Built using the GNU ARM Embedded Toolchain version 6-2017-q2-update source distribution
Clang/LLVM: Built using the version 5.0.0 source distribution
Soft Ver:nRF5_SDK_15.3.0_59ac345
If you set multiple 128bit UUIDs, error 4 will occur in "sd_ble_uuid_vs_add" during operation.
I referred to related questions and others, but I couldn't solve it.
Please tell me how to resolve
<< extract program source >>
[ble_cus.h]
/-*< 2 custom service instance definition >*-/
#define BLE_CUS1_DEF(_name) static ble_cus_t _name; NRF_SDH_BLE_OBSERVER(_name ## _obs, BLE_HRS_BLE_OBSERVER_PRIO, ble_cus1_on_evt, &_name) /* Item1 */
#define BLE_CUS2_DEF(_name) static ble_cus_t _name; NRF_SDH_BLE_OBSERVER(_name ## _obs, BLE_HRS_BLE_OBSERVER_PRIO, ble_cus2_on_evt, &_name) /* Item1 */
/-*< 2 custom service instance reservation >*-/
BLE_CUS1_DEF(m_cus1); /*< 1st custom service instance */
BLE_CUS2_DEF(m_cus2); /*< 2nd custom service instance */
[ble_cus1.c]
ble_cus_init1(ble_cus_t * p_cus, const ble_cus_init_t * p_cus_init)
:
:
/*-< Add Custom Service UUID >-*/
ble_uuid128_t base_uuid = {CUSTOM_SERVICE1_UUID_BASE};
err_code = sd_ble_uuid_vs_add(&base_uuid, &p_cus->uuid_type);
VERIFY_SUCCESS(err_code);
[ble_cus2.c]
ble_cus_init2(ble_cus_t * p_cus, const ble_cus_init_t * p_cus_init)
:
:
/*-< Add Custom Service UUID >-*/
ble_uuid128_t base_uuid = {CUSTOM_SERVICE2_UUID_BASE};
err_code = sd_ble_uuid_vs_add(&base_uuid, &p_cus->uuid_type);
VERIFY_SUCCESS(err_code); <====== error4
<<---------->>
thank you
