专家
公告
财富商城
电子网
旗下网站
首页
问题库
专栏
标签库
话题
专家
NEW
门户
发布
提问题
发文章
STM32
有一点疑问
2019-07-20 19:36
发布
×
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮
站内问答
/
STM32/STM8
12561
7
1215
为什么在system_stm32f4xx.h头文件中的一个语句 extern uint32_t SystemCoreClock中前边有一个x啊?显示没有定义uint32_t什么的 我在前边加上include "stm32f4xx.h" 就没有了,因为顶层头文件里有u32的定义 ,但是加上"sys.h" 就会报错,明明sys.h里边也有stm32f4xx.h啊?这里不是很明白 求解释?
友情提示:
此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
7条回答
正点原子
1楼-- · 2019-07-21 01:10
你这是库函数版本代码。加库函数版本的sys.h才可以。
加载中...
初学者要变大师
2楼-- · 2019-07-21 06:42
加入sys.h报错 是说在编译过程中报错了 当然什么都不加的话 即使有x也能编译通过 很奇怪啊
加载中...
正点原子
3楼-- · 2019-07-21 09:13
加入sys.h,看报什么错,根据报错提示去修改
加载中...
初学者要变大师
4楼-- · 2019-07-21 13:11
正点原子 发表于 2016-10-12 20:22
加入sys.h,看报什么错,根据报错提示去修改
这个报错我不是很懂
Build target 'Template'
compiling main.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
main.c: 0 warnings, 1 error
compiling stm32f4xx_it.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
stm32f4xx_it.c: 0 warnings, 1 error
compiling system_stm32f4xx.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
system_stm32f4xx.c: 0 warnings, 1 error
assembling startup_stm32f40_41xxx.s...
compiling misc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcmisc.c: 0 warnings, 1 error
compiling stm32f4xx_adc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_adc.c: 0 warnings, 1 error
compiling stm32f4xx_can.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_can.c: 0 warnings, 1 error
compiling stm32f4xx_crc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_crc.c: 0 warnings, 1 error
compiling stm32f4xx_cryp.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_cryp.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_aes.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_cryp_aes.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_des.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_cryp_des.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_tdes.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_cryp_tdes.c: 0 warnings, 1 error
compiling stm32f4xx_dac.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dac.c: 0 warnings, 1 error
compiling stm32f4xx_dbgmcu.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dbgmcu.c: 0 warnings, 1 error
compiling stm32f4xx_dcmi.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dcmi.c: 0 warnings, 1 error
compiling stm32f4xx_dma2d.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dma2d.c: 0 warnings, 1 error
compiling stm32f4xx_dma.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dma.c: 0 warnings, 1 error
compiling stm32f4xx_exti.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_exti.c: 0 warnings, 1 error
compiling stm32f4xx_flash.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_flash.c: 0 warnings, 1 error
compiling stm32f4xx_flash_ramfunc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_flash_ramfunc.c: 0 warnings, 1 error
compiling stm32f4xx_fsmc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_fsmc.c: 0 warnings, 1 error
compiling stm32f4xx_gpio.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hash.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_hash.c: 0 warnings, 1 error
compiling stm32f4xx_hash_md5.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_hash_md5.c: 0 warnings, 1 error
compiling stm32f4xx_hash_sha1.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_hash_sha1.c: 0 warnings, 1 error
compiling stm32f4xx_i2c.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_i2c.c: 0 warnings, 1 error
compiling stm32f4xx_iwdg.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_iwdg.c: 0 warnings, 1 error
compiling stm32f4xx_ltdc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_ltdc.c: 0 warnings, 1 error
compiling stm32f4xx_pwr.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_pwr.c: 0 warnings, 1 error
compiling stm32f4xx_rcc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_rcc.c: 0 warnings, 1 error
compiling stm32f4xx_rng.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_rng.c: 0 warnings, 1 error
compiling stm32f4xx_rtc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_rtc.c: 0 warnings, 1 error
compiling stm32f4xx_sai.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_sai.c: 0 warnings, 1 error
compiling stm32f4xx_sdio.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_sdio.c: 0 warnings, 1 error
compiling stm32f4xx_spi.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_spi.c: 0 warnings, 1 error
compiling stm32f4xx_syscfg.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_syscfg.c: 0 warnings, 1 error
compiling stm32f4xx_tim.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_tim.c: 0 warnings, 1 error
compiling stm32f4xx_usart.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_usart.c: 0 warnings, 1 error
compiling stm32f4xx_wwdg.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_wwdg.c: 0 warnings, 1 error
加载中...
初学者要变大师
5楼-- · 2019-07-21 14:12
精彩回答 2 元偷偷看……
加载中...
烟酒不沾
6楼-- · 2019-07-21 20:10
精彩回答 2 元偷偷看……
加载中...
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
人回答
查看邀请
擅长该话题的人
回答过该话题的人
我关注的人
这个报错我不是很懂
Build target 'Template'
compiling main.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
main.c: 0 warnings, 1 error
compiling stm32f4xx_it.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
stm32f4xx_it.c: 0 warnings, 1 error
compiling system_stm32f4xx.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
system_stm32f4xx.c: 0 warnings, 1 error
assembling startup_stm32f40_41xxx.s...
compiling misc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcmisc.c: 0 warnings, 1 error
compiling stm32f4xx_adc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_adc.c: 0 warnings, 1 error
compiling stm32f4xx_can.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_can.c: 0 warnings, 1 error
compiling stm32f4xx_crc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_crc.c: 0 warnings, 1 error
compiling stm32f4xx_cryp.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_cryp.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_aes.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_cryp_aes.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_des.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_cryp_des.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_tdes.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_cryp_tdes.c: 0 warnings, 1 error
compiling stm32f4xx_dac.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dac.c: 0 warnings, 1 error
compiling stm32f4xx_dbgmcu.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dbgmcu.c: 0 warnings, 1 error
compiling stm32f4xx_dcmi.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dcmi.c: 0 warnings, 1 error
compiling stm32f4xx_dma2d.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dma2d.c: 0 warnings, 1 error
compiling stm32f4xx_dma.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_dma.c: 0 warnings, 1 error
compiling stm32f4xx_exti.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_exti.c: 0 warnings, 1 error
compiling stm32f4xx_flash.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_flash.c: 0 warnings, 1 error
compiling stm32f4xx_flash_ramfunc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_flash_ramfunc.c: 0 warnings, 1 error
compiling stm32f4xx_fsmc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_fsmc.c: 0 warnings, 1 error
compiling stm32f4xx_gpio.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hash.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_hash.c: 0 warnings, 1 error
compiling stm32f4xx_hash_md5.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_hash_md5.c: 0 warnings, 1 error
compiling stm32f4xx_hash_sha1.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_hash_sha1.c: 0 warnings, 1 error
compiling stm32f4xx_i2c.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_i2c.c: 0 warnings, 1 error
compiling stm32f4xx_iwdg.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_iwdg.c: 0 warnings, 1 error
compiling stm32f4xx_ltdc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_ltdc.c: 0 warnings, 1 error
compiling stm32f4xx_pwr.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_pwr.c: 0 warnings, 1 error
compiling stm32f4xx_rcc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_rcc.c: 0 warnings, 1 error
compiling stm32f4xx_rng.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_rng.c: 0 warnings, 1 error
compiling stm32f4xx_rtc.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_rtc.c: 0 warnings, 1 error
compiling stm32f4xx_sai.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_sai.c: 0 warnings, 1 error
compiling stm32f4xx_sdio.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_sdio.c: 0 warnings, 1 error
compiling stm32f4xx_spi.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_spi.c: 0 warnings, 1 error
compiling stm32f4xx_syscfg.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_syscfg.c: 0 warnings, 1 error
compiling stm32f4xx_tim.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_tim.c: 0 warnings, 1 error
compiling stm32f4xx_usart.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_usart.c: 0 warnings, 1 error
compiling stm32f4xx_wwdg.c...
..SYSTEMsyssys.h(86): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
..FWLIBsrcstm32f4xx_wwdg.c: 0 warnings, 1 error
一周热门 更多>