I’m attempting to integrate Kyber with ChipWhisperer, but I’ve encountered some errors related to timeouts in the OpenADC component.
In the firmware, I’ve utilized
trigger_high() to initiate the triggering process.
For my experiments, I’m using CWLite with the STM32F4 development board. Is there any way to resolve this issue?
Most likely your target is never getting to
Make sure the length of
text corresponds to what you have where you add your
Thank you for getting back to me. I have set my text length to 32 bytes, and I also made sure to set simpleserial_addcmd() to 32 bytes, but the error still persists
Are you sure that the baudrates are set correctly, on both the ChipWhisperer side and the target side?
I would also suggest attaching a debugger to your target to see what it’s doing / whether it’s stuck somewhere.
I noticed that changing the SS_VER from 1_1 to 2_1 made it work. This leads me to suspect that the issue might be related to the baud rate. Are there any alternative methods to set or verify the baud rate?
In general, for the firmware code used in our courses, you can set SS_VER to either 1_1 or 2_1, but you have to use the same version to compile the firmware:
make ... SS_VER=<SS_VER_2_1 | SS_VER_1_1>
that you use to talk to the target:
target = cw.target(scope, <cw.targets.SimpleSerial2 | cw.targets.SimpleSerial)
For both versions, the baud rate used by ChipWhisperer will default to the correct setting, assuming that the target is clocked at 7.37 MHz and that the baud rate set by the target firmware has not been changed.
If you wish to clock the target at a different speed, scale the baud rate accordingly by adjusting