Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues with STM32CubeIDE #69

Open
Mimmo-c opened this issue Jul 10, 2022 · 10 comments
Open

Build issues with STM32CubeIDE #69

Mimmo-c opened this issue Jul 10, 2022 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@Mimmo-c
Copy link

Mimmo-c commented Jul 10, 2022

Hi,
When I build b_u585i_iot02a_tfm with STM32CubeIDE 1.9.0 I got the following errors:

Calling TFM build for artifact: tfm_build/bin/bl2.axf due to prereq: tfm_build/.ready
make[3]: *** No rule to make target 'all'.  Stop.
make[3]: *** No rule to make target 'tfm_build/install/interface/lib/s_veneers.o', needed by '../tfm/interface/libtfm_interface.a'.  Stop.
make[2]: *** [../tfm.mk:213: tfm_build/bin/bl2.axf] Error 2
make[1]: *** [../makefile.targets:6: nspe_pre_build] Error 2
make: *** [makefile:100: all] Error 2
"make -j4 all" terminated with exit code 2. Build might be incomplete.

I cannot find where is the problem.
Thanks

@Mimmo-c Mimmo-c added the bug Something isn't working label Jul 10, 2022
@paulbartell
Copy link
Member

@Mimmo-c : Apologies for the delayed response.

The project is built with STM32CubeIDE 1.9 on windows as part of our Github Actions setup. You can review the build.yml file for some concise setup instructions.

The error you listed would indicate that cmake failed to setup your TF-M build directory. Usually this is due to a missing prerequisite of some kind.

Can you run through the instructions in the Getting Started Guide and make sure nothing was missed?

If the problem persists, please run a clean build and include more of the logs in a response so I can look into it further.

@paulbartell paulbartell self-assigned this Jul 27, 2022
@Mimmo-c
Copy link
Author

Mimmo-c commented Aug 15, 2022

Hi @paulbartell,
Sorry for the delay in responding. I followed all the Getting Started Guide steps but still have errors in the compilation; now I'm using STM32CubeIDE 1.10.1.
I report below the console log.

make -j4 all make -f ../tfm.mk info spe_bin nspe_build_reqs PROJECT_NAME: b_u585i_iot02a_tfm WORKSPACE_PATH: C:/lab-iot-reference-stm32u5 BUILD_PATH: . TOOLS_PATH: C:/lab-iot-reference-stm32u5/tools MIDDLEWARE_PATH: C:/lab-iot-reference-stm32u5/Middleware PROJECT_PATH: .. TFM_BUILD_PATH: ./tfm_build TFM_SRC_PATH: C:/lab-iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m MBEDTLS_SRC_PATH: C:/lab-iot-reference-stm32u5/Middleware/ARM/mbedtls MCUBOOT_SRC_PATH: C:/lab-iot-reference-stm32u5/Middleware/ARM/mcuboot SHELLFLAGS: -c CFLAGS: LDFLAGS: SHELL: C:/ST/STM32CubeIDE_1.10.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_2.0.100.202202231230/tools/bin/sh.exe Applying mbedtls patch: 0003-Disable-export-MbedTLSTargets.patch Applying mbedtls patch: 0002-Enable-crypto-code-sharing-between-independent-binar.patch Applying mbedtls patch: 0001-BUILD-Update-IAR-support-in-CMakeLists.txt.patch Calling cmake for artifact: tfm_build/.ready due to prereq: C:/lab-iot-reference-stm32u5/Middleware/ARM/mbedtls/0003-Disable-export-MbedTLSTargets.patched C:/lab-iot-reference-stm32u5/Middleware/ARM/mbedtls/0002-Enable-crypto-code-sharing-between-independent-binar.patched C:/lab-iot-reference-stm32u5/Middleware/ARM/mbedtls/0001-BUILD-Update-IAR-support-in-CMakeLists.txt.patched OSTYPE: ms/windows OSTYPE: ms/windows c:/st/stm32cubeide_1.10.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_2.0.100.202202231230/tools/bin/sh: cmake: not found Calling TFM build for artifact: tfm_build/bin/bl2.axf due to prereq: tfm_build/.ready make[3]: *** No rule to make target 'all'. Stop. make[3]: *** No rule to make target 'tfm_build/install/interface/lib/s_veneers.o', needed by '../tfm/interface/libtfm_interface.a'. Stop. make[2]: *** [../tfm.mk:213: tfm_build/bin/bl2.axf] Error 2 make[1]: *** [../makefile.targets:6: nspe_pre_build] Error 2 make: *** [makefile:100: all] Error 2 "make -j4 all" terminated with exit code 2. Build might be incomplete.

