cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined symbols from libSTM32Cryptographic_CM4.a

YCohe.1
Associate

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!

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

2 REPLIES 2
TDK
Guru

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
Associate

YES! it works! thank you so much!