diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-29 11:37:33 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-29 11:37:33 +0000 |
commit | 0d327e9e40022db6b77a4b6f2441a2f06f255d3a (patch) | |
tree | 1c8dbe08565e9ee4268a1de9d011a743498f39a6 /src/target | |
parent | 3ccbaf336ddbeb1f57966cef40d19e06ae2a795a (diff) | |
download | openocd+libswd-0d327e9e40022db6b77a4b6f2441a2f06f255d3a.tar.gz openocd+libswd-0d327e9e40022db6b77a4b6f2441a2f06f255d3a.tar.bz2 openocd+libswd-0d327e9e40022db6b77a4b6f2441a2f06f255d3a.tar.xz openocd+libswd-0d327e9e40022db6b77a4b6f2441a2f06f255d3a.zip |
comments and debug code
git-svn-id: svn://svn.berlios.de/openocd/trunk@1567 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm11.h | 3 | ||||
-rw-r--r-- | src/target/arm11_dbgtap.c | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/target/arm11.h b/src/target/arm11.h index f8fea1a1..3fa1dd86 100644 --- a/src/target/arm11.h +++ b/src/target/arm11.h @@ -56,7 +56,10 @@ do { \ int __retval = (action); \ \ if (__retval != ERROR_OK) \ + { \ + LOG_DEBUG("error while calling \"" # action "\""); \ return __retval; \ + } \ \ } while (0) diff --git a/src/target/arm11_dbgtap.c b/src/target/arm11_dbgtap.c index 4ac949a3..2b684b94 100644 --- a/src/target/arm11_dbgtap.c +++ b/src/target/arm11_dbgtap.c @@ -36,6 +36,13 @@ #define JTAG_DEBUG(expr ...) do {} while(0) #endif +/* +This pathmove goes from Pause-IR to Shift-IR while avoiding RTI. The +behavior of the FTDI driver IIRC was to go via RTI. + +Conversely there may be other places in this code where the ARM11 code relies +on the driver to hit through RTI when coming from Update-?R. +*/ tap_state_t arm11_move_pi_to_si_via_ci[] = { TAP_IREXIT2, TAP_IRUPDATE, TAP_DRSELECT, TAP_IRSELECT, TAP_IRCAPTURE, TAP_IRSHIFT @@ -476,6 +483,8 @@ int arm11_run_instr_data_to_core(arm11_common_t * arm11, u32 opcode, u32 * data, * layer (FT2232) that is long enough to finish execution on * the core but still shorter than any manually inducible delays. * + * To disable this code, try "memwrite burst false" + * */ tap_state_t arm11_MOVE_DRPAUSE_IDLE_DRPAUSE_with_delay[] = { @@ -613,7 +622,7 @@ int arm11_run_instr_data_from_core(arm11_common_t * arm11, u32 opcode, u32 * dat do { arm11_add_dr_scan_vc(asizeof(chain5_fields), chain5_fields, count ? TAP_IDLE : TAP_DRPAUSE); - + CHECK_RETVAL(jtag_execute_queue()); JTAG_DEBUG("DTR Data %08x Ready %d nRetry %d", Data, Ready, nRetry); @@ -715,7 +724,7 @@ int arm11_sc7_run(arm11_common_t * arm11, arm11_sc7_action_t * actions, size_t c JTAG_DEBUG("SC7 <= Address %02x Data %08x nRW %d", AddressOut, DataOut, nRW); arm11_add_dr_scan_vc(asizeof(chain7_fields), chain7_fields, TAP_DRPAUSE); - + CHECK_RETVAL(jtag_execute_queue()); JTAG_DEBUG("SC7 => Address %02x Data %08x Ready %d", AddressIn, DataIn, Ready); |