aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/sca/target/chipwhisperer.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/sca/target/chipwhisperer.py')
-rw-r--r--pyecsca/sca/target/chipwhisperer.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyecsca/sca/target/chipwhisperer.py b/pyecsca/sca/target/chipwhisperer.py
index 1dcdbe3..3710195 100644
--- a/pyecsca/sca/target/chipwhisperer.py
+++ b/pyecsca/sca/target/chipwhisperer.py
@@ -39,5 +39,11 @@ class ChipWhispererTarget(Flashable, SimpleSerialTarget): # pragma: no cover
def read(self, num: Optional[int] = 0, timeout: Optional[int] = 0) -> bytes:
return self.target.read(num, timeout).encode()
+ def reset(self):
+ self.scope.io.nrst = "low"
+ sleep(0.05)
+ self.scope.io.nrst = "high"
+ sleep(0.05)
+
def disconnect(self):
self.target.dis()