Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/target/jtag_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,13 @@ static bool jtag_sanity_check(void)
/* Transition to Shift-DR */
DEBUG_INFO("Change state to Shift-DR\n");
jtagtap_shift_dr();
/* Preload entire DR chain of BYPASS with known 0 value */
jtag_proc.jtagtap_cycle(false, false, jtag_dev_count);

/* Count devices on chain */
size_t device = 0;
for (; device <= jtag_dev_count; ++device) {
/* Read back the known 0's, shift out 1's, expect reading 1 after the chain loops */
if (jtag_proc.jtagtap_next(false, true))
break;
/* Configure the DR pre/post scan values */
Expand Down
Loading