alexforencich / ftjrev

JTAG reverse engineering software for FTDI compatible cables
50 stars 7 forks source link

Fix tap reset #3

Closed VivienGiraud closed 10 years ago

VivienGiraud commented 10 years ago

Previous tap reset was made by doing 'statewalk(0x1F, 6, 0);' thus sending five 1 to TAP. But we need to send five 1 plus one 0 to terminate TAP RESET so 'statewalk(0x3E, 7, 0);' is correct. Moreover, it is preferable to check if 'ftdi_write_data' return exactly 3. In this case, if it write only one or two byte(s), it would pass security check but would'nt be OK.