Skip to main content
Visitor II
Oct 13, 2024 5:26 PM UTC
Question

SBSFU with wolfssl in stm32h7

Hi,

I am trying to replace mbedTLS library with Wolfcrypt library for crypto operations in SECoreBin project of SBSFU. I was able to replace SHA256 related APIs. But the bootloader is crashing when I try to initialize wolfssl ECC key object under SE_CRYPTO_Authenticate_Metadata(SE_FwRawHeaderTypeDef *pxSE_Metadata) i.e.

ecc_key ecc;

wc_ecc_init(&ecc);

I have tested same set of APIs with a test project.  Any idea what could be the reason for the crash in SECore. Also I am not sure how to debug the SECoreBin project with SBSFU. 

Pls note: I am using stm32h753ZI nucleo-144 board and IAR build setup.

This topic has been closed for replies.

1 reply

Jocelyn RICARD
ST Employee
Oct 14, 2024 8:51 AM UTC

Hello @h_adi ,

I don't know what could cause this issue.

To debug SECoreBin, you have the explanation in the integration guide (AN5056) chapter "Debugging SECoreBin"

This was you should rapidly find the root cause of the crash.

Best regards

Jocelyn