2018-12-03 12:43 AM
I am currently working on a STM32F767ZI-Nucleo board and a little security chip (microchip atecc508a), that is connected via i2c connection. For this chip is a library available CryptoAuthLib (https://github.com/MicrochipTech/cryptoauthlib), that I want to use in my project. I'm also using STM32CubeMX to generate my C-Files and Atollic TrueStudio to write my implementations.
C programming language is relatively new to me, so I have no idea how to include my library folder to my project (either in cubemx or in trustudio?) to get it work.
I think the include statement
"#include "cryptoauthlib.h"
should be in the
main.c
include section, but in a certain way I have to tell the IDE to use this library.
I appreciate any help, thank you very much.
Solved! Go to Solution.
2018-12-26 06:57 AM
Hi,
You can use cryptolibrary provided by ST for the STM32. Below the link to the STM32 crypto Library which is including many project examples using Atollic and you can use to customise your application.
https://www.st.com/en/embedded-software/x-cube-cryptolib.html
Regards,
Amir
2018-12-26 06:57 AM
Hi,
You can use cryptolibrary provided by ST for the STM32. Below the link to the STM32 crypto Library which is including many project examples using Atollic and you can use to customise your application.
https://www.st.com/en/embedded-software/x-cube-cryptolib.html
Regards,
Amir
2019-01-02 06:00 AM
Hi,
Could you please feedback if you still having issue to use cryptolib?
Regards,
Amir
2019-01-02 06:17 AM
Sorry, I've totally forgotten to answer you. For educational use my task was to get "cryptoauthlib" to successfully work with an atecc508a. In the meantime I've written an additional HAL (hardware abstraction layer) implementations for a stm32 device. Now it works perfectly. I'm not very experienced with microcontrollers and my implementation was only a proof of concept, to get a stm32 device running cryptoauthlib (https://github.com/MicrochipTech/cryptoauthlib).
@AMIR NEIFAR Thank you very much, for your help.
Best regards,
WorkingStudent
2019-01-02 06:20 AM
Good to know that you are progressing in your application.
could you please mark ticket as Answered since your issue have been fixed.
Good luck and happy new year.
Regards,
Amir
2019-01-02 06:28 AM
I didn't find a FAQ, can you tell me where I can mark the ticket as answered?
Thank you very much for your help.
And a happy new year.
Regards,
WorkingStudent
2019-01-02 06:33 AM
It's Ok now.
You are welcome.
Amir
2019-08-18 08:02 PM
Hi,
I'm working on a project that I need communicate between STM32 device and ATECC508A. If you don't mind, can you share me your library of STM32 device running cryptoauthlib (https://github.com/MicrochipTech/cryptoauthlib). Thank you very much.
Best regards,
Dat
2022-11-09 10:35 PM
Hey @workingStudent ,
have you figured out how to import the cryptoauthlib to work with the STM32 MCU?
or have you found any driver for your secure element IC?