diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-04-14 01:34:45 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-04-14 01:34:45 +0000 |
commit | 61ab13f895614dafa39c3891a4ae49fb24664e1c (patch) | |
tree | f06f16cf9147e6278aea7f7d933f2f6c0fd32138 /src/target/cortex_m3.c | |
parent | f62ba3550762cded4a857e2c2763b3c2f6436e5d (diff) | |
download | riscv-openocd-61ab13f895614dafa39c3891a4ae49fb24664e1c.zip riscv-openocd-61ab13f895614dafa39c3891a4ae49fb24664e1c.tar.gz riscv-openocd-61ab13f895614dafa39c3891a4ae49fb24664e1c.tar.bz2 |
TRST is asserted *before* target->type->assert_reset() is invoked. Removed old code.
git-svn-id: svn://svn.berlios.de/openocd/trunk@574 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/cortex_m3.c')
-rw-r--r-- | src/target/cortex_m3.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c index 94f68f6..6bdb1df 100644 --- a/src/target/cortex_m3.c +++ b/src/target/cortex_m3.c @@ -691,14 +691,6 @@ int cortex_m3_assert_reset(target_t *target) ahbap_write_system_atomic_u32(swjdp, DCB_DEMCR, TRCENA | VC_HARDERR | VC_BUSERR | VC_CORERESET ); } - if (target->state == TARGET_HALTED || target->state == TARGET_UNKNOWN) - { - /* assert SRST and TRST */ - /* system would get ouf sync if we didn't reset test-logic, too */ - jtag_add_reset(1, 1); - jtag_add_sleep(5000); - } - if (jtag_reset_config & RESET_SRST_PULLS_TRST) { jtag_add_reset(1, 1); |