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

dm_application_context_set fails when starting bootloader

Hi, I use S110 v8 in my application with DFU support. When DFU is triggered from application (by writing 0x0104 to DFU service control characteristic), then application fails on:

err_code = dm_application_context_set(&m_dm_handle, &app_context);
APP_ERROR_CHECK(err_code);

in dfu_app_peer_data_set() in dfu_app_handler.c with err_code == 0x8008

I understand that dm_application_context_set wants to save something to non volatile memory, but as long as my device is not bonded (I don't use bonding) it fails. Why is bootloader trying to do that? Do I have to start using bonding in order to use your bootloader?

Related