cancel
Showing results for 
Search instead for 
Did you mean: 

Can't build project after re-installing CubeIDE

shane mattner
Associate III

After re-installing Ubuntu on my laptop and installing CubeIDE v12.1 I can't build a previously building project and get the error:

`make: *** No rule to make target '/home/shane/Desktop/STM32Cube/Repository/STM32Cube_FW_F3_V1.11.4/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal.c', needed by 'Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.o'. Stop.`

Then I build a new project from scratch and the project builds just fine:

`arm-none-eabi-gcc "/home/shane/STM32Cube/Repository/STM32Cube_FW_F3_V1.11.4/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F301x8 -c -I../Core/Inc -I/home/shane/STM32Cube/Repository/STM32Cube_FW_F3_V1.11.4/Drivers/STM32F3xx_HAL_Driver/Inc -I/home/shane/STM32Cube/Repository/STM32Cube_FW_F3_V1.11.4/Drivers/STM32F3xx_HAL_Driver/Inc/Legacy -I/home/shane/STM32Cube/Repository/STM32Cube_FW_F3_V1.11.4/Drivers/CMSIS/Device/ST/STM32F3xx/Include -I/home/shane/STM32Cube/Repository/STM32Cube_FW_F3_V1.11.4/Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.d" -MT"Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.o"`

I've found this problem many times:  I clone a new repo with a CubeIDE project or I uninstall and re-install CubeIDE and end up having to recreate the entire project from scratch because CubeIDE has a problem building.  Anyone know what's going on?

 

 

0 REPLIES 0