Thank you

@ActoryOu
Copy link
Member

ActoryOu commented Oct 7, 2022

Hi @Mimmo-c,
Thanks for your feedback!
Please help to paste the content of below files after compiling error:

  • lab-iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\CMakeFiles\CMakeError.log
  • lab-iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\CMakeFiles\CMakeOutput.log

I think you got failure on generating .ready file here. But I need more clues to find the reason.

Thanks!

@Mimmo-c
Copy link
Author

Mimmo-c commented Oct 16, 2022

Hi @ActoryOu,
No file is found in the folder you indicated. I currently have STM32CubeIDE version 1.10.1 installed, is it okay if I compile the code with this version?
Thanks

@ActoryOu
Copy link
Member

Hi @ActoryOu, No file is found in the folder you indicated. I currently have STM32CubeIDE version 1.10.1 installed, is it okay if I compile the code with this version? Thanks

Yes, it should be able to compiled with STM32CubeIDE version 1.10.1. Actually, I'm using this version to compile successfully.

@Mimmo-c
Copy link
Author

Mimmo-c commented Oct 23, 2022

Hi @ActoryOu,
I tried again to compile the coide but it crashes and the folders you indicated remain empty.
Thank you

@ActoryOu
Copy link
Member

ActoryOu commented Oct 26, 2022

Hi @Mimmo-c,
Could you help to set DEBUG=1 at the begining of tools/env_setup.sh and run source tools/env_setup.sh on your shell?
I suspect that there is something wrong on python environment.

Here is my output as reference:

$ source tools/env_setup.sh
TOOLS_PATH: /c/git/ActoryForked/iot-reference-stm32u5/tools
VENV_PATH: /c/git/ActoryForked/iot-reference-stm32u5/.venv
MCUBOOT_SCRIPTS: /c/git/ActoryForked/iot-reference-stm32u5/Middleware/ARM/mcuboot/scripts

OSTYPE: msys
OSTYPE: msys
Activating vritual environment.
SITE_PACKAGES_PATH: /c/git/ActoryForked/iot-reference-stm32u5/.venv/Lib/site-packages
Requirement already satisfied: pip in c:\git\actoryforked\iot-reference-stm32u5.venv\lib\site-packages (22.3)
Requirement already satisfied: pyyaml in c:\git\actoryforked\iot-reference-stm32u5.venv\lib\site-packages (from -r C:/git/ActoryForked/iot-reference-stm32u5/tools/requirements.txt (line 1)) (6.0)
...

Thanks!

@Mubhadiya-eic
Copy link

Any resolution of this error ? I am also getting same error with STM32CubeIDE Version: 1.9.0
Build: 12015_20220302_0855 (UTC)

@paulbartell
Copy link
Member

@Mubhadiya-eic Can you run through the Getting Started Guide again and check that none of the prerequisites are missing?

@amolchor25
Copy link

Hello team !!

I have got the same issue, I have followed the Getting_Started_Guide.

below is the log

