你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

关于库文件报错

[复制链接]
kingyufly 提问时间:2015-5-28 10:43 /
本人菜鸟,刚开始学习STM,照着网上的视频先写了个框架,结果库文件报错,请问各位这个是什么情况?
  1. <blockquote>*** Using Compiler 'V5.05 update 1 (build 106)', folder: 'E:\Keil_v5\ARM\ARMCC\Bin'
复制代码


收藏 评论13 发布时间:2015-5-28 10:43

举报

13个回答
kingyufly 回答时间:2015-5-28 10:44:14
貌似显示不全
kingyufly 回答时间:2015-5-28 10:45:35
C:/Users/Administrator/Desktop/捕获.PNG
kingyufly 回答时间:2015-5-28 10:53:50
报错信息:
*** Using Compiler 'V5.05 update 1 (build 106)', folder: 'E:\Keil_v5\ARM\ARMCC\Bin'
Build target 'STM32F429ZIT'
compiling stm32f4xx_rcc.c...
LIB\src\stm32f4xx_rcc.c(266): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_HSE(RCC_HSE));
LIB\src\stm32f4xx_rcc.c(297): error:  #20: identifier "HSE_STARTUP_TIMEOUT" is undefined
    } while((startupcounter != HSE_STARTUP_TIMEOUT) && (hsestatus == RESET));
LIB\src\stm32f4xx_rcc.c(322): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue));
LIB\src\stm32f4xx_rcc.c(357): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_FUNCTIONAL_STATE(NewState));
LIB\src\stm32f4xx_rcc.c(382): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_LSE(RCC_LSE));
LIB\src\stm32f4xx_rcc.c(422): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_FUNCTIONAL_STATE(NewState));
LIB\src\stm32f4xx_rcc.c(545): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_FUNCTIONAL_STATE(NewState));
LIB\src\stm32f4xx_rcc.c(714): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_FUNCTIONAL_STATE(NewState));
LIB\src\stm32f4xx_rcc.c(805): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_FUNCTIONAL_STATE(NewState));
LIB\src\stm32f4xx_rcc.c(823): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_FUNCTIONAL_STATE(NewState));
LIB\src\stm32f4xx_rcc.c(850): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_MCO1SOURCE(RCC_MCO1Source));
LIB\src\stm32f4xx_rcc.c(888): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_MCO2SOURCE(RCC_MCO2Source));
LIB\src\stm32f4xx_rcc.c(1084): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource));
LIB\src\stm32f4xx_rcc.c(1084): warning:  #223-D: function "IS_RCC_SYSCLK_SOURCE" declared implicitly
    assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource));
LIB\src\stm32f4xx_rcc.c(1138): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_HCLK(RCC_SYSCLK));
LIB\src\stm32f4xx_rcc.c(1170): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_PCLK(RCC_HCLK));
LIB\src\stm32f4xx_rcc.c(1201): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_PCLK(RCC_HCLK));
LIB\src\stm32f4xx_rcc.c(1261): error:  #20: identifier "HSI_VALUE" is undefined
      RCC_Clocks->SYSCLK_Frequency = HSI_VALUE;
LIB\src\stm32f4xx_rcc.c(1264): error:  #20: identifier "HSE_VALUE" is undefined
      RCC_Clocks->SYSCLK_Frequency = HSE_VALUE;
