cancel
Showing results for 
Search instead for 
Did you mean: 

include Crypto Library in STM32CubeIDE

YLAZREG
Associate

hello,

This is an old thread but I hope to get an answer here.

I'm using NUCLEO-L496ZG-P, and I have data to decrypt (AES128 CBC).

I'm using the STM32CubeIDE to compile.

I'm trying to use the Cryptolib but didnt get how to do so. I did download "en.x-cube-cryptolib.zip"

I copied the folder en.x-cube-cryptolib/STM32CubeExpansion_Crypto_V3.1.0/AccHw_Crypto/STM32L4/Middlewares/ST to Middleware to compile the library

i added the library to the IDE :

arm-none-eabi-g++ -mcpu=cortex-m4 -T"/home/youssef/Documents/smarto/projects/gateway_v2/STM32L496ZGTXP_FLASH.ld" -Wl,-Map="gateway_v2.map" -Wl,--gc-sections -static -L"/home/youssef/Documents/smarto/projects/gateway_v2/Middlewares/ST/STM32_Crypto/Lib" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group -o "gateway_v2.elf" @"objects.list"  -llibSTM32CryptographicV3.0.0_CM4_GCC_FPU
/opt/st/stm32cubeide_1.1.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.0.0.201904181610/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld: cannot find -llibSTM32CryptographicV3.0.0_CM4_GCC_FPU
collect2: error: ld returned 1 exit status
make: *** [makefile:68: gateway_v2.elf] Error 1

Is there a document to follow ? Any suggested guide lines ?

Does the STM32L496ZG have HwAcc for Crypto ?

0 REPLIES 0