08:36:47 **** Build of configuration Debug for project b_u585i_iot02a_tfm ****
make -j8 all 
make -f ../tfm.mk info spe_bin nspe_build_reqs
PROJECT_NAME:     b_u585i_iot02a_tfm
WORKSPACE_PATH:   C:/Users/111439/iot-reference-stm32u5
BUILD_PATH:       .
TOOLS_PATH:       C:/Users/111439/iot-reference-stm32u5/tools
MIDDLEWARE_PATH:  C:/Users/111439/iot-reference-stm32u5/Middleware
PROJECT_PATH:     ..
TFM_BUILD_PATH:   ./tfm_build
TFM_SRC_PATH:     C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m
MBEDTLS_SRC_PATH: C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/mbedtls
MCUBOOT_SRC_PATH: C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/mcuboot
SHELLFLAGS:       -c
CFLAGS:           
LDFLAGS:          
SHELL:            C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_2.0.200.202301161003/tools/bin/sh.exe
Applying mbedtls patch: 0003-Disable-export-MbedTLSTargets.patch
Applying mbedtls patch: 0002-Enable-crypto-code-sharing-between-independent-binar.patch
Applying mbedtls patch: 0001-BUILD-Update-IAR-support-in-CMakeLists.txt.patch
Calling cmake for artifact: tfm_build/.ready due to prereq: C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/mbedtls/0003-Disable-export-MbedTLSTargets.patched C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/mbedtls/0002-Enable-crypto-code-sharing-between-independent-binar.patched C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/mbedtls/0001-BUILD-Update-IAR-support-in-CMakeLists.txt.patched
OSTYPE: ms/windows
OSTYPE: ms/windows
-- The C compiler identification is GNU 10.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003/tools/bin/arm-none-eabi-gcc.exe
-- Found Python3: C:/Users/111439/iot-reference-stm32u5/.venv/Scripts/python.exe (found version "3.12.2") found components: Interpreter
Start to generate partition files:
Generating Header: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/protected_storage/psa_manifest/tfm_protected_storage.h
Generating Intermedia: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/protected_storage/auto_generated/intermedia_tfm_protected_storage.c
Generating Loadinfo: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/protected_storage/auto_generated/load_info_tfm_protected_storage.c
Generating Header: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/internal_trusted_storage/psa_manifest/tfm_internal_trusted_storage.h
Generating Intermedia: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/intermedia_tfm_internal_trusted_storage.c
Generating Loadinfo: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.c
Generating Header: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/crypto/psa_manifest/tfm_crypto.h
Generating Intermedia: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/crypto/auto_generated/intermedia_tfm_crypto.c
Generating Loadinfo: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.c
Generating Header: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/platform/psa_manifest/tfm_platform.h
Generating Intermedia: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platform.c
Generating Loadinfo: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.c
Generating Header: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/initial_attestation/psa_manifest/tfm_initial_attestation.h
Generating Intermedia: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/initial_attestation/auto_generated/intermedia_tfm_initial_attestation.c
Generating Loadinfo: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/initial_attestation/auto_generated/load_info_tfm_initial_attestation.c
Generating Header: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/firmware_update/psa_manifest/tfm_firmware_update.h
Generating Intermedia: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/firmware_update/auto_generated/intermedia_tfm_firmware_update.c
Generating Loadinfo: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build/generated/secure_fw/partitions/firmware_update/auto_generated/load_info_tfm_firmware_update.c
Per-partition files done:
Start to generate file from the generated list:
Generating C:\Users\111439\iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\generated\secure_fw/spm/cmsis_func/tfm_spm_db_func.inc
Generating C:\Users\111439\iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\generated\secure_fw/spm/cmsis_func/tfm_veneers.c
Generating C:\Users\111439\iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\generated\interface/include/tfm_veneers.h
Generating C:\Users\111439\iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\generated\secure_fw/spm/cmsis_func/tfm_secure_irq_handlers.inc
Generating C:\Users\111439\iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\generated\interface/include/psa_manifest/sid.h
Generating C:\Users\111439\iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\generated\interface/include/psa_manifest/pid.h
Generating C:\Users\111439\iot-reference-stm32u5\Projects\b_u585i_iot02a_tfm\Debug\tfm_build\generated\interface/include/config_impl.h
Generation of files done
-- ---------- Display crypto configuration - start --------------
-- CRYPTO_RNG_MODULE_DISABLED is set to FALSE
-- CRYPTO_KEY_MODULE_DISABLED is set to FALSE
-- CRYPTO_AEAD_MODULE_DISABLED is set to FALSE
-- CRYPTO_MAC_MODULE_DISABLED is set to FALSE
-- CRYPTO_CIPHER_MODULE_DISABLED is set to FALSE
-- CRYPTO_HASH_MODULE_DISABLED is set to FALSE
-- CRYPTO_KEY_DERIVATION_MODULE_DISABLED is set to FALSE
-- CRYPTO_ASYM_SIGN_MODULE_DISABLED is set to FALSE
-- CRYPTO_ASYM_ENCRYPT_MODULE_DISABLED is set to FALSE
-- CRYPTO_ENGINE_BUF_SIZE is set to 0x2080
-- CRYPTO_CONC_OPER_NUM is set to 8
-- CRYPTO_IOVEC_BUFFER_SIZE is set to 5120
-- ---------- Display crypto configuration - stop ---------------
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Failed
-- Found Perl: C:/MinGW/msys/1.0/bin/perl.exe (found version "5.8.8")
-- ----------- Display storage configuration - start ------------
-- PS_CREATE_FLASH_LAYOUT is set to ON
-- PS_ENCRYPTION is set to ON
-- PS_RAM_FS is set to OFF
-- PS_ROLLBACK_PROTECTION is set to ON
-- PS_VALIDATE_METADATA_FROM_FLASH is set to ON
-- PS_MAX_ASSET_SIZE is set to 2048
-- PS_NUM_ASSETS is set to 10
-- PS_CRYPTO_AEAD_ALG is set to PSA_ALG_GCM
-- ITS_CREATE_FLASH_LAYOUT is set to ON
-- ITS_RAM_FS is set to OFF
-- ITS_VALIDATE_METADATA_FROM_FLASH is set to ON
-- ITS_MAX_ASSET_SIZE is set to 512
-- ITS_NUM_ASSETS is set to 10
-- ITS_BUF_SIZE is not set (defaults to ITS_MAX_ASSET_SIZE)
-- ----------- Display storage configuration - stop -------------
-- Configuring done (10.0s)
-- Generating done (2.7s)
-- Build files have been written to: C:/Users/111439/iot-reference-stm32u5/Projects/b_u585i_iot02a_tfm/Debug/tfm_build
Calling TFM build for artifact: tfm_build/bin/bl2.axf due to prereq: tfm_build/.ready
[  0%] Built target tfm_generated_files
[  0%] Building C object lib/ext/qcbor/CMakeFiles/tfm_qcbor_s.dir/src/ieee754.o
[  0%] Building C object lib/ext/qcbor/CMakeFiles/tfm_qcbor_s.dir/src/qcbor_encode.o
[  0%] Building C object lib/ext/qcbor/CMakeFiles/tfm_qcbor_s.dir/src/qcbor_decode.o
[  0%] Building C object lib/ext/qcbor/CMakeFiles/tfm_qcbor_s.dir/src/UsefulBuf.o
[  0%] Building C object platform/target/CMakeFiles/tfm_s_scatter.dir/__/common/stm32u5xx/Device/Source/gcc/tfm_common_s.ld
[  0%] Building C object platform/target/CMakeFiles/bl2_scatter.dir/__/common/hal/template/gcc/bl2.ld
[  0%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/Device/Source/Templates/system_stm32u5xx.o
[  0%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/bl2/boot_hal.o
[  1%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/hal/Native_Driver/mpu_armv8m_drv.o
[  1%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/bl2/low_level_security.o
[  1%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/bl2/low_level_device.o
[  1%] Built target tfm_s_scatter
[  1%] Built target bl2_scatter
[  1%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/hal/CMSIS_Driver/low_level_com.o
[  1%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/hal/CMSIS_Driver/low_level_flash.o
[  1%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal.o
[  1%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_flash_ex.o
[  1%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_flash.o
[  2%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_pwr_ex.o
[  2%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_dma.o
[  2%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rcc.o
[  2%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_dma_ex.o
[  2%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_pwr.o
[  2%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rcc_ex.o
[  2%] Linking C static library libtfm_qcbor_s.a
[  2%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_cortex.o
[  2%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_gpio.o
[  3%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_uart.o
[  3%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_uart_ex.o
[  3%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_gtzc.o
[  3%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_hash.o
[  3%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_hash_ex.o
[  3%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_pka.o
[  3%] Built target tfm_qcbor_s
[  3%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rng.o
[  4%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rng_ex.o
[  4%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rtc.o
[  4%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rtc_ex.o
[  4%] Building C object lib/ext/t_cose/CMakeFiles/tfm_t_cose_s.dir/src/t_cose_sign1_sign.o
[  4%] Building C object lib/ext/t_cose/CMakeFiles/tfm_t_cose_s.dir/src/t_cose_sign1_verify.o
[  4%] Building C object lib/ext/t_cose/CMakeFiles/tfm_t_cose_s.dir/src/t_cose_util.o
[  4%] Building C object lib/ext/t_cose/CMakeFiles/tfm_t_cose_s.dir/src/t_cose_parameters.o
[  4%] Building C object lib/ext/t_cose/CMakeFiles/tfm_t_cose_s.dir/crypto_adapters/t_cose_psa_crypto.o
[  4%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_icache.o
[  4%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/hal/Native_Driver/low_level_rng.o
[  4%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/hal/provision/otp_provision.o
[  4%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/hal/Native_Driver/nv_counters.o
[  4%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/hal/provision/nvm_init.o
[  5%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/target/stm/common/hal/provision/nvmcnt_init.o
[  6%] Linking C static library libtfm_t_cose_s.a
[  6%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/common/boot_hal.o
[  6%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/common/uart_stdout.o
[  6%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/common/template/tfm_rotpk.o
[  6%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/common/template/flash_otp_nv_counters_backend.o
[  6%] Building C object platform/CMakeFiles/platform_bl2.dir/ext/common/template/otp_flash.o
C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/common/template/flash_otp_nv_counters_backend.c:22:28: warning: 'create_or_restore_layout' declared 'static' but never defined [-Wunused-function]
   22 | static enum tfm_plat_err_t create_or_restore_layout(void);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/common/template/flash_otp_nv_counters_backend.c:114:16: warning: 'block' defined but not used [-Wunused-variable]
  114 | static uint8_t block[OTP_NV_COUNTERS_WRITE_BLOCK_SIZE];
      |                ^~~~~
[  6%] Built target tfm_t_cose_s
[  6%] Linking C static library libplatform_bl2.a
[  7%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/rsa_alt.o
[  7%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/gcm_alt.o
[  7%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/aes_alt.o
[  7%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/ecdsa_alt.o
[  7%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/ccm_alt.o
[  7%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/ecp_curves_alt.o
[  7%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/ecp_alt.o
[  7%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/sha1_alt.o
[  8%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/sha256_alt.o
[  8%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/stm.o
[  8%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/accelerator/huk.o
[  8%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_hash.o
[  8%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_hash_ex.o
[  8%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_cryp.o
[  8%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_pka.o
[  9%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_cryp_ex.o
[  9%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/Native_Driver/low_level_rng.o
[  9%] Building C object platform/ext/accelerator/CMakeFiles/crypto_service_crypto_hw.dir/__/target/stm/common/hal/Native_Driver/nv_counters.o
[  9%] Built target platform_bl2
[  9%] Linking C static library libcrypto_service_crypto_hw.a
[  9%] Building C object bl2/ext/mcuboot/CMakeFiles/signing_layout_ns.dir/signing_layout_ns.o
[  9%] Building C object platform/ext/accelerator/CMakeFiles/bl2_crypto_hw.dir/__/target/stm/common/hal/accelerator/ecdsa_alt.o
[  9%] Building C object platform/ext/accelerator/CMakeFiles/bl2_crypto_hw.dir/__/target/stm/common/hal/accelerator/rsa_alt.o
[ 10%] Building C object platform/ext/accelerator/CMakeFiles/bl2_crypto_hw.dir/__/target/stm/common/hal/accelerator/ecp_alt.o
[ 10%] Building C object bl2/ext/mcuboot/CMakeFiles/signing_layout_s.dir/signing_layout_s.o
[ 10%] Building C object platform/ext/accelerator/CMakeFiles/bl2_crypto_hw.dir/__/target/stm/common/hal/accelerator/ecp_curves_alt.o
[ 10%] Building C object platform/ext/accelerator/CMakeFiles/bl2_crypto_hw.dir/__/target/stm/common/hal/accelerator/sha1_alt.o
[ 10%] Built target signing_layout_ns
[ 10%] Built target signing_layout_s
[ 10%] Building C object platform/ext/accelerator/CMakeFiles/bl2_crypto_hw.dir/__/target/stm/common/hal/accelerator/sha256_alt.o
[ 10%] Building C object platform/ext/accelerator/CMakeFiles/bl2_crypto_hw.dir/__/target/stm/common/hal/accelerator/stm.o
[ 10%] Built target crypto_service_crypto_hw
[ 10%] Linking C static library libbl2_crypto_hw.a
[ 10%] Built target bl2_crypto_hw
[ 10%] Generating version_features.c
[ 10%] Generating error.c
[ 10%] Generating ssl_debug_helpers_generated.h, ssl_debug_helpers_generated.c
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/hal/Native_Driver/mpu_armv8m_drv.o
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/secure/system_stm32u5xx.o
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal.o
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/secure/tfm_hal_isolation.o
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/secure/spm_hal.o
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/secure/tfm_hal_platform.o
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/secure/target_cfg.o
C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/target/stm/common/stm32u5xx/secure/tfm_hal_isolation.c: In function 'mpu_init':
C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/target/stm/common/stm32u5xx/secure/tfm_hal_isolation.c:231:17: warning: implicit declaration of function 'Error_Handler' [-Wimplicit-function-declaration]
  231 |                 Error_Handler();
      |                 ^~~~~~~~~~~~~
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/secure/low_level_device.o
[ 11%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/hal/CMSIS_Driver/low_level_flash.o
[ 12%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/hal/CMSIS_Driver/low_level_com.o
[ 12%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_flash.o
make[5]: *** [bl2/mbedcrypto/library/CMakeFiles/bl2_mbedcrypto.dir/build.make:139: bl2/mbedcrypto/library/error.c] Error -1073741819
make[4]: *** [CMakeFiles/Makefile2:1684: bl2/mbedcrypto/library/CMakeFiles/bl2_mbedcrypto.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
[ 12%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_flash_ex.o
[ 12%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_dma.o
[ 12%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_dma_ex.o
[ 12%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_pwr.o
[ 12%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_pwr_ex.o
[ 13%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_gpio.o
[ 13%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_uart.o
[ 13%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_uart_ex.o
[ 13%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rcc.o
[ 13%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rcc_ex.o
[ 13%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_gtzc.o
[ 13%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_hal_isolation_mpu_v8m.o
[ 13%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_hal_nvic.o
[ 15%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_cortex.o
[ 15%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/secure/tfm_platform_system.o
[ 15%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rng.o
[ 15%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_rng_ex.o
[ 15%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_hash.o
[ 15%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_pka.o
[ 15%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_hash_ex.o
[ 15%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_cryp.o
[ 16%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/stm32u5xx/hal/Src/stm32u5xx_hal_cryp_ex.o
[ 16%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/hal/Native_Driver/low_level_rng.o
[ 16%] Building C object platform/CMakeFiles/platform_s.dir/ext/target/stm/common/hal/Native_Driver/nv_counters.o
[ 16%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_hal_ps.o
[ 16%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_hal_its.o
[ 16%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_platform.o
[ 16%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/uart_stdout.o
[ 17%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_hal_spm_logdev_peripheral.o
[ 17%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_hal_memory_symbols.o
[ 17%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/template/attest_hal.o
[ 17%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/template/crypto_keys.o
[ 17%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/template/tfm_rotpk.o
[ 17%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/template/crypto_nv_seed.o
[ 17%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/template/flash_otp_nv_counters_backend.o
[ 17%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/template/otp_flash.o
[ 18%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/provisioning.o
[ 18%] Building C object platform/CMakeFiles/platform_s.dir/__/secure_fw/partitions/firmware_update/tfm_fwu_secure_api.o
C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/common/template/flash_otp_nv_counters_backend.c:22:28: warning: 'create_or_restore_layout' declared 'static' but never defined [-Wunused-function]
   22 | static enum tfm_plat_err_t create_or_restore_layout(void);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/111439/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/common/template/flash_otp_nv_counters_backend.c:114:16: warning: 'block' defined but not used [-Wunused-variable]
  114 | static uint8_t block[OTP_NV_COUNTERS_WRITE_BLOCK_SIZE];
      |                ^~~~~
[ 18%] Building C object platform/CMakeFiles/platform_s.dir/__/secure_fw/spm/cmsis_psa/psa_interface_svc.o
[ 18%] Building C object platform/CMakeFiles/platform_s.dir/__/secure_fw/spm/cmsis_psa/psa_interface_thread.o
[ 18%] Building C object platform/CMakeFiles/platform_s.dir/__/secure_fw/spm/cmsis_psa/psa_interface_sfn.o
[ 18%] Building C object platform/CMakeFiles/platform_s.dir/__/interface/src/tfm_psa_call_pack.o
[ 18%] Building C object platform/CMakeFiles/platform_s.dir/__/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.o
[ 18%] Building C object platform/CMakeFiles/platform_s.dir/__/generated/secure_fw/partitions/initial_attestation/auto_generated/load_info_tfm_initial_attestation.o
[ 19%] Building C object platform/CMakeFiles/platform_s.dir/__/generated/secure_fw/partitions/protected_storage/auto_generated/load_info_tfm_protected_storage.o
[ 19%] Building C object platform/CMakeFiles/platform_s.dir/__/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.o
[ 19%] Building C object platform/CMakeFiles/platform_s.dir/__/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.o
[ 19%] Building C object platform/CMakeFiles/platform_s.dir/__/generated/secure_fw/partitions/firmware_update/auto_generated/load_info_tfm_firmware_update.o
[ 19%] Building C object platform/CMakeFiles/platform_s.dir/__/secure_fw/partitions/ns_agent/load_info_ns_agent.o
[ 19%] Building C object platform/CMakeFiles/platform_s.dir/__/secure_fw/partitions/idle_partition/load_info_idle_sp.o
[ 19%] Building C object platform/CMakeFiles/platform_s.dir/__/secure_fw/partitions/lib/sprt/tfm_sp_log_raw.o
[ 20%] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_hal_sp_logdev_periph.o
[ 20%] Linking C static library libplatform_s.a
[ 20%] Built target platform_s
make[3]: *** [Makefile:136: all] Error 2
make[3]: *** No rule to make target 'tfm_build/install/interface/lib/s_veneers.o', needed by '../tfm/interface/libtfm_interface.a'.  Stop.
make[2]: *** [../tfm.mk:213: tfm_build/bin/bl2.axf] Error 2
make[1]: *** [../makefile.targets:6: nspe_pre_build] Error 2
make: *** [makefile:107: all] Error 2
"make -j8 all" terminated with exit code 2. Build might be incomplete.

08:37:54 Build Failed. 8 errors, 5 warnings. (took 1m:7s.376ms)

Does any one have an idea about the build failed in windows platform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants