My problem: The run of my 1. DFU - Implementation delivers an error code after executing the line "err_code = ble_dfu_init(&m_dfus, &dfus_init);".
For my opinion this is caused by reservice_uuid.type = 0.
The parameter of my application are the following:
nRF52832, S132, SDK11.
The function is called in the suggested order:
static void services_init(void)
{
#ifdef BLE_DFU_APP_SUPPORT
uint32_t err_code;
#endif // BLE_DFU_APP_SUPPORT
// STEP 2: Add code to initialize the services used by the application.
our_service_init(&m_our_service);
#ifdef BLE_DFU_APP_SUPPORT
/** @snippet [DFU BLE Service initialization] */
ble_dfu_init_t dfus_init;
// Initialize the Device Firmware Update Service.
memset(&dfus_init, 0, sizeof(dfus_init));
dfus_init.evt_handler = dfu_app_on_dfu_evt;
dfus_init.error_handler = NULL;
dfus_init.evt_handler = dfu_app_on_dfu_evt;
dfus_init.revision = DFU_REVISION;
err_code = ble_dfu_init(&m_dfus, &dfus_init);
APP_ERROR_CHECK(err_code); --> RESET
The initialization and advertising of an second own service works fine. What did I do wrong?