cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L496G-Discovery_Azure Compilation Error

SL61
Associate II

Hi everyone,

I am using STM32L496G-Discovery_Azure example in X-Cube_Azure IoT Kit and encountered the problem below.

When building hsm_client_data.c, gcc couldn't find includes.args. I am using System Workbench IDE to build the project. Just import the project without any modification.

Building file: C:/Users/parad/Documents/stm32_workspace_ac6/STM32CubeExpansion_Cloud_AZURE_V1.2.1/Middlewares/Third_Party/azure-iot-sdk-c/provisioning_client/adapters/hsm_client_data.c
Invoking: MCU GCC Compiler
C:\Users\parad\Documents\stm32_workspace_ac6\STM32CubeExpansion_Cloud_AZURE_V1.2.1\Projects\32L496GDISCOVERY\Applications\Cloud\Azure\SW4STM32\STM32L496G-Discovery_Azure\Debug
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSTM32L496xx -DUSE_HAL_DRIVER '-DMBEDTLS_CONFIG_FILE=<mbedtls_config.h>' -DENABLE_IOT_INFO -DENABLE_IOT_ERROR -DENABLE_IOT_WARNING -DDONT_USE_UPLOADTOBLOB -DAZURE -DUSE_MBED_TLS -DHSM_TYPE_X509 -DHSM_TYPE_SAS_TOKEN -DUSE_PROV_MODULE '-DEINVAL=22' '-DENOMEM=12' '-DSTRINGS_C_SPRINTF_BUFFER_SIZE=512' -DUSE_C2C_RTOS -DHAS_RTOS -DMANUAL_SIM_SELECTION -DUSE_MODEM_BG96 -DUSE_C2C '-DPARTIAL_HEAP_SIZE=60000'  -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"Middlewares/Third_Party/azure-iot-sdk-c/c-provisioning_client/adapters/hsm_client_data.d" -MT"Middlewares/Third_Party/azure-iot-sdk-c/c-provisioning_client/adapters/hsm_client_data.o" -o "Middlewares/Third_Party/azure-iot-sdk-c/c-provisioning_client/adapters/hsm_client_data.o" "C:/Users/parad/Documents/stm32_workspace_ac6/STM32CubeExpansion_Cloud_AZURE_V1.2.1/Middlewares/Third_Party/azure-iot-sdk-c/provisioning_client/adapters/hsm_client_data.c" @"Middlewares/Third_Party/azure-iot-sdk-c/c-provisioning_client/adapters/includes.args"
arm-none-eabi-gcc: error: Middlewares/Third_Party/azure-iot-sdk-c/c-provisioning_client/adapters/includes.args: No such file or directory
Middlewares/Third_Party/azure-iot-sdk-c/c-provisioning_client/adapters/subdir.mk:18: recipe for target 'Middlewares/Third_Party/azure-iot-sdk-c/c-provisioning_client/adapters/hsm_client_data.o' failed
make: *** [Middlewares/Third_Party/azure-iot-sdk-c/c-provisioning_client/adapters/hsm_client_data.o] Error 1

I try to build another example, B-L475E-IOT01A, and it finishes build without problem. I found B-L475E-IOT01A didn't generate includes.args. Will it be the cause? Any suggestion will be helpful.

SL61

1 ACCEPTED SOLUTION

Accepted Solutions
Guillaume K
ST Employee

Hi

Try to install the sources in a directory with shorter path (at C:\ for example). On Windows the compilation toolchain doesn't like long paths.

View solution in original post

2 REPLIES 2
Guillaume K
ST Employee

Hi

Try to install the sources in a directory with shorter path (at C:\ for example). On Windows the compilation toolchain doesn't like long paths.

Thanks. It works.​