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

power_management_init return runtime error

I am merging interactive command and buttonless dfu base on https://www.u-blox.com/sites/default/files/Add-NordicSemiconductorDFU-to-SDKexample_AppNote_UBX-19050198.pdf

somehow when i try to debug  after enter 

static void power_management_init(void)
{
ret_code_t err_code;
err_code = nrf_pwr_mgmt_init();
APP_ERROR_CHECK(err_code);
}

APP_ERROR_CHECK(err_code);

it did not jump to log_init(); which i expect

but error happended and it enter

void app_error_handler_bare(ret_code_t error_code)
{
error_info_t error_info =
{
.line_num = 0,
.p_file_name = NULL,
.err_code = error_code,
};

app_error_fault_handler(NRF_FAULT_ID_SDK_ERROR, 0, (uint32_t)(&error_info));

UNUSED_VARIABLE(error_info);
}

and

__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
{
__disable_irq();
NRF_LOG_FINAL_FLUSH();

#ifndef DEBUG
NRF_LOG_ERROR("Fatal error");

and stuck in NRF_BREAKPOINT_COND; later on

someone know what happened?

Parents Reply Children
No Data
Related