2018-12-27 11:14 PM
I have Downloaded STM32CubeExpansion_Crypto_V3.1.0 library. I am trying to use it for STM32L431RBTx Microcontroller. But I am getting error as shown in following images.
What am I missing to do?Please help.
Building target:
_V0.1.elf" @"objects.list" -llibSTM32CryptographicV3.0.0_CM4_GCC_ot -lm
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.13.2.201705091103/tools/compiler/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -llibSTM32CryptographicV3.0.0_CM4_GCC_ot
collect2.exe: error: ld returned 1 exit status
I have also tried by removing the prefix 'lib' from library .a file name. Then I am getting following error.
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L"D:\L4\STM32CubeExpansion_Crypto_V3.1.0\Fw_Crypto\STM32L4\Middlewares\ST\STM32_Cryptographic\Lib" -specs=nosys.specs -specs=nano.specs -T"../STM32L431RBTx_FLASH.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "Hotel_Lock_V0.1.elf" @"objects.list" -lSTM32CryptographicV3.0.0_CM4_GCC_ot
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.13.2.201705091103/tools/compiler/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: error: Hotel_Lock_V0.1.elf uses VFP register arguments, D:\L4\STM32CubeExpansion_Crypto_V3.1.0\Fw_Crypto\STM32L4\Middlewares\ST\STM32_Cryptographic\Lib\libSTM32CryptographicV3.0.0_CM4_GCC_ot.a(crypto.o) does not
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.13.2.201705091103/tools/compiler/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file D:\L4\STM32CubeExpansion_Crypto_V3.1.0\Fw_Crypto\STM32L4\Middlewares\ST\STM32_Cryptographic\Lib\libSTM32CryptographicV3.0.0_CM4_GCC_ot.a(crypto.o)
collect2.exe: error: ld returned 1 exit status
make: *** [Hotel_Lock_V0.1.elf] Error 1
Solved! Go to Solution.
2018-12-28 03:01 AM
The new issue is related to the Floating point support.
You need to use another Library built with the support of FPU:
\STM32CubeExpansion_Crypto_V3.1.0\AccHw_Crypto\STM32L4\Middlewares\ST\STM32_Crypto\Lib\libSTM32CryptographicV3.0.0_CM4_GCC_FPU.a
2018-12-28 02:36 AM
Hi,
This is a link issue, please try to use STM32CryptographicV3.0.0_CM3_GCC without "lib" in the Library name.
Regards,
Amir
2018-12-28 02:40 AM
Thanks for your reply Amir. I tried that one also. but getting different error after that.
2018-12-28 03:01 AM
The new issue is related to the Floating point support.
You need to use another Library built with the support of FPU:
\STM32CubeExpansion_Crypto_V3.1.0\AccHw_Crypto\STM32L4\Middlewares\ST\STM32_Crypto\Lib\libSTM32CryptographicV3.0.0_CM4_GCC_FPU.a
2018-12-28 03:09 AM
Thank you so much Amir for your instant reply. Support of FBU worked. Project built successfully.
2018-12-28 03:12 AM
You are welcome.
Good luck for your business.
Happy to support you.
Regards,
Amir NEIFAR
2019-12-10 04:04 PM
thanks Amir
That worked.
2023-10-12 05:12 AM
Getting below error in "...\en.STM32CubeExpansion_Crypto\STM32CubeExpansion_Crypto_V4.1.0\Projects\NUCLEO-L476RG\Applications\Cipher\AES_CBC_EncryptDecrypt\STM32CubeIDE"
Implementing main.c file of AEC_CBC in my existing projects main file, I've included STM32_Cryptographic folder in middlewares