2023-11-12 02:06 AM
I have the latest X-CUBE-SBSFU package and STM32CubeIDE 1.13.2. Building the SECoreBin project has failed with 4 errors and 4 warnings. It looks like several others experienced the same issue with different example projects.
Here's the output of the console:
10:45:27 **** Incremental Build of configuration Debug for project STM32F413H_DISCOVERY_2_Images_SECoreBin ****
make all
"../prebuild.sh" "../"
prepareimage with windows executable
C:/SBSFU/Middlewares/ST/STM32_Secure_Engine/Utilities/KeysAndImages/win/prepareimage/prepareimage.exe conf ..//../Inc/se_crypto_config.h
SECBOOT_ECCDSA_WITH_AES128_CBC_SHA256 selected
C:/SBSFU/Middlewares/ST/STM32_Secure_Engine/Utilities/KeysAndImages/win/prepareimage/prepareimage.exe trans -a GNU -k ..//../Binary/OEM_KEY_COMPANY1_key_AES_CBC.bin -f SE_ReadKey_1 -v V7M
C:/SBSFU/Middlewares/ST/STM32_Secure_Engine/Utilities/KeysAndImages/win/prepareimage/prepareimage.exe trans -a GNU -k ..//../Binary/ECCKEY1.txt -f SE_ReadKey_1_Pub -v V7M
recopy postbuild.sh script with SECBOOT_ECCDSA_WITH_AES128_CBC_SHA256.sh script
arm-none-eabi-gcc -mcpu=cortex-m4 -g3 -c -x assembler-with-cpp -MMD -MP -MF"Application/Startup/se_key.d" -MT"Application/Startup/se_key.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "Application/Startup/se_key.o" "../Application/Startup/se_key.s"
arm-none-eabi-gcc -o "SECoreBin.elf" @"objects.list" -l:libSTM32CryptographicV3.0.0_CM4_GCC.a -mcpu=cortex-m4 -T"../STM32F413ZHTx_FLASH.ld" --specs=nosys.specs -Wl,-Map="SECoreBin.map" -Wl,--gc-sections -static -L../../../../../../../Middlewares/ST/STM32_Cryptographic/Fw_Crypto/STM32F4/Lib -Xlinker -L ../../../Linker_Common/STM32CubeIDE --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/softfp\libc_nano.a(libc_a-closer.o): in function `_close_r':
(.text._close_r+0xc): warning: _close is not implemented and will always fail
C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/softfp\libc_nano.a(libc_a-lseekr.o): in function `_lseek_r':
(.text._lseek_r+0x10): warning: _lseek is not implemented and will always fail
C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/softfp\libc_nano.a(libc_a-readr.o): in function `_read_r':
(.text._read_r+0x10): warning: _read is not implemented and will always fail
C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/softfp\libc_nano.a(libc_a-writer.o): in function `_write_r':
(.text._write_r+0x10): warning: _write is not implemented and will always fail
Finished building target: SECoreBin.elf
arm-none-eabi-size SECoreBin.elf
text data bss dec hex filename
18440 24 2608 21072 5250 SECoreBin.elf
Finished building: default.size.stdout
arm-none-eabi-objdump -h -S SECoreBin.elf > "SECoreBin.list"
Finished building: SECoreBin.list
arm-none-eabi-objcopy -O binary SECoreBin.elf "SECoreBin.bin"
Finished building: SECoreBin.bin
10:45:42 Build Failed. 4 errors, 4 warnings.
Is there any solution or workaround to this problem? I do not want to roll-back to an earlier version. I didn't try to compile the project in Linux box, but will give it a shot pretty soon and see if that makes any difference.
Zaher
Solved! Go to Solution.
2023-11-13 12:29 AM - edited 2023-11-13 12:30 AM
Hello @Zaher
First, sorry for the inconvenience that the faced issue created for you.
As a temporary workaround, you can keep using the 1.13.2 version however downgrade the toolchain version to the GCC10.
For more details, take a look at this post.
The issue should be fixed with the next release in the near future.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-11-12 02:08 AM
By the way, MDK-ARM project compiles just fine!
2023-11-13 12:29 AM - edited 2023-11-13 12:30 AM
Hello @Zaher
First, sorry for the inconvenience that the faced issue created for you.
As a temporary workaround, you can keep using the 1.13.2 version however downgrade the toolchain version to the GCC10.
For more details, take a look at this post.
The issue should be fixed with the next release in the near future.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.