diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2024-07-15 11:56:36 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2024-11-02 20:59:48 +0000 |
commit | 3ce0962f2c525595bcbd0bd5da73673e236fc42d (patch) | |
tree | c17c6e8566b4aa87adda67bfedde3fb485bf491c /git-hooks/commit-msg | |
parent | 7214c8be46f749f210e00d334c30883bd73cca03 (diff) | |
download | riscv-openocd-3ce0962f2c525595bcbd0bd5da73673e236fc42d.zip riscv-openocd-3ce0962f2c525595bcbd0bd5da73673e236fc42d.tar.gz riscv-openocd-3ce0962f2c525595bcbd0bd5da73673e236fc42d.tar.bz2 |
target: cortex_m: fix polling for target kept under reset
In multi-target SoC not all the targets are running simultaneously
and some target could be powered off or kept under reset.
Commit 4892e32294c6 ("target/cortex_m: allow poll quickly get out
of TARGET_RESET state") does not considers the case of a target
that is kept in reset and expects the target to change state from
TARGET_RESET immediately.
This causes OpenOCD to log continuously:
Info : [stm32mp15x.cm4] external reset detected
Info : [stm32mp15x.cm4] external reset detected
Info : [stm32mp15x.cm4] external reset detected
Read again dhcsr to detect the 'stable' reset status and quit,
waiting for next poll to re-check the target's status.
Change-Id: Ic66029b988404a1599bb99bc66d4a8845b8b02c6
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Fixes: 4892e32294c6 ("target/cortex_m: allow poll quickly get out of TARGET_RESET state")
Reviewed-on: https://review.openocd.org/c/openocd/+/8399
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
Diffstat (limited to 'git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions