Open Mimmo-c opened 2 years ago
@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.
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
Hi @Mimmo-c, Thanks for your feedback! Please help to paste the content of below files after compiling error:
I think you got failure on generating .ready file here. But I need more clues to find the reason.
Thanks!
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
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.
Hi @ActoryOu, I tried again to compile the coide but it crashes and the folders you indicated remain empty. Thank you
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!
Any resolution of this error ? I am also getting same error with STM32CubeIDE Version: 1.9.0 Build: 12015_20220302_0855 (UTC)
@Mubhadiya-eic Can you run through the Getting Started Guide again and check that none of the prerequisites are missing?
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?
@amolchor25 and @Mubhadiya-eic this issue bounced around for a while but has found its way to me. I was able to download the STMCube IDE version 1.9 on my Intel Mac and duplicate your error. Below are my logs...
10:55:48 **** Build of configuration Debug for project b_u585i_iot02a_tfm ****
make -j11 all
make -f ../tfm.mk info spe_bin nspe_build_reqs
PROJECT_NAME: b_u585i_iot02a_tfm
WORKSPACE_PATH: /Users/kstribrn/STM32CubeIDE/workspace_1.9.0
BUILD_PATH: .
TOOLS_PATH: /Users/kstribrn/STM32CubeIDE/workspace_1.9.0/tools
MIDDLEWARE_PATH:
PROJECT_PATH: ..
TFM_BUILD_PATH: ./tfm_build
TFM_SRC_PATH:
MBEDTLS_SRC_PATH:
MCUBOOT_SRC_PATH:
SHELLFLAGS: -c
CFLAGS:
LDFLAGS:
SHELL: /bin/bash
Calling cmake for artifact: tfm_build/.ready due to prereq:
bash: line 1: /Users/kstribrn/STM32CubeIDE/workspace_1.9.0/tools/env_setup.sh: No such file or directory
/bin/bash: line 4: /Users/kstribrn/STM32CubeIDE/workspace_1.9.0/tools/env_setup.sh: No such file or directory
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.
mkdir -p "tfm/"
sh -c "touch ./tfm/.generated"
make[3]: *** No rule to make target 'tfm_build/install/interface/lib/s_veneers.o', needed by '../tfm/interface/libtfm_interface.a'. Stop.
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [../tfm.mk:213: tfm_build/bin/bl2.axf] Error 2
make[1]: *** [../makefile.targets:6: nspe_pre_build] Error 2
make: *** [makefile:64: all] Error 2
"make -j11 all" terminated with exit code 2. Build might be incomplete.
10:55:51 Build Failed. 6 errors, 0 warnings. (took 2s.258ms)
I'll be tinkering around with this today and hope to find a resolution for you.
Well my previous issue was all of my own doing. At least on my machine the python virtual environment needed to be created beforehand as I had a bunch of incorrectly mapped commands. Probably because of older installs. With the setup_env.sh
script successfully ran I was able to build the project.
I do agree with @ActoryOu's assessment. I'll try to dig into that build command and what is going on under the hood in the next day or two.
I am having the same build issues: [ 51%] Built target tfm_app_rot_partition_ps 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 -j4 all" terminated with exit code 2. Build might be incomplete.
lewis@lewis-Lenovo-Z50-70:~/GITHUB/iot-reference-stm32u5$ source tools/env_setup.sh WORKSPACE_PATH env variable was not defined. Defaulting to PWD. TOOLS_PATH: /home/lewis/GITHUB/iot-reference-stm32u5/tools VENV_PATH: /home/lewis/GITHUB/iot-reference-stm32u5/.venv MCUBOOT_SCRIPTS: /home/lewis/GITHUB/iot-reference-stm32u5/Middleware/ARM/mcuboot/scripts
OSTYPE: gnu/linux OSTYPE: gnu/linux Activating vritual environment. SITE_PACKAGES_PATH: /home/lewis/GITHUB/iot-reference-stm32u5/.venv/lib/python3.8/site-packages Requirement already satisfied: pip in ./.venv/lib/python3.8/site-packages (24.1.2) Requirement already satisfied: pyyaml in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 1)) (6.0.1) Requirement already satisfied: botocore in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 2)) (1.25.13) Requirement already satisfied: boto3==1.22.0 in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 3)) (1.22.0) Requirement already satisfied: requests in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 4)) (2.32.3) Requirement already satisfied: pyserial in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 5)) (3.5) Requirement already satisfied: cryptography in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 6)) (42.0.8) Requirement already satisfied: black in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 7)) (24.4.2) Requirement already satisfied: pre-commit in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 8)) (3.5.0) Requirement already satisfied: pyasn1 in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 9)) (0.6.0) Requirement already satisfied: cbor2 in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 10)) (5.6.4) Requirement already satisfied: click in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 11)) (8.1.7) Requirement already satisfied: jinja2 in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 12)) (3.1.4) Requirement already satisfied: imgtool==1.9.0 in ./.venv/lib/python3.8/site-packages (from -r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 13)) (1.9.0) Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in ./.venv/lib/python3.8/site-packages (from boto3==1.22.0->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 3)) (1.0.1) Requirement already satisfied: s3transfer<0.6.0,>=0.5.0 in ./.venv/lib/python3.8/site-packages (from boto3==1.22.0->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 3)) (0.5.2) Requirement already satisfied: intelhex>=2.2.1 in ./.venv/lib/python3.8/site-packages (from imgtool==1.9.0->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 13)) (2.3.0) Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in ./.venv/lib/python3.8/site-packages (from botocore->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 2)) (2.9.0.post0) Requirement already satisfied: urllib3<1.27,>=1.25.4 in ./.venv/lib/python3.8/site-packages (from botocore->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 2)) (1.26.19) Requirement already satisfied: charset-normalizer<4,>=2 in ./.venv/lib/python3.8/site-packages (from requests->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 4)) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.8/site-packages (from requests->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 4)) (3.7) Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.8/site-packages (from requests->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 4)) (2024.7.4) Requirement already satisfied: cffi>=1.12 in ./.venv/lib/python3.8/site-packages (from cryptography->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 6)) (1.16.0) Requirement already satisfied: mypy-extensions>=0.4.3 in ./.venv/lib/python3.8/site-packages (from black->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 7)) (1.0.0) Requirement already satisfied: packaging>=22.0 in ./.venv/lib/python3.8/site-packages (from black->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 7)) (24.1) Requirement already satisfied: pathspec>=0.9.0 in ./.venv/lib/python3.8/site-packages (from black->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 7)) (0.12.1) Requirement already satisfied: platformdirs>=2 in ./.venv/lib/python3.8/site-packages (from black->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 7)) (4.2.2) Requirement already satisfied: tomli>=1.1.0 in ./.venv/lib/python3.8/site-packages (from black->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 7)) (2.0.1) Requirement already satisfied: typing-extensions>=4.0.1 in ./.venv/lib/python3.8/site-packages (from black->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 7)) (4.12.2) Requirement already satisfied: cfgv>=2.0.0 in ./.venv/lib/python3.8/site-packages (from pre-commit->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 8)) (3.4.0) Requirement already satisfied: identify>=1.0.0 in ./.venv/lib/python3.8/site-packages (from pre-commit->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 8)) (2.6.0) Requirement already satisfied: nodeenv>=0.11.1 in ./.venv/lib/python3.8/site-packages (from pre-commit->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 8)) (1.9.1) Requirement already satisfied: virtualenv>=20.10.0 in ./.venv/lib/python3.8/site-packages (from pre-commit->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 8)) (20.26.3) Requirement already satisfied: MarkupSafe>=2.0 in ./.venv/lib/python3.8/site-packages (from jinja2->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 12)) (2.1.5) Requirement already satisfied: pycparser in ./.venv/lib/python3.8/site-packages (from cffi>=1.12->cryptography->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 6)) (2.22) Requirement already satisfied: six>=1.5 in ./.venv/lib/python3.8/site-packages (from python-dateutil<3.0.0,>=2.1->botocore->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 2)) (1.16.0) Requirement already satisfied: distlib<1,>=0.3.7 in ./.venv/lib/python3.8/site-packages (from virtualenv>=20.10.0->pre-commit->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 8)) (0.3.8) Requirement already satisfied: filelock<4,>=3.12.2 in ./.venv/lib/python3.8/site-packages (from virtualenv>=20.10.0->pre-commit->-r /home/lewis/GITHUB/iot-reference-stm32u5/tools/requirements.txt (line 8)) (3.15.4)
Everything appears to setup correctly.
Hi, When I build b_u585i_iot02a_tfm with STM32CubeIDE 1.9.0 I got the following errors:
I cannot find where is the problem. Thanks