Skip to main content
YCohe.1
Associate
August 8, 2021
Solved

Undefined symbols from libSTM32Cryptographic_CM4.a

  • August 8, 2021
  • 2 replies
  • 2500 views

Hi,

We are migrating our code from using M3_CryptoFW_RngHW_2_0_6 to using libSTM32Cryptographic_CM4.a. Our target is STM32F405VGTx. When compiling we get a linker error from the library itself (cmox init is part of the ST lib), not from a function our code directly uses. What are we missing here? any required configuration?

.\Application\Application.axf: Error: L6218E: Undefined symbol cmox_ll_deInit (referred from cmox_init.c.o).

.\Application\Application.axf: Error: L6218E: Undefined symbol cmox_ll_init (referred from cmox_init.c.o). 

Thanks!

This topic has been closed for replies.
Best answer by TDK

From this page:

https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Security:Getting_started_with_the_Cryptographic_Library

As you can see, the cmox_low_level_template.c file includes two function implementations:

  • cmox_ll_init: CMOX library low level initialization
  • cmox_ll_deInit: CMOX library low level de-initialization

Did you include this file in your sources somewhere? Typically the *_template.c files are meant to be customized by the user for your specific configuration. You would rename it to cmox_low_level.c. Code generation may or may not do this for you.

2 replies

TDK
TDKBest answer
Super User
August 8, 2021

From this page:

https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Security:Getting_started_with_the_Cryptographic_Library

As you can see, the cmox_low_level_template.c file includes two function implementations:

  • cmox_ll_init: CMOX library low level initialization
  • cmox_ll_deInit: CMOX library low level de-initialization

Did you include this file in your sources somewhere? Typically the *_template.c files are meant to be customized by the user for your specific configuration. You would rename it to cmox_low_level.c. Code generation may or may not do this for you.

"If you feel a post has answered your question, please click ""Accept as Solution""."
YCohe.1
YCohe.1Author
Associate
August 9, 2021

YES! it works! thank you so much!