Not able to run timing attack

Hello All,

I tried running the timing attack script at found at

/home/cwuser/chipwhisperer/software/chipwhisperer/capture/scripts/cwlite-timingattack.py

at first the script gave me an error which said

Could not execute method run in script class UserScript: ‘KeyError: Parameter not found: [‘Reset AVR/XMEGA via CW-Lite’, ‘Delay (Post-Arm)’]:“Parameter not found: [‘Reset AVR/XMEGA via CW-Lite’, ‘Delay (Post-Arm)’]”’

a quick debug and I figured out that this line

[‘Reset AVR/XMEGA via CW-Lite’, ‘Delay (Post-Arm)’, 1200],

needed to be changed to
‘Aux Settings’, ‘Reset AVR/XMEGA via CW-Lite’, ‘Delay (Post-Arm)’, 10],

now I’m getting an error

Could not execute method run in script class UserScript: ‘AttributeError: ‘OpenADC’ object has no attribute ‘datapoints’:‘OpenADC’ object has no attribute ‘datapoints’’

which is at line

data = self.api.getScope().datapoints

But, I’m not able to get through it. Any pointers?

Thanks for the help and reading through this post :slight_smile:

Nice debugging so far!

This is a problem that we had earlier - we upgraded the API but we forgot to change some of the old scripts to work…

The answer is in this forum post - the fix is to use the line

self.api.getScope().channels[0].getTrace()