Error: CreateProcess failed, Command: ‘“D:\keil2\ARM\ARMCLANG\bin\\ArmCC“ 解决办法之一
最近使用CubeMX创建使用I2C的项目后,build工程出现如下错误:
Rebuild started: Project: mpu6050_data1 *** Using Compiler '', folder: 'D:\keil2\ARM\ARMCLANG\bin\' Rebuild target 'mpu6050_data1' compiling gpio.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\gpio.__i"' compiling main.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\main.__i"' compiling i2c.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\i2c.__i"' compiling stm32f4xx_hal_msp.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_msp.__i"' compiling stm32f4xx_hal_flash.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_flash.__i"' compiling stm32f4xx_it.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_it.__i"' compiling stm32f4xx_hal_i2c_ex.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_i2c_ex.__i"' compiling stm32f4xx_hal_i2c.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_i2c.__i"' compiling stm32f4xx_hal_rcc.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_rcc.__i"' compiling stm32f4xx_hal_rcc_ex.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_rcc_ex.__i"' compiling stm32f4xx_hal_flash_ex.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_flash_ex.__i"' compiling usart.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\usart.__i"' compiling stm32f4xx_hal_flash_ramfunc.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_flash_ramfunc.__i"' compiling stm32f4xx_hal_gpio.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_gpio.__i"' compiling stm32f4xx_hal_dma_ex.c... *** Error: CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC" --via "mpu6050_data1\stm32f4xx_hal_dma_ex.__i"' assembling startup_stm32f407xx.s... startup_stm32f407xx.s: Warning: A1950W: The legacy armasm assembler is deprecated. Consider using the armclang integrated assembler instead. linking... mpu6050_data1\mpu6050_data1.axf: error: L6002U: Could not open file mpu6050_data1\main.o: No such file or directory Not enough information to list image symbols. Not enough information to list load addresses in the image map. Finished: 2 information, 0 warning, 0 error and 1 fatal error messages. "mpu6050_data1\mpu6050_data1.axf" - 1 Error(s), 1 Warning(s). Target not created. Build Time Elapsed: 00:00:00
目测主要错误有:
1.CreateProcess failed, Command: '"D:\keil2\ARM\ARMCLANG\bin\\ArmCC"
2.error: L6002U: Could not open file mpu6050_data1\main.o:
细看后知道第2个错误是由于第1个错误出现后无法生成相关文件(如main.o),所以下面解决第一个错误。
搜索资料后得知,这个问题出现的主要原因与ARMCLANG与ARMCC有关,所以大致应该按下列流程排查:
1. 查看在keil中ARMCLANG与ARMCC是否配置好。如下图


我的问题原因就是因为这里Setup Default ARM Comiler Version中的Default Version to use选择了unspecified。这里我按图中设置解决了问题
2. 查看keil的安装目录的ARM文件夹中是否缺失ARMCLANG或ARMCC
如果缺失,则需要去官网或网友分享的链接下载,官网下载的话需要注册登录账号后下载,如图:

然后进行对ARMCLANG与ARMCC进行配置。
配置的话,互联网应该有很多分享,这里不再详细说明
更多推荐

所有评论(0)