Skip to main content
xfgdf.1
Associate
Sep 3, 2021 1:05 PM UTC
Solved

STM32G431 AES not working

Hello, i have have included the stm32g4xx_hal_cryp.c v1.4.0.

The clock is for AES is started (__HAL_RCC_AES_CLK_ENABLE)

But the AES Registers are always 0, even writting with a debugger is not possible.

Do you have any advice ?

With friendly regards

Mark Rudolph

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Sep 3, 2021 1:58 PM UTC

Does it even support AES? https://www.st.com/resource/en/datasheet/stm32g431c6.pdf

Wouldn't that need a G441 part? The examples cover both parts, but crypto only on the G44x

https://www.st.com/en/microcontrollers-microprocessors/stm32g441cb.html

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

3 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Sep 3, 2021 1:58 PM UTC

Does it even support AES? https://www.st.com/resource/en/datasheet/stm32g431c6.pdf

Wouldn't that need a G441 part? The examples cover both parts, but crypto only on the G44x

https://www.st.com/en/microcontrollers-microprocessors/stm32g441cb.html

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
xfgdf.1
xfgdf.1Author
Associate
Sep 3, 2021 2:54 PM UTC

Thanks for your answer,

it seems it does not suppot AES.

Sadly the is no hint in the RM044, in the stm32g4xx_hal_cryp.c and also the AES Registers are present.

With friendly regards

Mark Rudolph

Tesla DeLorean
Guru
Sep 3, 2021 3:04 PM UTC

Well the consensus is that it's on-die, disabled with a fuse/otp or there's a single different mask in the mask set, and it gets disabled during production/testing to allow for easier export rules/conditions.

The part# + 10 rule has been used by ST for over a decade on STM32 parts for those without/with CRYP / HASH peripherals. ie STM32F205 vs 215

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