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

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

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

解决方法:

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

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

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

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

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

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、付费专栏及课程。

余额充值