I want to know the clock frequency and the sampling rate of chipwhisperer nano. Is there any way I can print the clock frequency using Python code? I can print the sampling rate but not the clock frequency. I am targeting the STM32F0 built-in programmer. Is there any way I can increase the sampling rate?
If you run print(scope)
you’ll see all of your Nano’s properties, which default to this:
ChipWhisperer Nano Device
fw_version =
major = 0
minor = 66
debug = 0
io =
tio1 = None
tio2 = None
tio3 = None
tio4 = high_z
pdid = True
pdic = False
nrst = True
clkout = 7500000.0
cdc_settings = bytearray(b'\x01\x00\x00\x00')
adc =
clk_src = int
clk_freq = 7500000.0
samples = 5000
glitch =
repeat = 0
ext_offset = 0
errors =
sam_errors = False
sam_led_setting = Default
Here you see scope.io.clkout
which is your target clock, and scope.adc.clk_freq
which is your ADC sampling clock. Both of these can be changed, although a limited number of clock frequencies are supported. This is all documented here: Scope API — ChipWhisperer 5.7.0 documentation