LIB\src\stm32f4xx_rcc.c(1406): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource));
LIB\src\stm32f4xx_rcc.c(1436): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_FUNCTIONAL_STATE(NewState));
LIB\src\stm32f4xx_rcc.c(1453): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_FUNCTIONAL_STATE(NewState));
LIB\src\stm32f4xx_rcc.c(1648): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(RCC_PLLI2SDivQ));
LIB\src\stm32f4xx_rcc.c(1680): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(RCC_PLLSAIDivQ));
LIB\src\stm32f4xx_rcc.c(1716): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_PLLSAI_DIVR_VALUE(RCC_PLLSAIDivR));
LIB\src\stm32f4xx_rcc.c(1751): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_TIMCLK_PRESCALER(RCC_TIMCLKPrescaler));
LIB\src\stm32f4xx_rcc.c(1793): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_AHB1_CLOCK_PERIPH(RCC_AHB1Periph));
LIB\src\stm32f4xx_rcc.c(1825): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIB\src\stm32f4xx_rcc.c(1911): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));  
LIB\src\stm32f4xx_rcc.c(1957): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph));
LIB\src\stm32f4xx_rcc.c(1999): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_AHB1_RESET_PERIPH(RCC_AHB1Periph));
LIB\src\stm32f4xx_rcc.c(2028): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIB\src\stm32f4xx_rcc.c(2108): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
LIB\src\stm32f4xx_rcc.c(2150): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_APB2_RESET_PERIPH(RCC_APB2Periph));
LIB\src\stm32f4xx_rcc.c(2199): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_AHB1_LPMODE_PERIPH(RCC_AHB1Periph));
LIB\src\stm32f4xx_rcc.c(2231): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIB\src\stm32f4xx_rcc.c(2317): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
LIB\src\stm32f4xx_rcc.c(2363): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph));
LIB\src\stm32f4xx_rcc.c(2387): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_LSE_MODE(RCC_Mode));
LIB\src\stm32f4xx_rcc.c(2391): error:  #20: identifier "RCC_BDCR_LSEMOD" is undefined
      SET_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
LIB\src\stm32f4xx_rcc.c(2395): error:  #20: identifier "RCC_BDCR_LSEMOD" is undefined
      CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
LIB\src\stm32f4xx_rcc.c(2585): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_IT(RCC_IT));
LIB\src\stm32f4xx_rcc.c(2626): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_FLAG(RCC_FLAG));
LIB\src\stm32f4xx_rcc.c(2689): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_GET_IT(RCC_IT));
LIB\src\stm32f4xx_rcc.c(2721): warning:  #223-D: function "assert_param" declared implicitly
    assert_param(IS_RCC_CLEAR_IT(RCC_IT));
LIB\src\stm32f4xx_rcc.c: 40 warnings, 5 errors
compiling system_stm32f4xx.c...
SYSTEM\system_stm32f4xx.c(564): error:  #20: identifier "HSI_VALUE" is undefined
        SystemCoreClock = HSI_VALUE;
SYSTEM\system_stm32f4xx.c(567): error:  #20: identifier "HSE_VALUE" is undefined
        SystemCoreClock = HSE_VALUE;
SYSTEM\system_stm32f4xx.c(554): warning:  #550-D: variable "pllsource" was set but never used
    uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
SYSTEM\system_stm32f4xx.c(554): warning:  #550-D: variable "pllm" was set but never used
    uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
SYSTEM\system_stm32f4xx.c: 2 warnings, 2 errors
".\Objects\STM32F4XX_templet.axf" - 7 Error(s), 42 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01
废鱼 回答时间:2015-5-28 10:55:22
楼主把工程传上来吧
wyxy163@126.com 回答时间:2015-5-28 10:56:11
提示: 作者被禁止或删除 内容自动屏蔽
废鱼 回答时间:2015-5-28 10:56:12
很多固件库没有调用
kingyufly 回答时间:2015-5-28 11:03:52
数码小叶 发表于 2015-5-28 10:56
错误这么多,果断头文件包含出错了

我昨天刚从st官网上下的,百度了一下,貌似没有这种情况
kingyufly 回答时间:2015-5-28 11:04:37
安 发表于 2015-5-28 10:56
很多固件库没有调用

您是说?我掉了gpio,rcc
废鱼 回答时间:2015-5-28 11:26:50
不光是GPIO这些,是你用到的.还有sysytem里面芯片类型的定义.
kingyufly 回答时间:2015-5-28 11:41:33
貌似文件老传不上去
kingyufly 回答时间:2015-5-28 11:42:25
貌似文件老传不上去
kingyufly 回答时间:2015-5-28 11:44:25
system里我加了core-cm4和sysytem-stm33f4xx
kingyufly 回答时间:2015-5-28 11:46:16
这个事project,大家看看是什么问题

STM32F4XX_templet.rar

下载

4.43 MB, 下载次数: 1, 下载积分: ST金币 -1

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32Cube扩展软件包
意法半导体边缘AI套件
ST - 理想汽车豪华SUV案例
ST意法半导体智能家居案例
STM32 ARM Cortex 32位微控制器
关注我们
st-img 微信公众号
st-img 手机版