2026-03-26 3:10 AM - edited 2026-03-26 3:17 AM
Left commented out SFU_NO_SWAP and defined ENABLE_IMAGE_STATE_HANDLING in app_sfu.h, but when trying to build SECoreBin and SBSFU errors appear:
/Middlewares/ST/STM32_Secure_Engine/Core/se_fwimg.h:47:61: error: unknown type name 'SE_FwStateTypeDef'
Is there something I am missing? I selected AES-GCM crypto scheme
I have followed https://www.st.com/resource/en/application_note/an5056-integration-guide-for-the-xcubesbsfu-stm32cube-expansion-package-stmicroelectronics.pdf (Chapter 8.5)
Solved! Go to Solution.
2026-04-27 1:18 AM - edited 2026-04-27 1:18 AM
Hello @lakins
sorry for the late response.
This looks like a compilation/configuration issue rather than a crypto-scheme issue.
As per said in the AN5056 (Chapter 8.5):
you need to enable the FLAG in the 3 projects:
ENABLE_IMAGE_STATE_HANDLINGTo do so, Go into each project (SECoreBin, SBSFU, UserApp) and follow these steps:
- Right click and then properties and follow the instructions below as set in the picture below:
Then click apply and close.
Then do a clean and rebuild of all projects.
2026-04-27 1:18 AM - edited 2026-04-27 1:18 AM
Hello @lakins
sorry for the late response.
This looks like a compilation/configuration issue rather than a crypto-scheme issue.
As per said in the AN5056 (Chapter 8.5):
you need to enable the FLAG in the 3 projects:
ENABLE_IMAGE_STATE_HANDLINGTo do so, Go into each project (SECoreBin, SBSFU, UserApp) and follow these steps:
- Right click and then properties and follow the instructions below as set in the picture below:
Then click apply and close.
Then do a clean and rebuild of all projects.
2026-04-28 12:33 AM - edited 2026-04-28 12:34 AM
Thank you, just after posting I figured out what has to be done, succeed to make image state handling to work on STM32H753 :) Thanks @Onizuka09