forked from auracaster/openocd
target/esp_xtensa: add xtensa on_halt handler
Right after target halt, some activities needs to be done such as printing exception reason, disable wdts and reading debug stubs information. Missing activities will be submitted in the next patches. Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com> Change-Id: I27aad5614d903f4bd7c8d6dba6bfb0bdb93ed8dc Reviewed-on: https://review.openocd.org/c/openocd/+/7757 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
78daf24a5c
commit
29b02402ff
@@ -266,7 +266,10 @@ static int esp32_disable_wdts(struct target *target)
|
||||
|
||||
static int esp32_on_halt(struct target *target)
|
||||
{
|
||||
return esp32_disable_wdts(target);
|
||||
int ret = esp32_disable_wdts(target);
|
||||
if (ret == ERROR_OK)
|
||||
ret = esp_xtensa_smp_on_halt(target);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int esp32_arch_state(struct target *target)
|
||||
|
||||
Reference in New Issue
Block a user