MDK编译出现*** Error: CreateProcess failed,的解决方法

本文介绍了解决在编译他人工程时遇到的关于生成bin文件的错误。通过调整编译设置中的RUN#1选项及UserCommand路径配置,可以避免因路径错误导致的编译失败。

编译其他人已经编写好的工程代码时,编译出现了如下的问题。

 原因:这是作者需要生成bin文件,因此勾选了Run#1,并在User Command中填写自己软件的实际目录。但是如果你只是照搬过来,不进行相应的更改就会出现上面的报错。

解决方法:

1、如果你不需要生成相应的bin文件:

将勾选的RUN #1去掉勾选点击ok就可以了。

2、如果你需要生成相应的bin文件,则在勾选Run#1的条件下,更改User Command的内容:

更改如下:fromelf.exe --bin -o "$L@L.bin" "#L"

按照上述这种方式更改,当别人再编译你的工程时,就不会因为路径不对的问题而导致编译报错。

Rebuild started: Project: USART *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin' Rebuild target 'USART' compiling main.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\main.__i"' compiling led.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\led.__i"' compiling button4_4.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\button4_4.__i"' compiling key.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\key.__i"' compiling system_stm32f10x.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\system_stm32f10x.__i"' compiling oled.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\oled.__i"' compiling stm32f10x_it.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_it.__i"' compiling usart.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\usart.__i"' compiling rtc.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\rtc.__i"' compiling beep.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\beep.__i"' compiling MFRC522.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\mfrc522.__i"' compiling usart2.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\usart2.__i"' compiling stm32f10x_flash.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_flash.__i"' compiling delay.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\delay.__i"' compiling sys.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\sys.__i"' compiling stm32f10x_pwr.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_pwr.__i"' compiling stm32f10x_tim.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_tim.__i"' compiling walkmotor.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\walkmotor.__i"' compiling core_cm3.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\core_cm3.__i"' compiling misc.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\misc.__i"' compiling stm32f10x_gpio.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_gpio.__i"' assembling startup_stm32f10x_hd.s... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmAsm" --via "..\obj\startup_stm32f10x_hd._ia"' compiling stm32f10x_usart.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_usart.__i"' compiling stm32f10x_rcc.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_rcc.__i"' compiling stmflash.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stmflash.__i"' compiling stm32f10x_bkp.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_bkp.__i"' compiling stm32f10x_rtc.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\stm32f10x_rtc.__i"' compiling timer.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\timer.__i"' compiling as608.c... *** Error: CreateProcess failed, Command: '"C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmCC" --via "..\obj\as608.__i"' linking... --- Error: failed to execute 'C:\Program Files (x86)\ARM_Compiler_5.06u7\Bin\ArmLink' "..\OBJ\USART.axf" - 1 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:00分析报错
06-15
Build started: Project: Project *** Using Compiler '', folder: 'D:\k5\ARM\ARMCLANG\bin\' Build target 'STM32F4-Discovery' compiling stm32f4xx_hal_hcd.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_hcd.__i"' compiling stm32f4xx_ll_sdmmc.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_ll_sdmmc.__i"' compiling stm32f4xx_hal_smartcard.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_smartcard.__i"' compiling stm32f4xx_hal_dac.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_dac.__i"' compiling stm32f4xx_hal_flash.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_flash.__i"' compiling stm32f4xx_hal_tim.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_tim.__i"' compiling stm32f4xx_hal_rtc_ex.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_rtc_ex.__i"' compiling stm32f4xx_hal_can.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_can.__i"' compiling stm32f4xx_hal_cryp_ex.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_cryp_ex.__i"' compiling stm32f4xx_hal_cortex.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_cortex.__i"' compiling stm32f4xx_hal_uart.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --via "stm32f4-discovery\stm32f4xx_hal_uart.__i"' compiling stm32f4xx_hal_dcmi.c... *** Error: CreateProcess failed, Command: '"D:\k5\ARM\ARMCLANG\bin\\ArmCC" --
03-21
评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值