Skip to main content
RKher.1
Associate II
October 20, 2021
Question

LInk Errors libSTM32Cryptographic_CM0_CM0PLUS.a

  • October 20, 2021
  • 3 replies
  • 1036 views

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'

This topic has been closed for replies.

3 replies

ST Technical Moderator
November 1, 2021

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ST Technical Moderator
November 4, 2021

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
RKher.1
RKher.1Author
Associate II
November 4, 2021

@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!