野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 21199|回复: 4

程序组合问题。。。

[复制链接]
发表于 2014-4-14 20:44:46 | 显示全部楼层 |阅读模式
Build target 'key1'
compiling bsp_breathing.c...
..\..\User\breathinglight\bsp_breathing.c(52): error:  #20: identifier "NVIC_InitTypeDef" is undefined
..\..\User\breathinglight\bsp_breathing.c(55): warning:  #223-D: function "NVIC_PriorityGroupConfig" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(55): error:  #20: identifier "NVIC_PriorityGroup_1" is undefined
..\..\User\breathinglight\bsp_breathing.c(62): warning:  #223-D: function "NVIC_Init" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(84): error:  #20: identifier "TIM_TimeBaseInitTypeDef" is undefined
..\..\User\breathinglight\bsp_breathing.c(85): error:  #20: identifier "TIM_OCInitTypeDef" is undefined
..\..\User\breathinglight\bsp_breathing.c(93): error:  #20: identifier "TIM_CKD_DIV1" is undefined
..\..\User\breathinglight\bsp_breathing.c(94): error:  #20: identifier "TIM_CounterMode_Up" is undefined
..\..\User\breathinglight\bsp_breathing.c(95): warning:  #223-D: function "TIM_TimeBaseInit" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(98): error:  #20: identifier "TIM_OCMode_PWM1" is undefined
..\..\User\breathinglight\bsp_breathing.c(99): error:  #20: identifier "TIM_OutputState_Enable" is undefined
..\..\User\breathinglight\bsp_breathing.c(101): error:  #20: identifier "TIM_OCPolarity_Low" is undefined
..\..\User\breathinglight\bsp_breathing.c(103): warning:  #223-D: function "TIM_OC3Init" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(106): warning:  #223-D: function "TIM_OC3PreloadConfig" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(106): error:  #20: identifier "TIM_OCPreload_Enable" is undefined
..\..\User\breathinglight\bsp_breathing.c(108): warning:  #223-D: function "TIM_ARRPreloadConfig" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(111): warning:  #223-D: function "TIM_Cmd" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(113): warning:  #223-D: function "TIM_ITConfig" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(113): error:  #20: identifier "TIM_IT_Update" is undefined
Target not created
   

当我把呼吸灯程序和按键程序拼装在一起的时候 出现这个状况 在user文件夹里面我也添加了bsp_breathing.c
在c++那个调试里面 我也添加了这个目录 但就是不知道怎么回事 希望大神帮帮小弟 小弟是新手。万分感谢
回复

使用道具 举报

发表于 2014-4-15 09:20:48 | 显示全部楼层
有在stm32f10x.conf.h里把头文件注释部分修改下吗
回复 支持 反对

使用道具 举报

发表于 2014-4-15 09:25:47 | 显示全部楼层
stm32f10x.conf.h下的TIM相关.h去掉注释
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-4-17 21:17:02 | 显示全部楼层
刀_口 发表于 2014-4-15 09:25
stm32f10x.conf.h下的TIM相关.h去掉注释

嗯嗯 是这个原因 谢谢强烈支持,非常感谢哥们
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-4-17 21:17:26 | 显示全部楼层
神奇的海螺 发表于 2014-4-15 09:20
有在stm32f10x.conf.h里把头文件注释部分修改下吗

恩 非常感谢 我找到原因了 是我没有改头文件 强烈支持,非常感谢哥们
回复 支持 反对

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-18 21:17 , Processed in 0.036148 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表