diff options
Diffstat (limited to 'src/target/cortex_m.c')
-rw-r--r-- | src/target/cortex_m.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 6fba9259..9521085b 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -989,7 +989,8 @@ static int cortex_m3_assert_reset(struct target *target) bool srst_asserted = false; - if (jtag_reset_config & RESET_SRST_NO_GATING) { + if ((jtag_reset_config & RESET_HAS_SRST) && + (jtag_reset_config & RESET_SRST_NO_GATING)) { adapter_assert_reset(); srst_asserted = true; } |