专家
公告
财富商城
电子网
旗下网站
首页
问题库
专栏
标签库
话题
专家
NEW
门户
发布
提问题
发文章
STM32
关于库文件报错
2019-07-14 17:30
发布
×
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮
站内问答
/
STM32/STM8
9899
8
1038
友情提示:
此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
8条回答
hongliwei
1楼-- · 2019-07-14 21:31
C:/Users/Administrator/Desktop/捕获.PNG
加载中...
hongliwei
2楼-- · 2019-07-14 21:34
报错信息:
*** Using Compiler 'V5.05 update 1 (build 106)', folder: 'E:Keil_v5ARMARMCCBin'
Build target 'STM32F429ZIT'
compiling stm32f4xx_rcc.c...
LIBsrcstm32f4xx_rcc.c(266): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_HSE(RCC_HSE));
LIBsrcstm32f4xx_rcc.c(297): error: #20: identifier "HSE_STARTUP_TIMEOUT" is undefined
} while((startupcounter != HSE_STARTUP_TIMEOUT) && (hsestatus == RESET));
LIBsrcstm32f4xx_rcc.c(322): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue));
LIBsrcstm32f4xx_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(382): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_LSE(RCC_LSE));
LIBsrcstm32f4xx_rcc.c(422): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(545): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(714): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(805): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(823): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(850): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_MCO1SOURCE(RCC_MCO1Source));
LIBsrcstm32f4xx_rcc.c(888): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_MCO2SOURCE(RCC_MCO2Source));
LIBsrcstm32f4xx_rcc.c(1084): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource));
LIBsrcstm32f4xx_rcc.c(1084): warning: #223-D: function "IS_RCC_SYSCLK_SOURCE" declared implicitly
assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource));
LIBsrcstm32f4xx_rcc.c(1138): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_HCLK(RCC_SYSCLK));
LIBsrcstm32f4xx_rcc.c(1170): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PCLK(RCC_HCLK));
LIBsrcstm32f4xx_rcc.c(1201): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PCLK(RCC_HCLK));
LIBsrcstm32f4xx_rcc.c(1261): error: #20: identifier "HSI_VALUE" is undefined
RCC_Clocks->SYSCLK_Frequency = HSI_VALUE;
LIBsrcstm32f4xx_rcc.c(1264): error: #20: identifier "HSE_VALUE" is undefined
RCC_Clocks->SYSCLK_Frequency = HSE_VALUE;
LIBsrcstm32f4xx_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource));
LIBsrcstm32f4xx_rcc.c(1436): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(1453): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(1648): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(RCC_PLLI2SDivQ));
LIBsrcstm32f4xx_rcc.c(1680): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(RCC_PLLSAIDivQ));
LIBsrcstm32f4xx_rcc.c(1716): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLSAI_DIVR_VALUE(RCC_PLLSAIDivR));
LIBsrcstm32f4xx_rcc.c(1751): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_TIMCLK_PRESCALER(RCC_TIMCLKPrescaler));
LIBsrcstm32f4xx_rcc.c(1793): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_CLOCK_PERIPH(RCC_AHB1Periph));
LIBsrcstm32f4xx_rcc.c(1825): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIBsrcstm32f4xx_rcc.c(1911): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
LIBsrcstm32f4xx_rcc.c(1957): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph));
LIBsrcstm32f4xx_rcc.c(1999): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_RESET_PERIPH(RCC_AHB1Periph));
LIBsrcstm32f4xx_rcc.c(2028): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIBsrcstm32f4xx_rcc.c(2108): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
LIBsrcstm32f4xx_rcc.c(2150): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_RESET_PERIPH(RCC_APB2Periph));
LIBsrcstm32f4xx_rcc.c(2199): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_LPMODE_PERIPH(RCC_AHB1Periph));
LIBsrcstm32f4xx_rcc.c(2231): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIBsrcstm32f4xx_rcc.c(2317): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
LIBsrcstm32f4xx_rcc.c(2363): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph));
LIBsrcstm32f4xx_rcc.c(2387): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_LSE_MODE(RCC_Mode));
LIBsrcstm32f4xx_rcc.c(2391): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined
SET_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
LIBsrcstm32f4xx_rcc.c(2395): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined
CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
LIBsrcstm32f4xx_rcc.c(2585): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_IT(RCC_IT));
LIBsrcstm32f4xx_rcc.c(2626): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_FLAG(RCC_FLAG));
LIBsrcstm32f4xx_rcc.c(2689): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_GET_IT(RCC_IT));
LIBsrcstm32f4xx_rcc.c(2721): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_CLEAR_IT(RCC_IT));
LIBsrcstm32f4xx_rcc.c: 40 warnings, 5 errors
compiling system_stm32f4xx.c...
SYSTEMsystem_stm32f4xx.c(564): error: #20: identifier "HSI_VALUE" is undefined
SystemCoreClock = HSI_VALUE;
SYSTEMsystem_stm32f4xx.c(567): error: #20: identifier "HSE_VALUE" is undefined
SystemCoreClock = HSE_VALUE;
SYSTEMsystem_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;
SYSTEMsystem_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;
SYSTEMsystem_stm32f4xx.c: 2 warnings, 2 errors
".ObjectsSTM32F4XX_templet.axf" - 7 Error(s), 42 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
加载中...
TOPCB
3楼-- · 2019-07-15 02:29
楼主把工程传上来吧
加载中...
youxi8745
4楼-- · 2019-07-15 08:26
错误这么多,果断头文件包含出错了
加载中...
TOPCB
5楼-- · 2019-07-15 09:03
精彩回答 2 元偷偷看……
加载中...
hongliwei
6楼-- · 2019-07-15 10:44
youxi8745 发表于 2018-9-24 07:31
错误这么多,果断头文件包含出错了
我昨天刚从st官网上下的,百度了一下,貌似没有这种情况
加载中...
1
2
下一页
一周热门
更多
>
相关问题
STM32F4上I2C(在PROTEUS中模拟)调试不通的问题
6 个回答
芯片供应紧张,准备换个MCU,MM32L系列替换STM32L系列的怎么样?
7 个回答
STM32同时使用两个串口进行数据收发时数据丢包的问题
5 个回答
STM32F103串口通信死机问题
4 个回答
STM32WLE5CC连接SX1268在LoRa模式下能与 SX1278互通吗?
2 个回答
STM32开发板免费用活动
7 个回答
stm32 处理 DHT11占用太多时间,大家程序是怎么设计的
8 个回答
分享一个STM32单片机做的离线编程器代码
9 个回答
相关文章
ST公司第一款无线低功耗单片机模块有效提高物联网设计生产效率
0个评论
如何实现对单片机寄存器的访问
0个评论
通过USB用STM32片内自带Bootloader下载程序及注意事项
0个评论
欲练此功必先自宫之STM32汇编启动,放慢是为了更好的前行
0个评论
×
关闭
采纳回答
向帮助了您的网友说句感谢的话吧!
非常感谢!
确 认
×
关闭
编辑标签
最多设置5个标签!
STM32
保存
关闭
×
关闭
举报内容
检举类型
检举内容
检举用户
检举原因
广告推广
恶意灌水
回答内容与提问无关
抄袭答案
其他
检举说明(必填)
提交
关闭
×
关闭
您已邀请
15
人回答
查看邀请
擅长该话题的人
回答过该话题的人
我关注的人
*** Using Compiler 'V5.05 update 1 (build 106)', folder: 'E:Keil_v5ARMARMCCBin'
Build target 'STM32F429ZIT'
compiling stm32f4xx_rcc.c...
LIBsrcstm32f4xx_rcc.c(266): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_HSE(RCC_HSE));
LIBsrcstm32f4xx_rcc.c(297): error: #20: identifier "HSE_STARTUP_TIMEOUT" is undefined
} while((startupcounter != HSE_STARTUP_TIMEOUT) && (hsestatus == RESET));
LIBsrcstm32f4xx_rcc.c(322): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue));
LIBsrcstm32f4xx_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(382): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_LSE(RCC_LSE));
LIBsrcstm32f4xx_rcc.c(422): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(545): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(714): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(805): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(823): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(850): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_MCO1SOURCE(RCC_MCO1Source));
LIBsrcstm32f4xx_rcc.c(888): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_MCO2SOURCE(RCC_MCO2Source));
LIBsrcstm32f4xx_rcc.c(1084): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource));
LIBsrcstm32f4xx_rcc.c(1084): warning: #223-D: function "IS_RCC_SYSCLK_SOURCE" declared implicitly
assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource));
LIBsrcstm32f4xx_rcc.c(1138): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_HCLK(RCC_SYSCLK));
LIBsrcstm32f4xx_rcc.c(1170): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PCLK(RCC_HCLK));
LIBsrcstm32f4xx_rcc.c(1201): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PCLK(RCC_HCLK));
LIBsrcstm32f4xx_rcc.c(1261): error: #20: identifier "HSI_VALUE" is undefined
RCC_Clocks->SYSCLK_Frequency = HSI_VALUE;
LIBsrcstm32f4xx_rcc.c(1264): error: #20: identifier "HSE_VALUE" is undefined
RCC_Clocks->SYSCLK_Frequency = HSE_VALUE;
LIBsrcstm32f4xx_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource));
LIBsrcstm32f4xx_rcc.c(1436): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(1453): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
LIBsrcstm32f4xx_rcc.c(1648): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(RCC_PLLI2SDivQ));
LIBsrcstm32f4xx_rcc.c(1680): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(RCC_PLLSAIDivQ));
LIBsrcstm32f4xx_rcc.c(1716): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLSAI_DIVR_VALUE(RCC_PLLSAIDivR));
LIBsrcstm32f4xx_rcc.c(1751): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_TIMCLK_PRESCALER(RCC_TIMCLKPrescaler));
LIBsrcstm32f4xx_rcc.c(1793): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_CLOCK_PERIPH(RCC_AHB1Periph));
LIBsrcstm32f4xx_rcc.c(1825): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIBsrcstm32f4xx_rcc.c(1911): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
LIBsrcstm32f4xx_rcc.c(1957): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph));
LIBsrcstm32f4xx_rcc.c(1999): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_RESET_PERIPH(RCC_AHB1Periph));
LIBsrcstm32f4xx_rcc.c(2028): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIBsrcstm32f4xx_rcc.c(2108): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
LIBsrcstm32f4xx_rcc.c(2150): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_RESET_PERIPH(RCC_APB2Periph));
LIBsrcstm32f4xx_rcc.c(2199): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_LPMODE_PERIPH(RCC_AHB1Periph));
LIBsrcstm32f4xx_rcc.c(2231): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
LIBsrcstm32f4xx_rcc.c(2317): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
LIBsrcstm32f4xx_rcc.c(2363): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph));
LIBsrcstm32f4xx_rcc.c(2387): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_LSE_MODE(RCC_Mode));
LIBsrcstm32f4xx_rcc.c(2391): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined
SET_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
LIBsrcstm32f4xx_rcc.c(2395): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined
CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
LIBsrcstm32f4xx_rcc.c(2585): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_IT(RCC_IT));
LIBsrcstm32f4xx_rcc.c(2626): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_FLAG(RCC_FLAG));
LIBsrcstm32f4xx_rcc.c(2689): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_GET_IT(RCC_IT));
LIBsrcstm32f4xx_rcc.c(2721): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_CLEAR_IT(RCC_IT));
LIBsrcstm32f4xx_rcc.c: 40 warnings, 5 errors
compiling system_stm32f4xx.c...
SYSTEMsystem_stm32f4xx.c(564): error: #20: identifier "HSI_VALUE" is undefined
SystemCoreClock = HSI_VALUE;
SYSTEMsystem_stm32f4xx.c(567): error: #20: identifier "HSE_VALUE" is undefined
SystemCoreClock = HSE_VALUE;
SYSTEMsystem_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;
SYSTEMsystem_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;
SYSTEMsystem_stm32f4xx.c: 2 warnings, 2 errors
".ObjectsSTM32F4XX_templet.axf" - 7 Error(s), 42 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
我昨天刚从st官网上下的,百度了一下,貌似没有这种情况
一周热门 更多>