cancel
Showing results for 
Search instead for 
Did you mean: 

SBSFU failing control flow check when protections are enabled

snmunters
Associate III

Hi,
I am using SBSFU v2.8 with an STM32H750. I have successfully booted my firmware without any protections. I have also enabled protections and succeeded all tests in the test suite provided in the example code in sfu_test.c.

However, when I attempt to boot my firmware with any protections enabled at all, I get the following, followed by a reset.

snmunters_0-1776952608294.png

This is happening at the first control flow check at line 1092 in sfu_boot.c.

snmunters_1-1776953061822.png

In my research, I found this post. I replicated it and included app_sfu.h in sfu_boot.h. It works now.

I would like some clarification on this whole situation. Is this a bug? or is my build system just not including app_sfu.h appropriately ?

Thanks!

1 REPLY 1
Jocelyn RICARD
ST Employee

Hello @snmunters ,

there is no reason that something working with example firmware will not work with your firmware.

You must have changed something in the secure boot other than the protection activation.

Best regards

Jocelyn