ST意法半导体
直播中

南中南

8年用户 979经验值
擅长:光电显示
私信 关注
[问答]

在STM32CubeIDE中如何修复arm-none-eabi-gcc错误呢

当我为 NUCLEO-F429ZI 板创建默认项目并在不进行任何编辑的情况下进行构建时,我反复收到以下错误并希望摆脱它。我可以在不同的笔记本电脑上构建相同的东西。我怎么解决这个问题。
“arm-none-eabi-gcc:致命错误:无法执行‘cc1’:CreateProcess:没有这样的文件或目录”
更完整的构建输出如下:
18:15:37 **** 为项目 429zi 构建配置调试 ****
使-j16全部
arm-none-eabi-gcc“C:/Users/00706947/STM32Cube/Repository/STM32Cube_FW_F4_V1.27.0/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c”-mcpu=cortex-m4-std=gnu11-g3-DDEBUG-DRI-DUSE_HAL DSTM32F429xx -c -I../Core/Inc -IC:/Users/00706947/STM32Cube/Repository/STM32Cube_FW_F4_V1.27.0/Drivers/STM32F4xx_HAL_Driver/Inc -IC:/Users/00706947/STM32Cube/Repository/_STM32F4rs/Drivers/ STM32F4xx_HAL_Driver/Inc/Legacy-IC:/Users/00706947/STM32Cube/Repository/STM32Cube_FW_F4_V1.27.0/Drivers/CMSIS/Device/ST/STM32F4xx/Include-IC:/Users/00706947/STM32Cube/W2Driver_F7.V1.27.0/Drivers/CMSIS/Device/STM32F4xx/Include-IC:/Users/00706947/STM32Cube/W2Driver_F7.Vrs_F7.Vrs_F_0/STM32Cube/W2Driver_F7.V1.27.0/驱动程序/CMSIS/设备/ST/STM32F4xx/Include-IC:/Users/00706947/STM32Cube/W2Driver_F7.V1.27.0/Drivers/CMSIS/Device CMSIS/包括-O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.d" -MT"Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o" --specs=nano .规格 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o"
arm-none-eabi-gcc“C:/Users/00706947/STM32Cube/Repository/STM32Cube_FW_F4_V1.27.0/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c”-mcpu=cortex-m4-std=gnu11-g3-DDEBUG_RIDUSE-DUSE DSTM32F429xx -c -I../Core/Inc -IC:/Users/00706947/STM32Cube/Repository/STM32Cube_FW_F4_V1.27.0/Drivers/STM32F4xx_HAL_Driver/Inc -IC:/Users/00706947/STM32Cube/Repository/_STM32F4rs/Drivers/ STM32F4xx_HAL_Driver/Inc/Legacy -IC:/Users/00706947/STM32Cube/Repository/STM32Cube_FW_F4_V1.27.0/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IC:/Users/00706947/STM32Cube/W2Driver_F7.V1.27.0/Drivers/CMSIS/Device/STM32F4xx/Include-IC:/Users/00706947/STM32Cube/W2Driver_F7.Vrs_F7.V1.27.0/驱动程序/CMSIS/设备/ST/STM32F4xx/Include -IC:/Users/00706947/STM32Cube/W2Driver_F7.V1.27.0/Drivers/CMSIS/Device CMSIS/包括-O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_cortex.d" -MT"Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_cortex.o" --specs=nano .规格 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_cortex.o"
arm-none-eabi-gcc "C:/Users/00706947/STM32Cube/Repository/STM32Cube_FW_F4_V1.27.0/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c" -mcpu=cortex-m4 -std=gnu11 -g3 -_DDEBUG_DUSE -DUSE DSTM32F429xx -c -I../Core/Inc -IC:/Users/00706947/STM32Cube/Repository/STM32Cube_FW_F4_V1.27.0/Drivers/STM32F4xx_
.
.
.
编译终止。
arm-none-eabi-gcc: 致命错误: 无法执行 'cc1': CreateProcess: 没有那个文件或目录
编译终止。
make: *** [Drivers/STM32F4xx_HAL_Driver/ subdir.mk:106: Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_rcc_ex.o] 错误1
arm-none-eabi-gcc: 致命错误: 无法执行 'cc1': CreateProcess: 没有那个文件或目录
编译终止。
make: *** [Drivers/STM32F4xx_HAL_Driver/ subdir.mk:88: Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_flash.o] 错误1
make: *** [Drivers/STM32F4xx_HAL_Driver/ subdir.mk:92: Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_flash_ramfunc.o] 错误1
arm-none-eabi-gcc: 致命错误: 无法执行 'cc1': CreateProcess: 没有那个文件或目录
arm-none-eabi-gcc: 致命错误: 无法执行 'cc1': CreateProcess: 没有那个文件或目录
arm-none-eabi-gcc: 致命错误: 无法执行 'cc1': CreateProcess: 没有那个文件或目录
编译终止。
编译终止。
编译终止。
make: *** [Drivers/STM32F4xx_HAL_Driver/ subdir.mk:98: Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_pcd_ex.o] 错误1
make: *** [Drivers/STM32F4xx_HAL_Driver/ subdir.mk:94: Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_gpio.o] 错误 1
make: *** [Drivers/STM32F4xx_HAL_Driver/ subdir.mk:9

问题是我为构建不同的目标设置了系统环境变量 GCC_EXEC_PREFIX。

更多回帖

发帖
×
20
完善资料,
赚取积分