cancel
Showing results for 
Search instead for 
Did you mean: 

How do I fix a compile error in the STM32 Cryptographic Library v2.0.6

Rook.Malcolm
Associate II

I have started to use the STM32 Cryptographic library on an existing product which uses the STM32L476 and consequently has no hardware encryption available. I have a problem when the firmware compiles. I get an error 'Undefined Symbol RCC_AHBPeriphClockCmd (referred from crypto.o)'. As the libraries are supplied precompiled, how can I fix this? I do note that there is no mention of STM32L4XX devices in the crypto.h or config.h files or templates for STM32L4xx devices.

1 REPLY 1

It is trying to enable the CRC Peripheral, if the mechanics there work on the L4 you just need to make a shim/wedge function called RCC_AHBPeriphClockCmd() to enable the CRC Clock and give the linker closure.

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