Skip to main content
i2399
Associate III
July 2, 2025
Solved

STM32H750 User data in secure flash

  • July 2, 2025
  • 1 reply
  • 373 views

Hello,

I am using X-CUBE SBSFU for an application running on STM32H750 mcu.

The user application is running from QSPI, and I want to encrypt/decrypt some data that will be stored into an external EEPROM.
To do this I would like to use an AES algorithm and I would like to store the crypto key in a secure area.
In this regard it is not clear to me whether it is possible to store selected data/code in secure flash that can be accessed through the call gate feature by the user application.

I will use encrypted firmware update, so it would also be fine to access the firmware encryption AES private key or encryption functions using that key.

Thanks to anyone who could help me to put some light on this topic,

Ivan

Best answer by Bubbles

hi @i2399,

the secure call gate is really a call gate and unless the code residing behind the gate doesn't provide the data, it cannot be retrieved using the gate. I'd probably hide behind the gate in the secure memory the whole AES code accessing that EEPROM, so the key would never be exposed out of the secure area.

BR,

J

1 reply

Bubbles
BubblesBest answer
ST Employee
July 3, 2025

hi @i2399,

the secure call gate is really a call gate and unless the code residing behind the gate doesn't provide the data, it cannot be retrieved using the gate. I'd probably hide behind the gate in the secure memory the whole AES code accessing that EEPROM, so the key would never be exposed out of the secure area.

BR,

J

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.
i2399
i2399Author
Associate III
July 4, 2025

Hi Bubbles,

thanks for your reply and suggestions.
The reference user application code in X-CUBE SBSFU examples is in the file se_user_code.c and its dependencies, is that correct?

Ivan

Bubbles
ST Employee
July 11, 2025

Hi @i2399 ,

yes, I remind the UM2262 section I.3 is the detailed description.

BR.

J

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.