库包直接运行错误缺少#include "core_cm3.h"

添加头文件路径后运行工程开发
博客提到添加头文件路径,其余部分不改动,工程即可运行,之后可根据自身需求进行开发。

添加头文件路径

其余不改动,工程运行起来,剩下的就是自己根据需求开发啦

*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'E:\keil5 2\ARM\ARMCC\Bin' Rebuild target 'Target 1' compiling misc.c... compiling stm32f10x_dma.c... compiling stm32f10x_bkp.c... compiling stm32f10x_cec.c... compiling stm32f10x_flash.c... compiling stm32f10x_can.c... compiling stm32f10x_exti.c... compiling stm32f10x_fsmc.c... compiling stm32f10x_crc.c... compiling stm32f10x_gpio.c... compiling stm32f10x_dac.c... compiling stm32f10x_dbgmcu.c... compiling stm32f10x_adc.c... compiling stm32f10x_i2c.c... compiling stm32f10x_iwdg.c... compiling stm32f10x_pwr.c... compiling stm32f10x_rcc.c... compiling stm32f10x_sdio.c... compiling stm32f10x_rtc.c... compiling stm32f10x_spi.c... compiling stm32f10x_tim.c... compiling stm32f10x_usart.c... compiling core_cm3.c... "no source": Error: command-line: #564: cannot open embedded assembler output file "C:\WINDOWS\TEMP\p59e0-2": No such file or directory Startup\core_cm3.c: 0 warnings, 1 error assembling startup_stm32f10x_md.s... compiling stm32f10x_wwdg.c... compiling system_stm32f10x.c... compiling LED.c... User\LED.c(14): warning: #1-D: last line of file ends without a newline } User\LED.c: 1 warning, 0 errors compiling main.c... User\LED.h(7): warning: #1-D: last line of file ends without a newline #endif User\main.c: 1 warning, 0 errors compiling stm32f10x_it.c... linking... ..\ARM\PACK\project.axf: error: L6002U: Could not open file ..\arm\pack\core_cm3.o: No such file or directory Finished: 0 information, 0 warning, 0 error and 1 fatal error messages. "..\ARM\PACK\project.axf" - 1 Error(s), 2 Warning(s). Target not created. Build Time Elapsed: 00:00:11
07-30
Rebuild started: Project: ucosII移植模板 *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\keil5\ARM\ARMCC\Bin' Rebuild target 'Target 1' assembling startup_stm32f10x_md.s... compiling core_cm3.c... compiling stm32f10x_crc.c... compiling misc.c... compiling system_stm32f10x.c... compiling stm32f10x_it.c... user\stm32f10x_it.c(137): warning: #223-D: function "OSIntEnter" declared implicitly OSIntEnter(); user\stm32f10x_it.c(138): warning: #223-D: function "OSTimeTick" declared implicitly OSTimeTick(); user\stm32f10x_it.c(139): warning: #223-D: function "OSIntExit" declared implicitly OSIntExit(); user\stm32f10x_it.c: 3 warnings, 0 errors compiling main.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" user\main.c: 0 warnings, 1 error compiling stm32f10x_cec.c... compiling stm32f10x_bkp.c... compiling stm32f10x_adc.c... compiling stm32f10x_can.c... compiling stm32f10x_dac.c... compiling stm32f10x_dbgmcu.c... compiling stm32f10x_exti.c... compiling stm32f10x_dma.c... compiling stm32f10x_flash.c... compiling stm32f10x_fsmc.c... compiling stm32f10x_gpio.c... compiling stm32f10x_iwdg.c... compiling stm32f10x_i2c.c... compiling stm32f10x_pwr.c... compiling stm32f10x_rcc.c... compiling stm32f10x_rtc.c... compiling stm32f10x_sdio.c... compiling os_core.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_core.c: 0 warnings, 1 error compiling stm32f10x_spi.c... compiling stm32f10x_usart.c... compiling os_flag.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_flag.c: 0 warnings, 1 error compiling os_mbox.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_mbox.c: 0 warnings, 1 error compiling os_mem.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_mem.c: 0 warnings, 1 error compiling stm32f10x_wwdg.c... compiling stm32f10x_tim.c... compiling app.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" APP\app.c: 0 warnings, 1 error compiling BSP.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" BSP\BSP.c: 0 warnings, 1 error compiling led.c... BSP\led.h(31): warning: #1-D: last line of file ends without a newline BSP\led.c(52): warning: #1-D: last line of file ends without a newline /******************* (C) COPYRIGHT 2012 WildFire Team *****END OF FILE************/ BSP\led.c: 2 warnings, 0 errors compiling os_mutex.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_mutex.c: 0 warnings, 1 error compiling os_q.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_q.c: 0 warnings, 1 error compiling os_sem.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_sem.c: 0 warnings, 1 error compiling os_task.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_task.c: 0 warnings, 1 error compiling os_time.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_time.c: 0 warnings, 1 error assembling os_cpu_a.asm... ucosII\ports\os_cpu_a.asm(239): warning: A1549W: Setting of REQUIRE8 but not PRESERVE8 is unusual compiling os_tmr.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\source\os_tmr.c: 0 warnings, 1 error compiling os_cpu_c.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\ports\os_cpu_c.c: 0 warnings, 1 error compiling os_dbg.c... .\ucosII\source\ucos_ii.h(1420): error: #35: #error directive: "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" #error "OS_CFG.H, Missing OS_FLAG_NAME_EN: Enable flag group names" ucosII\ports\os_dbg.c: 0 warnings, 1 error ".\Objects\ucosII移植模板.axf" - 15 Error(s), 6 Warning(s). Target not created. Build Time Elapsed: 00:00:01
12-04
Rebuild started: Project: ucosII移植模板 *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\keil5\ARM\ARMCC\Bin' Rebuild target 'Target 1' assembling startup_stm32f10x_md.s... compiling system_stm32f10x.c... compiling core_cm3.c... compiling stm32f10x_it.c... compiling main.c... .\BSP\led.h(31): warning: #1-D: last line of file ends without a newline user\main.c(16): warning: #1-D: last line of file ends without a newline /******************* (C) COPYRIGHT 2012 WildFire Team *****END OF FILE************/ user\main.c: 2 warnings, 0 errors compiling misc.c... compiling stm32f10x_cec.c... compiling stm32f10x_crc.c... compiling stm32f10x_bkp.c... compiling stm32f10x_adc.c... compiling stm32f10x_can.c... compiling stm32f10x_dac.c... compiling stm32f10x_dbgmcu.c... compiling stm32f10x_dma.c... compiling stm32f10x_exti.c... compiling stm32f10x_gpio.c... compiling stm32f10x_flash.c... compiling stm32f10x_fsmc.c... compiling stm32f10x_iwdg.c... compiling stm32f10x_i2c.c... compiling stm32f10x_pwr.c... compiling stm32f10x_rtc.c... compiling stm32f10x_rcc.c... compiling stm32f10x_sdio.c... compiling stm32f10x_spi.c... compiling stm32f10x_usart.c... compiling stm32f10x_tim.c... compiling stm32f10x_wwdg.c... compiling os_flag.c... compiling os_core.c... compiling app.c... .\BSP\led.h(31): warning: #1-D: last line of file ends without a newline APP\app.c: 1 warning, 0 errors compiling os_mbox.c... compiling BSP.c... .\BSP\led.h(31): warning: #1-D: last line of file ends without a newline BSP\BSP.c: 1 warning, 0 errors compiling led.c... BSP\led.h(31): warning: #1-D: last line of file ends without a newline BSP\led.c(51): warning: #1-D: last line of file ends without a newline /******************* (C) COPYRIGHT 2012 WildFire Team *****END OF FILE************/ BSP\led.c: 2 warnings, 0 errors compiling os_mem.c... compiling os_mutex.c... ucosII\source\os_mutex.c(398): error: #147-D: declaration is incompatible with "void OSMutexPend(OS_EVENT *, INT32U, INT8U *)" (declared at line 920 of ".\ucosII\source\ucos_ii.h") void OSMutexPend (OS_EVENT *pevent, INT16U timeout, INT8U *perr) ucosII\source\os_mutex.c: 0 warnings, 1 error compiling os_q.c... compiling os_sem.c... compiling os_task.c... compiling os_time.c... ucosII\source\os_time.c(44): error: #147-D: declaration is incompatible with "void OSTimeDly(INT32U)" (declared at line 1118 of ".\ucosII\source\ucos_ii.h") void OSTimeDly (INT16U ticks) ucosII\source\os_time.c: 0 warnings, 1 error compiling os_tmr.c... assembling os_cpu_a.asm... ucosII\ports\os_cpu_a.asm(239): warning: A1549W: Setting of REQUIRE8 but not PRESERVE8 is unusual compiling ucos_ii.c... .\ucosII\source\os_mutex.c(398): error: #147-D: declaration is incompatible with "void OSMutexPend(OS_EVENT *, INT32U, INT8U *)" (declared at line 920 of ".\ucosII\source\ucos_ii.h") void OSMutexPend (OS_EVENT *pevent, INT16U timeout, INT8U *perr) .\ucosII\source\os_time.c(44): error: #147-D: declaration is incompatible with "void OSTimeDly(INT32U)" (declared at line 1118 of ".\ucosII\source\ucos_ii.h") void OSTimeDly (INT16U ticks) ucosII\source\ucos_ii.c: 0 warnings, 2 errors compiling os_cpu_c.c... ucosII\ports\os_cpu_c.c(360): error: #20: identifier "OS_CPU_CM3_NVIC_ST_RELOAD" is undefined OS_CPU_CM3_NVIC_ST_RELOAD = (cnts - 1); ucosII\ports\os_cpu_c.c(362): error: #20: identifier "OS_CPU_CM3_NVIC_PRIO_ST" is undefined OS_CPU_CM3_NVIC_PRIO_ST = OS_CPU_CM3_NVIC_PRIO_MIN; ucosII\ports\os_cpu_c.c(362): error: #20: identifier "OS_CPU_CM3_NVIC_PRIO_MIN" is undefined OS_CPU_CM3_NVIC_PRIO_ST = OS_CPU_CM3_NVIC_PRIO_MIN; ucosII\ports\os_cpu_c.c(364): error: #20: identifier "OS_CPU_CM3_NVIC_ST_CTRL" is undefined OS_CPU_CM3_NVIC_ST_CTRL |= OS_CPU_CM3_NVIC_ST_CTRL_CLK_SRC | OS_CPU_CM3_NVIC_ST_CTRL_ENABLE; ucosII\ports\os_cpu_c.c(364): error: #20: identifier "OS_CPU_CM3_NVIC_ST_CTRL_CLK_SRC" is undefined OS_CPU_CM3_NVIC_ST_CTRL |= OS_CPU_CM3_NVIC_ST_CTRL_CLK_SRC | OS_CPU_CM3_NVIC_ST_CTRL_ENABLE; ucosII\ports\os_cpu_c.c(364): error: #20: identifier "OS_CPU_CM3_NVIC_ST_CTRL_ENABLE" is undefined OS_CPU_CM3_NVIC_ST_CTRL |= OS_CPU_CM3_NVIC_ST_CTRL_CLK_SRC | OS_CPU_CM3_NVIC_ST_CTRL_ENABLE; ucosII\ports\os_cpu_c.c(366): error: #20: identifier "OS_CPU_CM3_NVIC_ST_CTRL_INTEN" is undefined OS_CPU_CM3_NVIC_ST_CTRL |= OS_CPU_CM3_NVIC_ST_CTRL_INTEN; ucosII\ports\os_cpu_c.c: 0 warnings, 7 errors compiling os_dbg.c... ".\Objects\ucosII移植模板.axf" - 11 Error(s), 7 Warning(s). Target not created. Build Time Elapsed: 00:00:02
最新发布
12-04
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值