I'm using the jtagbang code that is used to create a JTAG interface using GPIO.
For some strange reason the JTAG TAP SM transitions from
test_logic_reset -> run_test_idle (with TMS=0) but then the JTAG TAP SM
changes to pauseDR state and then to shiftDR state.
It seems like there is some kind of glitching occurring on
Tck or Tms or both outputs to allow such a weird transition.
- How to ensure all serial cmds sent to JTAG I/O are really working properly ?
- How to preflush or preinitialize the serial port or GPIO ports for JTAG IO ?
I tried to use
void setup (
pinMode(TDI, OUTPUT); // our output, their input
pinMode(TDO, INPUT); // their output, our input
// but it doesn't make a difference.
Serial.print("Set all GPIO output to zeroes\n");