cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeExpansion_SBSFU_V2.8.0 (2_Images_SECoreBin) fails with GNU14.3 Toolchain from CubeIDE

Vinay_Shirol
Associate II

Hi ST team,

I am using X-CUBE-SBSFU V2.8.0, project: 

  • Device: STM32H753
  • Base example: NUCLEO-H753ZI 2_Images
  • I ported UART pins/port for my H753 EVAL board.

Problem

  • Build fails in SECoreBin with GNU14.3 toolchain:
  • C:/.../2_Images_SECoreBin/Src/se_crypto_bootloader.c:222:(.text.SE_CRYPTO_Decrypt_Init+0x16): dangerous relocation: unsupported relocation

 

However , Then i shifted to 13.3 tool chain , then everything works fine for me. 

 

Please confirm whether this is a known GCC 14.3 compatibility issue for SBSFU v2.8.0 key generation. If yes, could you share an official patch for prebuild.sh / key assembly generation so generated key symbols are fully compatible with newer GNU/binutils?

2 REPLIES 2
Jocelyn RICARD
ST Employee

Hello @Vinay_Shirol ,

I can reproduce your issue with latest STM32CubeIDE 2.1.0 pulling GCC 14.3

I could find a temporary workaround:

1) disable the prebuild adding a # in front of the prebuild.sh in build steps

2) Edit se_keys.s

Replace

.section .SE_Key_Data,"a",%progbits

by

.section .SE_Key_Data,"ax",%progbits

 

replace

	.global SE_ReadKey_1

SE_ReadKey_1:

by

	.global SE_ReadKey_1
	.thumb_func

SE_ReadKey_1:

and same for SE_ReadKey_1_Pub:

As least link is ok. But didn't check more

Best would be to fix prepareimage.py 

Will ask for this fix.

Best regards

Jocelyn

Vinay_Shirol
Associate II

Thanks @Jocelyn RICARD ,

                                    I will try these changes and update here.