handle_reset_halt() function
Simulates broken Vector Catch Function will try to determine entry point of user application. If it succeeds it will set HW breakpoint at that address, issue SW Reset and remove the breakpoint afterwards. In case of CM0, SYSRESETREQ is used. This allows to reset all peripherals. Boot code will reset CM4 anyway, so using SYSRESETREQ is safe here. In case of CM4, VECTRESET is used instead of SYSRESETREQ to not disturb CM0 core.
Arguments
Return value
ERROR_OK in case of success, ERROR_XXX code otherwise
Functions calling handle_reset_halt()
Functions called by handle_reset_halt()
handle_reset_halt()
usleep() all items filtered out
Data read by handle_reset_halt()
Data written by handle_reset_halt()
handle_reset_halt()
handle_reset_halt()::hr handle_reset_halt()::vt_base all items filtered out
Type of handle_reset_halt()
handle_reset_halt()
uint32_t all items filtered out