MDK5:正点原子stm32遇Target not created的解决方法

当尝试编译test.uvprojx工程时遇到错误,可以尝试关闭工程,然后以管理员身份运行Keil5应用程序,这通常能解决编译失败的问题。

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

在这里插入图片描述
在这里插入图片描述
几乎在直接打开这里的test.uvprojx文件进行编译运行时都会出现以上的错误。这时候只需关闭改工程,然后右击keil5的应用程序,点击“以管理员身份运行”,打开之后即可编译成功。
在这里插入图片描述
在这里插入图片描述

Build started: Project: deepone *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Program Files\MDK\Core\ARM\ARMCC\Bin' Build target 'Target 1' compiling main.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" main.c: 0 warnings, 1 error compiling misc.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\StdPeriph_Driver\src\misc.c: 0 warnings, 1 error compiling stm32f10x_gpio.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 1 error compiling GPIO_STM32F10x.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\RTE_Driver\GPIO_STM32F10x.c: 0 warnings, 1 error compiling stm32f10x_rcc.c... D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h(8302): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory #include "stm32f10x_conf.h" D:\Program Files\MDK\Pack\Keil\STM32F1xx_DFP\2.3.0\Device\StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 1 error ".\Objects\deepone.axf" - 5 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:01
03-21
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

信奥教练橙子

你的鼓励将是我的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值