【MCU实战经验】基于STM32F103C8T6的hart总线调试器设计
求教STM32F103进入STOP模式后用外部中断唤醒的问题
基于STM32F103RCT6的无源蜂鸣器音乐播放(生日快乐歌)
STM32F103c8t6有没有DAC 功能?
STM32F103x中文数据手册
新手求教,为何在我电脑上找不到STM32F1Xx.h文件
金龙107例程汇总(STM32F107)
万利STM32F107VC 原理图
STM32F103 ADC多通道检测必须要DMA吗?
【官方例程】STM32F107以太网官方例程
RE:STM32F103的keil工程如何创建
或者直接把工程打包。
RE:STM32F103的keil工程如何创建
回复:STM32F103的keil工程如何创建
你把错误信息贴出来我才能帮你!
或者直接把工程打包。
word文档内为工程文件截图
æ°å»º Microsoft Word ææ¡£.doc
2011-6-9 22:28 上传
点击文件名下载附件
27 KB, 下载次数: 57
回复:STM32F103的keil工程如何创建
你把错误信息贴出来我才能帮你!
或者直接把工程打包。
错误信息:
Build target 'NO1'
compiling core_cm3.c...
compiling system_stm32f10x.c...
Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "lease select first the target STM32F10x device used in your application (in stm32f10x.h file)"
compiling main.c...
User\main.c(42): warning: #188-D: enumerated type mixed with another type
User\main.c(43): warning: #188-D: enumerated type mixed with another type
User\main.c(44): warning: #188-D: enumerated type mixed with another type
User\main.c(45): warning: #188-D: enumerated type mixed with another type
User\main.c(30): warning: #177-D: variable "key" was declared but never referenced
User\main.c(31): warning: #177-D: variable "flag" was declared but never referenced
compiling stm32f10x_it.c...
compiling misc.c...
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(99): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(117): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(159): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(178): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(202): warning: #223-D: function "assert_param" declared implicitly
compiling stm32f10x_gpio.c...
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(111): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(178): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(286): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(308): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(324): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(346): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(361): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(377): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(397): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(420): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(437): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(486): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(554): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(559): error: #136: struct "" has no field "MAPR2"
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(593): error: #136: struct "" has no field "MAPR2"
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(613): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(632): warning: #223-D: function "assert_param" declared implicitly
compiling stm32f10x_rcc.c...
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(273): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(315): error: #20: identifier "HSE_STARTUP_TIMEOUT" is undefined
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(338): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(383): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(404): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(431): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(459): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(484): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(508): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(528): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(550): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(568): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(612): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(638): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(664): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(703): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(749): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(770): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(795): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(814): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(832): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(865): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(882): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(896): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(926): error: #20: identifier "HSI_VALUE" is undefined
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(929): error: #20: identifier "HSE_VALUE" is undefined
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1067): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1098): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1129): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1156): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1188): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1219): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1240): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1253): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1285): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1332): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1451): warning: #223-D: function "assert_param" declared implicitly
assembling startup_stm32f10x_hd.s...
assembling startup_stm32f10x_cl.s...
Target not created
回复:STM32F103的keil工程如何创建
我的博客里面有如何建立工程及一些注意事项,你可以按照建立一次,如果有错误信息,希望把内容贴出来,我们帮你解决。
错误信息:
Build target 'NO1'
compiling core_cm3.c...
compiling system_stm32f10x.c...
Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "lease select first the target STM32F10x device used in your application (in stm32f10x.h file)"
compiling main.c...
User\main.c(42): warning: #188-D: enumerated type mixed with another type
User\main.c(43): warning: #188-D: enumerated type mixed with another type
User\main.c(44): warning: #188-D: enumerated type mixed with another type
User\main.c(45): warning: #188-D: enumerated type mixed with another type
User\main.c(30): warning: #177-D: variable "key" was declared but never referenced
User\main.c(31): warning: #177-D: variable "flag" was declared but never referenced
compiling stm32f10x_it.c...
compiling misc.c...
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(99): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(117): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(159): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(178): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\misc.c(202): warning: #223-D: function "assert_param" declared implicitly
compiling stm32f10x_gpio.c...
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(111): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(178): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(286): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(308): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(324): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(346): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(361): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(377): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(397): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(420): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(437): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(486): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(554): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(559): error: #136: struct "" has no field "MAPR2"
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(593): error: #136: struct "" has no field "MAPR2"
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(613): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(632): warning: #223-D: function "assert_param" declared implicitly
compiling stm32f10x_rcc.c...
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(273): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(315): error: #20: identifier "HSE_STARTUP_TIMEOUT" is undefined
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(338): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(383): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(404): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(431): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(459): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(484): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(508): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(528): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(550): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(568): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(612): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(638): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(664): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(703): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(749): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(770): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(795): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(814): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(832): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(865): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(882): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(896): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(926): error: #20: identifier "HSI_VALUE" is undefined
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(929): error: #20: identifier "HSE_VALUE" is undefined
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1067): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1098): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1129): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1156): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1188): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1219): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1240): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1253): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1285): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1332): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly
Lib\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c(1451): warning: #223-D: function "assert_param" declared implicitly
assembling startup_stm32f10x_hd.s...
assembling startup_stm32f10x_cl.s...
Target not created
回复:STM32F103的keil工程如何创建
我用的是3.1.2的库,keil的版本是4.
错误是:
main.c(23): error: #5: cannot open source input file "stm32_eval.h": No such file or directory
main.c: #include "stm32_eval.h"
main.c: ^
main.c: main.c: 0 warnings, 1 error
main()函数是直接从固件库的Template中复制的,希望大侠解答。
非常感谢!!
RE:STM32F103的keil工程如何创建
RE:STM32F103的keil工程如何创建