Skip to main content
xfgdf.1
Associate
September 3, 2021
Solved

STM32G431 AES not working

  • September 3, 2021
  • 1 reply
  • 1253 views

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.
Best answer by Tesla DeLorean

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

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
September 3, 2021

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 VenmoUp vote any posts that you find helpful, it shows what's working..
xfgdf.1
xfgdf.1Author
Associate
September 3, 2021

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
September 3, 2021

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 VenmoUp vote any posts that you find helpful, it shows what's working..