cancel
Showing results for 
Search instead for 
Did you mean: 

LInk Errors libSTM32Cryptographic_CM0_CM0PLUS.a

RKher.1
Associate III

Hi, I am implementing ECDSA signing functionality based on some sample code in the package en.STM32CubeExpansion_Crypto_v4.0.1. I am getting the following linker error. What am I missing? Thanks!

c:\st\stm32cubeide_1.6.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: ../STM32_Cryptographic\Lib\libSTM32Cryptographic_CM0_CM0PLUS.a(cmox_init.c.o): in function `cmox_initialize':

cmox_init.c:(.text+0x1a): undefined reference to `cmox_ll_init'

3 REPLIES 3
Imen.D
ST Employee

Hello @RKher.1​ ,

Make sure that the header file declaring the function is included in the include path, and add the directories with source files in them to the source folders.

Project properties -> C/C++ General -> Paths and Symbols -> Source Location

When your question is answered, please close this topic by choosing Select as Best.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

Hi @RKher.1​ ,

Please let me know if your issue is solved, and share your progress with the community here, so that more members can benefit from this discussion.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
RKher.1
Associate III

@Imen DAHMEN​ I was not able to get this resolved I included the STM32_Cryptgraphic folder in en.STM32CubeExpansion_Crypto_v4.0.1 which contains all the header files including cmox_crypto.h. Do you happen to know the name of the particular header file that I should include for this. My understanding was that including cmox_crypto.h would be sufficient. Thanks!