Question
Hi everyone, I am having a problem with STM32CubeIDE, funnilly enough it was working jolly good a week ago and today as I wanted to debug my code Ive gotten 9 error messages. I am pasting those messages underneath. Thanks in advance. Aleksander
make -j4 all
arm-none-eabi-gcc "../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c" -mcpu=cortex-m0 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F072xB -c -I../Core/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.d" -MT"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o"
arm-none-eabi-gcc "../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c" -mcpu=cortex-m0 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F072xB -c -I../Core/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.d" -MT"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o"
arm-none-eabi-gcc "../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c" -mcpu=cortex-m0 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F072xB -c -I../Core/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.d" -MT"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.o"
arm-none-eabi-gcc "../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.c" -mcpu=cortex-m0 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F072xB -c -I../Core/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.d" -MT"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o"
In file included from ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:149,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h:30,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h:29,
from ../Core/Inc/stm32f0xx_hal_conf.h:192,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:30,
from ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c:36:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h:116:10: fatal error: core_cm0.h: No such file or directory
116 | #include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
| ^~~~~~~~~~~~
compilation terminated.
In file included from ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:149,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h:30,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h:29,
from ../Core/Inc/stm32f0xx_hal_conf.h:192,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:30,
from ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c:34:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h:116:10: fatal error: core_cm0.h: No such file or directory
116 | #include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk:76: Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk:76: Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.o] Error 1
In file included from ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:149,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h:30,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h:29,
from ../Core/Inc/stm32f0xx_hal_conf.h:192,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:30,
from ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.c:213:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h:116:10: fatal error: core_cm0.h: No such file or directory
116 | #include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
| ^~~~~~~~~~~~
compilation terminated.
In file included from ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:149,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h:30,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h:29,
from ../Core/Inc/stm32f0xx_hal_conf.h:192,
from ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h:30,
from ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c:303:
../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h:116:10: fatal error: core_cm0.h: No such file or directory
116 | #include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk:76: Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o] Error 1
make: *** [Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk:76: Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.