You have defined a function:
def cap_pass_trace(pass_guess):
reset_target(scope)
num_char = target.in_waiting()
while num_char > 0:
target.read(num_char, 10)
time.sleep(0.01)
num_char = target.in_waiting()
scope.arm()
target.write(pass_guess)
ret = scope.capture()
if ret:
print('Timeout happened during acquisition')
trace = scope.get_last_trace()
return trace
The second line says reset_target(scope) - what is it?
I commented it out, but there was no trigger pulse.
I looked at basic-passwdcheck.c
main() ends like this:
} else {
my_puts("Access granted, Welcome!\n");
led_ok(1);
}
//All done;
while(1);
}
return 1;
I commented out while(1), compiled, and got my trigger pulse.
Where/what is reset_target(scope)?
To me, it makes sense that the target asks for a password until the password is correct. Then it could do while (1) - or?
e