Skip to main content
Associate
May 5, 2025
Question

Build error for https://github.com/FreeRTOS/iot-reference-stm32u5/tree/main/Projects/b_u585i_iot02a_tfm

  • May 5, 2025
  • 1 reply
  • 447 views

Respected ,

Hi

we stm585 discovery boared and we are clone https://github.com/FreeRTOS/iot-reference-stm32u5/blob/main/

In which for tfm code link : https://github.com/FreeRTOS/iot-reference-stm32u5/tree/main/Projects/b_u585i_iot02a_tfm

We facing code building issue . We attached log of building error .

Please provide solution as early as possible.

Also we setup enviroment as per Getting_Started_Guide.md

but we are facing build issue for " b_u585i_iot02a_tfm ". Get attached log file

Stm32Ide version 1.17.o

Toolchain 1.13

Also we share log fi

Would you share any dependency for building code.

 

Error

CMake Error in C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/mbedtls/library/CMakeLists.txt:
Target "crypto_service_mbedcrypto" INTERFACE_INCLUDE_DIRECTORIES property
contains path:

"C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/secure_fw/partitions/crypto"

which is prefixed in the source directory.


CMake Error in C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/mbedtls/library/CMakeLists.txt:
Target "crypto_service_mbedcrypto" INTERFACE_INCLUDE_DIRECTORIES property
contains path:

"C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/accelerator/stm/../../../ext/target/stm/b_u585i_iot02a/accelerator/"

which is prefixed in the source directory.


CMake Error in C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/mbedtls/library/CMakeLists.txt:
Target "crypto_service_mbedcrypto" INTERFACE_INCLUDE_DIRECTORIES property
contains path:

"C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/accelerator/stm/../../../ext/target/stm/common/hal/accelerator/"

which is prefixed in the source directory.


CMake Error in C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/mbedtls/library/CMakeLists.txt:
Target "crypto_service_mbedcrypto" INTERFACE_INCLUDE_DIRECTORIES property
contains path:

"C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/accelerator/stm/../../../ext/target/stm/b_u585i_iot02a/include/"

which is prefixed in the source directory.


CMake Error in C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/mbedtls/library/CMakeLists.txt:
Target "crypto_service_mbedcrypto" INTERFACE_INCLUDE_DIRECTORIES property
contains path:

"C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/accelerator/stm/../../../ext/target/stm/common/stm32u5xx/hal/Inc/"

which is prefixed in the source directory.


CMake Error in C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/mbedtls/library/CMakeLists.txt:
Target "crypto_service_mbedcrypto" INTERFACE_INCLUDE_DIRECTORIES property
contains path:

"C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/accelerator/stm/../../../ext/target/stm/common/stm32u5xx/Device/Include/"

which is prefixed in the source directory.


CMake Error in C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/mbedtls/library/CMakeLists.txt:
Target "crypto_service_mbedcrypto" INTERFACE_INCLUDE_DIRECTORIES property
contains path:

"C:/Iot_base/iot-reference-stm32u5/Middleware/ARM/trusted-firmware-m/platform/ext/accelerator/stm/../../../ext/cmsis"

1 reply

Technical Moderator
May 5, 2025

Hello @vaibhavdawalkar 

If you want to use FreeRTOS with STM32U5 please check the x-cube-freertos repository. 


@vaibhavdawalkar wrote:

Respected ,

Hi

we stm585 discovery boared and we are clone https://github.com/FreeRTOS/iot-reference-stm32u5/blob/main/

In which for tfm code link : https://github.com/FreeRTOS/iot-reference-stm32u5/tree/main/Projects/b_u585i_iot02a_tfm



The project you provided is not an ST repository. 

"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.Saket_Om"
Associate
May 5, 2025

Thanks for reply.

So from where i get information above code as they use st code reference 1.1 version

Which forum i get infromation 

Technical Moderator
May 5, 2025

Hello @vaibhavdawalkar 

You can submit an issue on the FreeRTOS repository.

"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.Saket_Om"