cancel
Showing results for 
Search instead for 
Did you mean: 

Why is crypto not working in stm32L071CBTx?

SSiwa.1
Associate II

Hello all. I am using stm32L071CBTx and I need to implement crypto here. I am using official crypto library(UM1924). I have managed to run the code with my hardware. Th problem I am facing here is that whenever I change plainText values, it doesn't work and go to errorhandler function. same is true with other parameters such as keys etc. What should I do ? Can I use any c/c++ library and use it in stm32 ?

Thanks and Regards.

4 REPLIES 4

>>Can I use any c/c++ library and use it in stm32 ?

Yes, that's how compilers work. You can use whatever fits into your FLASH/RAM footprint.

Code written for a PC with a couple of GB will need to be adjusted for systems where resources are less boundless.

The STM32 crypto libraries expect the CRC peripheral to be enabled

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Uwe Bonnes
Principal II

If the crypto library is using the crypto hardware: Stm32L07 has crypto hardware disabled.

I have enabled CRC macro and called init func in main. still no response

SSiwa.1
Associate II

I don't think that there is any crypto hardware in stm32L0