handle_reset_halt() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

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.

Syntax

static int handle_reset_halt(struct target *target);

Arguments

target

current target

Return value

ERROR_OK in case of success, ERROR_XXX code otherwise

References

LocationReferrerText
psoc6.c:887
static int handle_reset_halt(struct target *target)
psoc6.c:976psoc6_handle_reset_halt()
return handle_reset_halt(target);

Call Tree

Functions calling handle_reset_halt()
Functions called by handle_reset_halt()
all items filtered out
handle_reset_halt()
Data read by handle_reset_halt()
Data written by handle_reset_halt()
handle_reset_halt()::hr
handle_reset_halt()::reset_addr
handle_reset_halt()::armv7m
handle_reset_halt()::is_cm0
handle_reset_halt()::vt_base
handle_reset_halt()::vt_offset_reg
handle_reset_halt()::cm
all items filtered out
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