Hello all,
I was running the 1 - Connecting to Hardware.ipynb notebook, (CHUSKY and SAM4S) with the 313 board
In the notebook at the Capturing Traces step I get :
(ChipWhisperer Scope WARNING|File _OpenADCInterface.py:732) Timeout in OpenADC capture(), no trigger seen! Trigger forced, data is invalid. Status: 13
(ChipWhisperer Scope WARNING|File _OpenADCInterface.py:732) Timeout in OpenADC capture(), no trigger seen! Trigger forced, data is invalid. Status: 12
print(cw._version_) –> 6.0.0
scope.gain.gain changed from 0 to 22
scope.gain.db changed from 15.0 to 25.091743119266056
scope.adc.samples changed from 131124 to 5000
scope.clock.clkgen_freq changed from 0 to 7363636.363636363
scope.clock.adc_freq changed from 0 to 29454545.454545453
scope.clock.adc_rate changed from 0.0 to 29454545.454545453
scope.io.tio1 changed from serial_tx to serial_rx
scope.io.tio2 changed from serial_rx to serial_tx
scope.io.hs2 changed from None to clkgen
scope.glitch.phase_shift_steps changed from 0 to 4592
scope.trace.capture.trigger_source changed from trace trigger, rule #0 to firmware trigger
I then created an isolated python script to reproduce the error:
import chipwhisperer as cw
import time
scope = cw.scope()
scope.default_setup()
target = cw.target(scope, cw.targets.SimpleSerial)
print(“-----------------”)
print(cw._version_)
print(“-----------------”)
# manual reset target
scope.io.nrst = ‘low’
time.sleep(0.05)
scope.io.nrst = ‘high_z’
time.sleep(0.05)
data = bytearray([0]*16)
target.flush()
scope.arm()
target.simpleserial_write(‘p’, data)
print(“-----------------”)
ret = scope.capture()
if ret:
print(“Warning: trigger not seen!”)
else:
print(“Trigger captured successfully!”)
print(“-----------------”)
# Read UART response
resp = target.simpleserial_read(‘r’, 16, timeout=500)
print(“UART Response:”, resp)
print(“-----------------”)
target.dis()
scope.dis()
which has the same behavior as the notebook with the
(ChipWhisperer Scope WARNING|File _OpenADCInterface.py:732) Timeout in OpenADC capture(), no trigger seen! Trigger forced, data is invalid. Status: 13
(ChipWhisperer Scope WARNING|File _OpenADCInterface.py:732) Timeout in OpenADC capture(), no trigger seen! Trigger forced, data is invalid. Status: 12
errors.
The simpleserial-base was compiled with:make PLATFORM=CWHUSKY CRYPTO_TARGET=NONE SS_VER=SS_VER_1_1
Verifying the GPIO4 with an oscilloscope, i only see a sinusoidal like signal at
probe point JP2–>CW-GPIO4.
Hypothesis is that the target the SAM4S is not setting the trigger_high() …
Any ideas what i am doing wrong ?
Thanks





