X-CUBE-SBSFU V2.8.0 compatible with STM32CubeIDE V2.2.0?
Hello,
its the first time for me trying to use the X-CUBE-SBSFU. So I downloaded the latest version (V2.8.0) and updated to the STM32CubeIDE V2.2.0 to be up to date.
But the SECoreBin Project is not compiling. I get the error message:
C:/Program Files/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Application/Startup/se_key.o(SE_ReadKey_1): Unknown destination type (ARM/Thumb) in ./Application/User/se_crypto_bootloader.o
./Application/User/se_crypto_bootloader.o: in function `SE_CRYPTO_AES_ReadKey':
C:/Users/……./Application/ThirdParty/ST/STM32CubeExpansion_SBSFU_V2.8.0/Projects/NUCLEO-H753ZI/Applications/1_Image/1_Image_SECoreBin/Src/se_crypto_bootloader.c:222:(.text.SE_CRYPTO_Decrypt_Init+0x16): dangerous relocation: unsupported relocation
C:/Program Files/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Application/Startup/se_key.o(SE_ReadKey_1_Pub): Unknown destination type (ARM/Thumb) in ./Application/User/se_crypto_bootloader.o
./Application/User/se_crypto_bootloader.o: in function `SE_CRYPTO_ReadKey_Pub':
C:/Users/….../Application/ThirdParty/ST/STM32CubeExpansion_SBSFU_V2.8.0/Projects/NUCLEO-H753ZI/Applications/1_Image/1_Image_SECoreBin/Src/se_crypto_bootloader.c:259:(.text.SE_CRYPTO_Authenticate_Metadata+0x22): dangerous relocation: unsupported relocation
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:69: SECoreBin.elf] Error 1
make: *** [makefile:62: all] Error 2
The version V2.8.0 of X-CUBE-SBSFU was released on 05-September-2025 to support STM32CubeIDE V1.19.0
I asked Claude and got this answer:
The assembler does not recognize that this is Thumb code, so the symbol does not have the Thumb bit set. Older linkers tolerated this, but the very new arm-none-eabi-ld (14.3.1, included with STM32CubeIDE 2.2.0) now strictly rejects the BL call from se_crypto_bootloader.c → resulting in the exact errors “Unknown destination type (ARM/Thumb)” and “dangerous relocation: unsupported relocation.”
So my Question:
- Could it be, that the X-CUBE-SBSFU is not compatible with the latest STM32CubeIDE V2.2.0? Or may I do something wrong?
- If it is incompatible: Is there any plan to update the X-CUBE-SBSFU code? Do you know when a compatible version will be available?
