cancel
Showing results for 
Search instead for 
Did you mean: 

Upgraded to 1.0.2, cannot build project "stm32f1xx_hal_exti.h: No such file or directory"

Safi N
Associate II

Was working a project this morning, build successfully and everything. Decided to restart after update and now I am getting this error:

Tried regenerating but didn't help.

Any help, could be a bug introduced in new update ?

make -j8 all 
arm-none-eabi-gcc "../Src/freertos.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/freertos.d" -MT"Src/freertos.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Src/freertos.o"
arm-none-eabi-gcc "../Src/main.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/main.d" -MT"Src/main.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Src/main.o"
arm-none-eabi-gcc "../Src/stm32f1xx_hal_msp.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/stm32f1xx_hal_msp.d" -MT"Src/stm32f1xx_hal_msp.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Src/stm32f1xx_hal_msp.o"
arm-none-eabi-gcc "../Src/stm32f1xx_hal_timebase_tim.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/stm32f1xx_hal_timebase_tim.d" -MT"Src/stm32f1xx_hal_timebase_tim.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Src/stm32f1xx_hal_timebase_tim.o"
arm-none-eabi-gcc "../Src/stm32f1xx_it.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/stm32f1xx_it.d" -MT"Src/stm32f1xx_it.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Src/stm32f1xx_it.o"
arm-none-eabi-gcc "../Src/system_stm32f1xx.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/system_stm32f1xx.d" -MT"Src/system_stm32f1xx.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Src/system_stm32f1xx.o"
arm-none-eabi-gcc "../Middlewares/Third_Party/FreeRTOS/Source/croutine.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/Third_Party/FreeRTOS/Source/croutine.d" -MT"Middlewares/Third_Party/FreeRTOS/Source/croutine.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Middlewares/Third_Party/FreeRTOS/Source/croutine.o"
arm-none-eabi-gcc "../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/Third_Party/FreeRTOS/Source/event_groups.d" -MT"Middlewares/Third_Party/FreeRTOS/Source/event_groups.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Middlewares/Third_Party/FreeRTOS/Source/event_groups.o"
arm-none-eabi-gcc "../Middlewares/Third_Party/FreeRTOS/Source/list.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F103xB -DDEBUG -c -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Inc -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/Third_Party/FreeRTOS/Source/list.d" -MT"Middlewares/Third_Party/FreeRTOS/Source/list.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Middlewares/Third_Party/FreeRTOS/Source/list.o"
In file included from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:46:0,
                 from ../Inc/main.h:31,
                 from ../Src/stm32f1xx_hal_msp.c:23:
../Inc/stm32f1xx_hal_conf.h:246:10: fatal error: stm32f1xx_hal_exti.h: No such file or directory
 #include "stm32f1xx_hal_exti.h"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:46:0,
                 from ../Src/stm32f1xx_hal_timebase_tim.c:22:
../Inc/stm32f1xx_hal_conf.h:246:10: fatal error: stm32f1xx_hal_exti.h: No such file or directory
 #include "stm32f1xx_hal_exti.h"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:46:0,
                 from ../Inc/main.h:31,
                 from ../Src/freertos.c:24:
../Inc/stm32f1xx_hal_conf.h:246:10: fatal error: stm32f1xx_hal_exti.h: No such file or directory
 #include "stm32f1xx_hal_exti.h"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:46:0,
                 from ../Inc/main.h:31,
                 from ../Src/main.c:22:
../Inc/stm32f1xx_hal_conf.h:246:10: fatal error: stm32f1xx_hal_exti.h: No such file or directory
 #include "stm32f1xx_hal_exti.h"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:46:0,
                 from ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:218,
                 from ../Src/system_stm32f1xx.c:77:
../Inc/stm32f1xx_hal_conf.h:246:10: fatal error: stm32f1xx_hal_exti.h: No such file or directory
 #include "stm32f1xx_hal_exti.h"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Src/subdir.mk:43: Src/stm32f1xx_hal_msp.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Src/subdir.mk:45: Src/stm32f1xx_hal_timebase_tim.o] Error 1
In file included from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:46:0,
                 from ../Inc/main.h:31,
                 from ../Src/stm32f1xx_it.c:22:
../Inc/stm32f1xx_hal_conf.h:246:10: fatal error: stm32f1xx_hal_exti.h: No such file or directory
 #include "stm32f1xx_hal_exti.h"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Src/subdir.mk:39: Src/freertos.o] Error 1
make: *** [Src/subdir.mk:41: Src/main.o] Error 1
make: *** [Src/subdir.mk:53: Src/system_stm32f1xx.o] Error 1
make: *** [Src/subdir.mk:47: Src/stm32f1xx_it.o] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
 
10:19:51 Build Failed. 13 errors, 0 warnings. (took 7s.908ms)

4 REPLIES 4
Ozone
Lead II

I would check the project settings / include paths (and that the mentioned file still exists).

Such problems are one of the reasons I avoid Cube.

Markus GIRDLAND
ST Employee

We've done some testing in the office and we think the base issue is that the MX inside CubeIDE v1.0.1 uses F1_V1.7.0, while 1.0.2 uses F1_V1.8.0.

Did you receive some sort of question about upgrading and/or CubeMX not being able to find the FW and chose not to download an update?

Can you try to upgrade to the latest FW and check if it makes a difference? Keep in mind that it's important that you don't cancel an ongoing update.

Safi N
Associate II

@Markus GIRDLAND​  thanks for the reply. Soon after i posted the question, I started a new project and it started downloading F1_V1.8.0, which worked, but I don't remember getting prompt for this project i was working on, Cube MX option dosen't let me change the version of it either.

Safi N
Associate II

adding to the above comment, I opened my previous projects and it prompts to migrate project, I guess i must've blindly canceled that one while loading project's cube mx file.