I am new user of CW. I successfully run the SCA101 course, 4_2 example with the attack on AES. The target board was CW308_STM32F3. For experimenting reasons I need to run the same example on CW308_STM32F1. I changed the target board from STM32F303RCT7 to STM32F100RBT6B but when I compiled the project I got this error:
undefined reference to _gettimeofday' undefined reference to
_sbrk’
and some others.
Is there any ready to run project with AES for STM32F100RBT6B.
Hi,
I’m not able to replicate with make PLATFORM=CW308_STM32F1 CRYPTO_TARGET=TINYAES128C
. How are you trying to build the firmware?
Alex
SCOPETYPE = ‘OPENADC’
PLATFORM = ‘CW308_STM32F1’
CRYPTO_TARGET=‘TINYAES128C’
SS_VER=‘SS_VER_1_1’%%bash -s “$PLATFORM” “$CRYPTO_TARGET” “$SS_VER”
cd …/…/…/hardware/victims/firmware/simpleserial-aes
make PLATFORM=$1 CRYPTO_TARGET=$2 SS_VER=$3
Do I need to compile it in a different way?
Your make command looks fine. Are you on the latest commit and have you made any modifications to the firmware? _gettimeofday
and _sbrk
shouldn’t be in that firmware.
Alex
This is the exact error:
The only modification that I did was inserting the trigger within the ChipWhisperer5_64\cw\home\portable\chipwhisperer\hardware\victims\firmware\crypto\tiny-AES128-C\aes.c
This looks like a specs issue. Can you try adding --specs=nosys.specs
to cw/home/portable/chipwhisperer/hardware/victims/firmware/hal/stm32f1/Makefile.stm32f1
?
Alex
Perfect. It works fine. Thanks a lot for the quick response.