cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Generate Project Fails to build after an IOC change

Jorgie
Associate III

Hi,

I am generating code using STM32CubeIDE 1.16.1

Example Selector

Board Name - NUCLEO-U083RC

ADC_MultiChannelSingleConversion

The code compiles and runs.

Any change then made to the IOC file appears to delete at 34 files one file is still needed - stm32u0xx_ll_tim.h

The compile error is shown below:

 

09:57:49 **** Incremental Build of configuration Debug for project ADC_MultiChannelSingleConversion ****
make -j12 all 
arm-none-eabi-gcc "C:/Projects/1.16.1/ADC_MultiChannelSingleConversion/Src/main.c" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32U083xx -c -I../../Inc -I../../Drivers/STM32U0xx_HAL_Driver/Inc -I../../Drivers/STM32U0xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32U0xx/Include -I../../Drivers/CMSIS/Include -I../../Drivers/BSP/STM32U0xx_Nucleo -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Application/User/main.d" -MT"Application/User/main.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Application/User/main.o"
arm-none-eabi-gcc "C:/Projects/1.16.1/ADC_MultiChannelSingleConversion/Src/stm32u0xx_hal_msp.c" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32U083xx -c -I../../Inc -I../../Drivers/STM32U0xx_HAL_Driver/Inc -I../../Drivers/STM32U0xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32U0xx/Include -I../../Drivers/CMSIS/Include -I../../Drivers/BSP/STM32U0xx_Nucleo -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Application/User/stm32u0xx_hal_msp.d" -MT"Application/User/stm32u0xx_hal_msp.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Application/User/stm32u0xx_hal_msp.o"
arm-none-eabi-gcc "C:/Projects/1.16.1/ADC_MultiChannelSingleConversion/Src/stm32u0xx_it.c" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32U083xx -c -I../../Inc -I../../Drivers/STM32U0xx_HAL_Driver/Inc -I../../Drivers/STM32U0xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32U0xx/Include -I../../Drivers/CMSIS/Include -I../../Drivers/BSP/STM32U0xx_Nucleo -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Application/User/stm32u0xx_it.d" -MT"Application/User/stm32u0xx_it.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Application/User/stm32u0xx_it.o"
arm-none-eabi-gcc "../Application/User/sysmem.c" -mcpu=cortex-m0plus -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32U083xx -c -I../../Inc -I../../Drivers/STM32U0xx_HAL_Driver/Inc -I../../Drivers/STM32U0xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32U0xx/Include -I../../Drivers/CMSIS/Include -I../../Drivers/BSP/STM32U0xx_Nucleo -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Application/User/sysmem.d" -MT"Application/User/sysmem.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Application/User/sysmem.o"
arm-none-eabi-gcc -mcpu=cortex-m0plus -g3 -DDEBUG -c -x assembler-with-cpp -MMD -MP -MF"Application/Startup/startup_stm32u083rctx.d" -MT"Application/Startup/startup_stm32u083rctx.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Application/Startup/startup_stm32u083rctx.o" "../Application/Startup/startup_stm32u083rctx.s"
In file included from C:/Projects/1.16.1/ADC_MultiChannelSingleConversion/Src/main.c:24:
../../Inc/main.h:35:10: fatal error: stm32u0xx_ll_tim.h: No such file or directory
   35 | #include "stm32u0xx_ll_tim.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Application/User/subdir.mk:31: Application/User/main.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from C:/Projects/1.16.1/ADC_MultiChannelSingleConversion/Src/stm32u0xx_hal_msp.c:23:
../../Inc/main.h:35:10: fatal error: stm32u0xx_ll_tim.h: No such file or directory
   35 | #include "stm32u0xx_ll_tim.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from C:/Projects/1.16.1/ADC_MultiChannelSingleConversion/Src/stm32u0xx_it.c:24:
../../Inc/main.h:35:10: fatal error: stm32u0xx_ll_tim.h: No such file or directory
   35 | #include "stm32u0xx_ll_tim.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Application/User/subdir.mk:33: Application/User/stm32u0xx_hal_msp.o] Error 1
make: *** [Application/User/subdir.mk:35: Application/User/stm32u0xx_it.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

09:57:50 Build Failed. 7 errors, 0 warnings. (took 349ms)

 

 

If I copy the file back into the include directory the code build correctly.

The images show which files have been copied back.

Interestingly the GUI for the IDE is no longer showing the Inc directory, not sure if this is a setting issue or related. Also shown in the images.

 

1 REPLY 1
Jorgie
Associate III

Directory missing image now included:

directory.jpg