From: oharboe at B. <oh...@ma...> - 2009-04-29 13:37:34
|
Author: oharboe Date: 2009-04-29 13:37:33 +0200 (Wed, 29 Apr 2009) New Revision: 1567 Modified: trunk/src/target/arm11.h trunk/src/target/arm11_dbgtap.c Log: comments and debug code Modified: trunk/src/target/arm11.h =================================================================== --- trunk/src/target/arm11.h 2009-04-29 07:40:07 UTC (rev 1566) +++ trunk/src/target/arm11.h 2009-04-29 11:37:33 UTC (rev 1567) @@ -56,7 +56,10 @@ int __retval = (action); \ \ if (__retval != ERROR_OK) \ + { \ + LOG_DEBUG("error while calling \"" # action "\""); \ return __retval; \ + } \ \ } while (0) Modified: trunk/src/target/arm11_dbgtap.c =================================================================== --- trunk/src/target/arm11_dbgtap.c 2009-04-29 07:40:07 UTC (rev 1566) +++ trunk/src/target/arm11_dbgtap.c 2009-04-29 11:37:33 UTC (rev 1567) @@ -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 @@ * 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 @@ 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 @@ 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); |