求助,看了原子哥的mdk,v5版遇到问题了

查看: 2286|回复: 8
紧急求教原子哥,keil mdk 安装不了了?
主题帖子精华
初级会员, 积分 161, 距离下一级还需 39 积分
在线时间4 小时
编译器有问题所以就卸载了,再安提示说 &cannot load license.rtf
如何解决。 先谢谢了
牛逼死了,牛还活着吗?
主题帖子精华
初级会员, 积分 83, 距离下一级还需 117 积分
在线时间0 小时
给你个网址,我最近才安装的,这个不会有问题的。MDK4.20版本&
/down/Software.asp?ID=
主题帖子精华
初级会员, 积分 161, 距离下一级还需 39 积分
在线时间4 小时
回复【2楼】wjx_sty:
---------------------------------
多谢了&已经换了N多版本还是一样的问题
牛逼死了,牛还活着吗?
主题帖子精华
初级会员, 积分 83, 距离下一级还需 117 积分
在线时间0 小时
那还得高手指教了,我之前用的3.8总有问题,换成4.2的就好了。
主题帖子精华
金牌会员, 积分 1659, 距离下一级还需 1341 积分
在线时间199 小时
应该是没破解吧
态度决定一切 四人行
主题帖子精华
初级会员, 积分 161, 距离下一级还需 39 积分
在线时间4 小时
回复【5楼】冰封嗜魔:
---------------------------------
连安装界面都进不去,卡在输入信息那了。
牛逼死了,牛还活着吗?
主题帖子精华
金牌会员, 积分 1659, 距离下一级还需 1341 积分
在线时间199 小时
额&那就是电脑问题了&&重做下系统呗&&30分钟就能搞定
态度决定一切 四人行
主题帖子精华
初级会员, 积分 161, 距离下一级还需 39 积分
在线时间4 小时
回复【7楼】冰封嗜魔:
额&那就是电脑问题了&&重做下系统呗&&30分钟就能搞定
---------------------------------
恩&多谢了,系统还原了,还是以前的老版本,感觉这个版本有问题,但是其他的又都安不上。悲催。
牛逼死了,牛还活着吗?
主题帖子精华
金牌会员, 积分 1659, 距离下一级还需 1341 积分
在线时间199 小时
恩&&别升级了
态度决定一切 四人行
Powered by查看: 446|回复: 7
原子哥是怎么把MDK5学透的啊。。。有资料吗
主题帖子精华
新手上路, 积分 12, 距离下一级还需 38 积分
在线时间0 小时
主题帖子精华
金牌会员, 积分 2704, 距离下一级还需 296 积分
在线时间289 小时
1.jpg (102.55 KB, 下载次数: 0)
03:56 上传
坚持使用寄存器,拒绝重复造轮子。
主题帖子精华
金牌会员, 积分 1541, 距离下一级还需 1459 积分
在线时间394 小时
。。。。学透一个软件干嘛?
主题帖子精华
中级会员, 积分 362, 距离下一级还需 138 积分
在线时间150 小时
用到哪里,就学到哪里。
主题帖子精华
中级会员, 积分 266, 距离下一级还需 234 积分
在线时间182 小时
干嘛要学透?经常用,用熟了就可以啦
主题帖子精华
金牌会员, 积分 1147, 距离下一级还需 1853 积分
在线时间142 小时
MDK只是个工具罢了。。。。何必去研究。。
主题帖子精华
初级会员, 积分 133, 距离下一级还需 67 积分
在线时间25 小时
主题帖子精华
高级会员, 积分 540, 距离下一级还需 460 积分
在线时间78 小时
天天用就透了
Powered by查看: 1914|回复: 8
原子哥的源程序在keil5下编译报错
主题帖子精华
初级会员, 积分 67, 距离下一级还需 133 积分
在线时间4 小时
原子哥的源程序,没有任何改动,我在keil mdk5下打开的时候,编译,显示通过。然后,我改了一下设备,将ZE改成了C8或者CB,就出现了编译错误。请问需要怎么改动设备啊。
compiling main.c...
stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
main.c: 1 warning, 1 error
compiling stm32f10x_it.c...
stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
stm32f10x_it.c: 1 warning, 1 error
compiling system_stm32f10x.c...
stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
system_stm32f10x.c: 1 warning, 1 error
compiling misc.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\misc.c: 1 warning, 1 error
compiling stm32f10x_adc.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_adc.c: 1 warning, 1 error
compiling stm32f10x_bkp.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_bkp.c: 1 warning, 1 error
compiling stm32f10x_can.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_can.c: 1 warning, 1 error
compiling stm32f10x_cec.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_cec.c: 1 warning, 1 error
compiling stm32f10x_crc.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_crc.c: 1 warning, 1 error
compiling stm32f10x_dac.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_dac.c: 1 warning, 1 error
compiling stm32f10x_dbgmcu.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_dbgmcu.c: 1 warning, 1 error
compiling stm32f10x_dma.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_dma.c: 1 warning, 1 error
compiling stm32f10x_exti.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_exti.c: 1 warning, 1 error
compiling stm32f10x_flash.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_flash.c: 1 warning, 1 error
compiling stm32f10x_fsmc.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_fsmc.c: 1 warning, 1 error
compiling stm32f10x_gpio.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_gpio.c: 1 warning, 1 error
compiling stm32f10x_i2c.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_i2c.c: 1 warning, 1 error
compiling stm32f10x_iwdg.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_iwdg.c: 1 warning, 1 error
compiling stm32f10x_pwr.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_pwr.c: 1 warning, 1 error
compiling stm32f10x_rcc.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_rcc.c: 1 warning, 1 error
compiling stm32f10x_rtc.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_rtc.c: 1 warning, 1 error
compiling stm32f10x_sdio.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_sdio.c: 1 warning, 1 error
compiling stm32f10x_spi.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_spi.c: 1 warning, 1 error
compiling stm32f10x_tim.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_tim.c: 1 warning, 1 error
compiling stm32f10x_usart.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_usart.c: 1 warning, 1 error
compiling stm32f10x_wwdg.c...
..\user\stm32f10x.h(298): error:&&#67: expected a &}&
& & ADC1_2_IRQn& && && && && &&&= 18,& &&&/*!& ADC1 and ADC2 global Interrupt& && && && && && && &&&*/
..\user\stm32f10x.h(472): warning:&&#12-D: parsing restarts here after previous syntax error
&&} IRQn_T
..\fwlib\src\stm32f10x_wwdg.c: 1 warning, 1 error
compiling core_cm3.c...
assembling startup_stm32f10x_md.s...
&..\obj\templete11.axf& - 26 Error(s), 26 Warning(s).
Target not created
解决方法,在keil4中不会遇到的问题,在keil5下面,由于define等原因,会造成符号报错。两种方法解决。
1. 直接删掉C/C++中define里面对芯片的定义
2. 选择正确的启动文件(大容量的启动文件对低容量的芯片是兼容的,所以,在芯片型号从大容量改成低容量的时候,可以直接用第一种方法)
主题帖子精华
初级会员, 积分 67, 距离下一级还需 133 积分
在线时间4 小时
解决方法,在keil4中不会遇到的问题,在keil5下面,由于define等原因,会造成符号报错。两种方法解决。
1. 直接删掉C/C++中define里面对芯片的定义
2. 选择正确的启动文件(大容量的启动文件对低容量的芯片是兼容的,所以,在芯片型号从大容量改成低容量的时候,可以直接用第一种方法)
主题帖子精华
在线时间780 小时
FLASH的容量不同
说句实话,虽然难听,但是真的很烦不会爬,就跑,出了问题,还直接伸手的
道不同,不相与为谋
主题帖子精华
在线时间266 小时
启动文件也要改
主题帖子精华
初级会员, 积分 67, 距离下一级还需 133 积分
在线时间4 小时
FLASH的容量不同
说句实话,虽然难听,但是真的很烦不会爬,就跑,出了问题,还直接伸手的
真是潇洒,我想你可能只知其一不知其二吧,试着在keil4下编译试试,keil4是会忽略内存大小这个问题直接通过的。
我也不想说什么,至于我是该爬还是该跑,我自有我自己的定位。
主题帖子精华
在线时间780 小时
真是潇洒,我想你可能只知其一不知其二吧,试着在keil4下编译试试,keil4是会忽略内存大小这个问题直接通 ...
呵呵& && &。
道不同,不相与为谋
主题帖子精华
中级会员, 积分 284, 距离下一级还需 216 积分
在线时间27 小时
芯片的容量不同,对应的外设也不一样。低容量的芯片有些外设是没有的,所以你直接修改了芯片型号对应的启动文件也需要修改。程序里有些外设也需要修改~
为人莫作千年计,三十河东四十西,莫欺少年穷。
主题帖子精华
初级会员, 积分 60, 距离下一级还需 140 积分
在线时间11 小时
FLASH的容量不同
说句实话,虽然难听,但是真的很烦不会爬,就跑,出了问题,还直接伸手的
道不同,不相与为谋
主题帖子精华
中级会员, 积分 417, 距离下一级还需 83 积分
在线时间46 小时
启动文件也要改
请问启动文件如何换,要换怎样的?
Powered by查看: 15547|回复: 16
原子哥的例程,用Keil uVision4.54编译出错,这是为什么?
主题帖子精华
初级会员, 积分 58, 距离下一级还需 142 积分
在线时间0 小时
Rebuild target 'Target 1'
assembling STM32F10x.s...
compiling test.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling delay.c...
..\SYSTEM\delay\delay.c(1): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling sys.c...
..\SYSTEM\sys\sys.c(1): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling usart.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling led.c...
..\HARDWARE\LED\led.c(1): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling key.c...
..\HARDWARE\KEY\key.c(1): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling wdg.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling timer.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling ILI93xx.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling rtc.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling wkup.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling adc.c...
..\HARDWARE\ADC\adc.c(1): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling dma.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling 24cxx.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling myiic.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling spi.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling flash.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling 24l01.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling MMC_SD.C...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling remote.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling ds18b20.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling mouse.c...
..\SYSTEM\delay\delay.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling ps2.c...
..\SYSTEM\delay\delay.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling VS10XX.c...
..\HARDWARE\VS10XX\VS10XX.c(1): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling FAT.C...
..\FAT\FAT.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling fontupd.c...
..\TEXT\fontupd.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling text.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling untogb.c...
..\TEXT\untogb.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling mp3player.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling usmart.c...
..\SYSTEM\usart\usart.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling usmart_config.c...
..\SYSTEM\sys\sys.h(3): error:& #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling usmart_str.c...
Target not created
主题帖子精华
新手上路, 积分 35, 距离下一级还需 15 积分
在线时间1 小时
你这个是新装的吧?
4.54?
有这个版本了?
看看你的安装文件,里面应该没有stm32f10x_lib.h这个文件
主题帖子精华
金钱114239
在线时间853 小时
主题帖子精华
中级会员, 积分 444, 距离下一级还需 56 积分
在线时间5 小时
回复【楼主位】jikekeji:
---------------------------------
stm32f10x_lib.h这个文件已经变成stm32f10x.h了。
主题帖子精华
新手上路, 积分 30, 距离下一级还需 20 积分
在线时间1 小时
回复【4楼】syhx8262516:
---------------------------------
stm32f10x_lib.h这个文件变成stm32f10x.h了,那程序应该怎么改呢?
主题帖子精华
金钱114239
在线时间853 小时
回复【5楼】yumennannai:
---------------------------------
把前者改为后者.
我是开源电子网站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺:
微信公众平台:正点原子& &
主题帖子精华
初级会员, 积分 197, 距离下一级还需 3 积分
在线时间28 小时
改完后又出现新的问题:C:\Keil\ARM\Inc\ST\STM32F10x\stm32f10x.h(96):&error:&&#35:&#error&directive:&"Please&select&first&the&target&STM32F10x&device&used&in&your&application&(in&stm32f10x.h&file)"该怎么解决呀?
主题帖子精华
金钱114239
在线时间853 小时
回复【7楼】:
---------------------------------
先在配置选项卡的C/C++选项卡里面,设置你的STM32型号!
我是开源电子网站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺:
微信公众平台:正点原子& &
主题帖子精华
初级会员, 积分 197, 距离下一级还需 3 积分
在线时间28 小时
回复【8楼】正点原子:
---------------------------------
谢谢原子哥
主题帖子精华
新手上路, 积分 21, 距离下一级还需 29 积分
在线时间0 小时
回复【8楼】正点原子:
---------------------------------
原子哥,我也出现了这种情况,但打开C/C++选项卡没发现有配置stm32型号的选项啊
主题帖子精华
金钱114239
在线时间853 小时
定义一个:STM32F10X_MD的宏就可以了
我是开源电子网站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺:
微信公众平台:正点原子& &
主题帖子精华
初级会员, 积分 115, 距离下一级还需 85 积分
在线时间14 小时
回复【11楼】正点原子:
---------------------------------
原子哥,怎么定义,麻烦给个方案!新手
主题帖子精华
金钱114239
在线时间853 小时
回复【12楼】chengqing:
---------------------------------
在C/C++选项卡里面设置。
具体请看我们战舰板的代码/教程。
我是开源电子网站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺:
微信公众平台:正点原子& &
主题帖子精华
新手上路, 积分 24, 距离下一级还需 26 积分
在线时间0 小时
...\Keil\ARM\Pack\Keil\STM32F1xx_DFP\1.0.5\Flash\STM32F10x
mdk5是在这个文件夹里面的吧
主题帖子精华
新手上路, 积分 24, 距离下一级还需 26 积分
在线时间0 小时
解决方法,应该是将头文件处,stm32f10x_lib.h换为stm32f10x.h,同时在工程文件夹下里包含stm32f10x.h,并在在C/C++选项卡里面设置include&path,并且把所在文件夹包含在工程项目下面
主题帖子精华
初级会员, 积分 163, 距离下一级还需 37 积分
在线时间9 小时
可以把缺失的stm32f10x.h放到工程文件目录的sys文件夹下,然后把之前的库头文件换为stm32f10x.h
主题帖子精华
中级会员, 积分 211, 距离下一级还需 289 积分
在线时间30 小时
新手刚开始学,原来define是定义宏的多谢了
Powered by

我要回帖

更多关于 原子哥 的文章

 

随机推荐