cancel
Showing results for 
Search instead for 
Did you mean: 

Validating FW Image on NUCLEO-H753 SBSFU example

lakins
Associate II

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)

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Onizuka09
ST Employee

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) 

Onizuka09_1-1777051515888.png


you need to enable the FLAG in the 3 projects: 

ENABLE_IMAGE_STATE_HANDLING

To 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:  

Onizuka09_0-1777051372672.png

Then click apply and close. 

Then do a clean and rebuild of all projects.

 

View solution in original post

2 REPLIES 2
Onizuka09
ST Employee

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) 

Onizuka09_1-1777051515888.png


you need to enable the FLAG in the 3 projects: 

ENABLE_IMAGE_STATE_HANDLING

To 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:  

Onizuka09_0-1777051372672.png

Then click apply and close. 

Then do a clean and rebuild of all projects.

 

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