4713|8

67

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

程序编译出错 [复制链接]

编译时出现这样的错误,请高手指点
Build target '工程'
compiling pwm.c...
pwm.c(87): warning:  #223-D: function "TIM_OC1Init" declared implicitly
pwm.c(95): warning:  #223-D: function "TIM_OC2Init" declared implicitly
pwm.c(103): warning:  #223-D: function "TIM_OC3Init" declared implicitly
pwm.c(111): warning:  #223-D: function "TIM_OC4Init" declared implicitly
linking...
.\output\SoftStarterNew.axf: Error: L6218E: Undefined symbol
TIM_OC1Init (referred from pwm.o).
.\output\SoftStarterNew.axf: Error: L6218E: Undefined symbol TIM_OC2Init (referred from pwm.o).
.\output\SoftStarterNew.axf: Error: L6218E: Undefined symbol TIM_OC3Init (referred from pwm.o).
.\output\SoftStarterNew.axf: Error: L6218E: Undefined symbol TIM_OC4Init (referred from pwm.o).
Target not created
此帖出自stm32/stm8论坛

最新回复

                                 我遇到过类似的,就是版主说的问题  详情 回复 发表于 2010-12-20 18:46
点赞 关注
 

回复
举报

65

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
                                 TIM_OC1Init, TIM_OC2Init, TIM_OC3Init, TIM_OC4Init这四个函数是不是没有申明啊。
此帖出自stm32/stm8论坛
 
 

回复

90

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
                                 不太明白,能在详细一点吗,我是直接调用的库函数,库函数里面应该有申明啊
此帖出自stm32/stm8论坛
 
 

回复

86

帖子

0

TA的资源

一粒金砂(中级)

4
 
不太明白,能在详细一点吗,我是直接调用的库函数,库函数里面应该有申明啊
看样子是库的源文件没有加入到工程中
此帖出自stm32/stm8论坛
 
 
 

回复

90

帖子

0

TA的资源

一粒金砂(初级)

5
 
                                 #include 过头文件吗
此帖出自stm32/stm8论坛
 
 
 

回复

72

帖子

0

TA的资源

一粒金砂(初级)

6
 
                                  所有源文件都加进去了
此帖出自stm32/stm8论坛
 
 
 

回复

84

帖子

0

TA的资源

一粒金砂(初级)

7
 
#include 过头文件吗
#include "stm32f10x_lib.h"
此帖出自stm32/stm8论坛
 
 
 

回复

73

帖子

0

TA的资源

一粒金砂(初级)

8
 
#include "stm32f10x_lib.h"
最新的库应该是:
#include "stm32F10x.h"

还有,看看是不是芯片类型没有定义对,比如下面针对 STM32 High density devices(STM32F103xC、STM32F103xD、STM32F103xE):
  /* #define STM32F10X_LD */     /*!< STM32F10X_LD: STM32 Low density devices */
  /* #define STM32F10X_MD */     /*!< STM32F10X_MD: STM32 Medium density devices */
  /* #define STM32F10X_MD_VL */  /*!< STM32F10X_MD_VL: STM32 Medium density Value Line devices */  
   #define STM32F10X_HD      /*!< STM32F10X_HD: STM32 High density devices */
  /* #define STM32F10X_XL */     /*!< STM32F10X_XL: STM32 XL-density devices */
  /* #define STM32F10X_CL */     /*!< STM32F10X_CL: STM32 Connectivity line devices */
此帖出自stm32/stm8论坛
 
 
 

回复

66

帖子

0

TA的资源

一粒金砂(初级)

9
 
                                 我遇到过类似的,就是版主说的问题
此帖出自stm32/stm8论坛
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/6 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表