cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G431 AES not working

xfgdf.1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3

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

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

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