Skip to main content
Associate III
December 26, 2024
Solved

STM32H523 and AES HAL

  • December 26, 2024
  • 1 reply
  • 953 views

Hi,

I am trying to configure the AES accelerator on STM32H523 MCU. But I couldn't find an option to configure AES engine in CubeMX.

 

I have double checked Reference manual and I found the AES engine in the MCU ref manual. I looked at the ST HAL and the AES is defined under CRYPTO module.

 

The only modules available under Security are

RNG, PKA, HASH, and of course the Global Trust Zone GTZC.

 

My CubeMX version is 6.13.0

Best answer by Souhaib MAZHOUD

Hello @hakeila 

This is normal behavior, as by checking DS14540, STM32H523 does not support AES feature.

KR, Souhaib

 

1 reply

Souhaib MAZHOUDBest answer
Technical Moderator
December 27, 2024

Hello @hakeila 

This is normal behavior, as by checking DS14540, STM32H523 does not support AES feature.

KR, Souhaib

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
hakeilaAuthor
Associate III
December 30, 2024

Hi Souhaib,

 

Thank you for your reply.

 

Actually the STM32H523 datasheet doesn't mention AES as part of the security. However, neither the PKA, HASH nor RNG HAL are mentioned in the datasheet even though they are already supported by this MCU and I installed them via CubeMX for this MCU.

This means that the datasheet is not complete or there are errors in it

 

In RM0481 reference manual, there is a complete section about AES and by reading it through, there was no mention of STM32H523 exclusion. 

 

I downloaded STM32-CRYPTOLIB-4.3.0. It is compiled successfully under my STM32H523 project but I haven't used it yet. It does contain AES as one of the encryption algorithms. Is there any implication on using this ST library on this MCU?

 

My whole point of using this is that I would like to know if I can use OEMiROT and OEMuROT on STM32H523 without using AES. And Is there any drawbacks in using STM32-CRYPTOLIB