2023-10-20 07:32 AM
Hello, I would like to install the stm32 cryptographic firmware library to use with the STM32F030K6Tx.
I download the latest version of the library the 4.1.0 from https://www.st.com/en/embedded-software/x-cube-cryptolib.html.
I followed the guide https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Security:Getting_started_with_the_Cryptographic_Library
but I cannot find the correct library for the STM32F0.
In the description of the library package is clear that the firmware includes also the STM32F0 series, so I need some help to install the correct library.
Thank you for support me.
Solved! Go to Solution.
2023-10-20 08:00 AM
Hello @LMalv.1,
The STM32F0 which embeds a Cortex-M0 is supported by the library:
STM32CubeExpansion_Crypto_V4.1.0\Middlewares\ST\STM32_Cryptographic\lib\libSTM32Cryptographic_CM0_CM0PLUS.
Now there is no example provided for the STM32F0. You will need to port one from G0 or L0 for instance to F0.
It should be quite straightforward as there is no dependency of the library related to the hardware except for the usage of the CRC (Used to make sure library runs on a STM32).
Best regards
Jocelyn
2023-10-20 08:00 AM
Hello @LMalv.1,
The STM32F0 which embeds a Cortex-M0 is supported by the library:
STM32CubeExpansion_Crypto_V4.1.0\Middlewares\ST\STM32_Cryptographic\lib\libSTM32Cryptographic_CM0_CM0PLUS.
Now there is no example provided for the STM32F0. You will need to port one from G0 or L0 for instance to F0.
It should be quite straightforward as there is no dependency of the library related to the hardware except for the usage of the CRC (Used to make sure library runs on a STM32).
Best regards
Jocelyn
2023-10-20 08:39 AM
Hello, first of all, thank you for the reply.
Do you suggest me a guide to follow to import the library into my project, and an example I can look at.
Best Regards
Lisa
2023-10-20 08:51 AM
Most tool chains would presumably permit you to drop libSTM32Cryptographic_CM0_CM0PLUS.a into the project tree, and/or provide a method to add libraries to the build/make process.
2023-10-20 08:52 AM
Hello Lisa,
I would recommend having a look to the wiki dedicated to this library.
For instance the Getting Started shows you what to do
You can also open a project from other STM32 to see how it is done.
Best regards
Jocelyn