This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What error with 0x8008 mean ?

Hi My project need to transport HRM data by ANT+/BLE. base on ANT_s332_nrf52_0.9.1.alpha.hex and sdk nRF5_SDK_11.0.0_89a8197 platform. We have finished the function. Now we need to merge and add DFU function. We merge code with macro BLE_DFU_APP_SUPPORT to my project. after merged it , power on it, it will hault and report an error with 0x8008 in file Dfu_app_handler as below: void dfu_app_dm_appl_instance_set(dm_application_instance_t app_instance) { uint32_t err_code;

err_code = dm_application_instance_set(&app_instance, &m_dm_handle);
APP_ERROR_CHECK(err_code);

} but I can't search that what the error with 0x8008 mean?

Parents
  • Just look at the code, there's only a few lines in that function, or single step it.

    ret_code_t dm_application_instance_set(dm_application_instance_t const * p_appl_instance,
                                       dm_handle_t                     * p_handle)
    {
        VERIFY_MODULE_INITIALIZED();
    ....
    

    and VERIFY_MODULE_INITIALIZED() ..

    #define VERIFY_MODULE_INITIALIZED()                                 \
    do                                                                  \
    {                                                                   \
        if (!m_module_initialized)                                      \
        {                                                               \
            return (NRF_ERROR_INVALID_STATE | DEVICE_MANAGER_ERR_BASE); \
    ....
    

    and NRF_ERROR_INVALID_STATE and DEVICE_MANAGER_ERR_BASE ..

    #define NRF_ERROR_INVALID_STATE               (NRF_ERROR_BASE_NUM + 8) 
    #define NRF_ERROR_BASE_NUM      (0x0)       
    #define DEVICE_MANAGER_ERR_BASE   (0x8000)
    

    there you go, that's 0x8008

  • Hi RK, sorry, i can find it. thanks.

Reply Children
No Data
Related