广告

原创 【STM32学习心得】和你的认知发生冲突,是一种怎样的体验!

2019-6-17 06:52 358 2 3 分类: 管理

STM32学习心得】和你的认知发生冲突,是一种怎样的体验!

 

在面包板版主 @江畔美少年的帮助下,解决了找不到芯片的问题,我按照步骤,一步一步的建立文件。

 

 

*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Program\Keil_v5\ARM\ARMCC\Bin'

Rebuild target 'Template'

compiling core_cm3.c...

compiling system_stm32f10x.c...

LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\CMSIS\system_stm32f10x.c: 0 warnings, 1 error

compiling stm32f10x_adc.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_adc.c: 0 warnings, 1 error

compiling misc.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\misc.c: 0 warnings, 1 error

compiling stm32f10x_cec.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_cec.c: 0 warnings, 1 error

compiling stm32f10x_can.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_can.c: 0 warnings, 1 error

compiling stm32f10x_bkp.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_bkp.c: 0 warnings, 1 error

compiling stm32f10x_crc.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_crc.c: 0 warnings, 1 error

compiling stm32f10x_dac.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_dac.c: 0 warnings, 1 error

compiling stm32f10x_dbgmcu.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_dbgmcu.c: 0 warnings, 1 error

compiling stm32f10x_dma.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_dma.c: 0 warnings, 1 error

compiling stm32f10x_exti.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_exti.c: 0 warnings, 1 error

compiling stm32f10x_fsmc.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_fsmc.c: 0 warnings, 1 error

compiling stm32f10x_flash.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_flash.c: 0 warnings, 1 error

compiling stm32f10x_gpio.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_gpio.c: 0 warnings, 1 error

compiling stm32f10x_i2c.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_i2c.c: 0 warnings, 1 error

compiling stm32f10x_iwdg.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_iwdg.c: 0 warnings, 1 error

compiling stm32f10x_pwr.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_pwr.c: 0 warnings, 1 error

compiling stm32f10x_rcc.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_rcc.c: 0 warnings, 1 error

compiling stm32f10x_rtc.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_rtc.c: 0 warnings, 1 error

compiling stm32f10x_sdio.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_sdio.c: 0 warnings, 1 error

compiling stm32f10x_spi.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_spi.c: 0 warnings, 1 error

compiling stm32f10x_tim.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_tim.c: 0 warnings, 1 error

compiling stm32f10x_usart.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_usart.c: 0 warnings, 1 error

compiling stm32f10x_wwdg.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\Libraries\FWlib\src\stm32f10x_wwdg.c: 0 warnings, 1 error

compiling stm32f10x_it.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\User\stm32f10x_it.c: 0 warnings, 1 error

compiling main.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\User\main.c: 0 warnings, 1 error

compiling bsp_led.c...

.\LED\Libraries\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory

    #include "stm32f10x_conf.h"

LED\User\led\bsp_led.c: 0 warnings, 1 error

".\LED\Output\LED.axf" - 27 Error(s), 0 Warning(s).

Target not created.

Build Time Elapsed:  00:00:02

 

运行之后发现了一个非常大的问题,就是好多的文件打不开,我的第一反应就是:文件的目录没有包含进来,我就按照这个思路来找问题。发现每一行的错误信息都包含LED\Libraries\CMSIS\,那我就加载这个文件。

 

*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Program\Keil_v5\ARM\ARMCC\Bin'

Rebuild target 'Template'

compiling system_stm32f10x.c...

compiling misc.c...

compiling core_cm3.c...

compiling stm32f10x_cec.c...

compiling stm32f10x_can.c...

compiling stm32f10x_adc.c...

compiling stm32f10x_bkp.c...

compiling stm32f10x_dbgmcu.c...

compiling stm32f10x_crc.c...

compiling stm32f10x_dma.c...

compiling stm32f10x_dac.c...

compiling stm32f10x_exti.c...

compiling stm32f10x_fsmc.c...

compiling stm32f10x_flash.c...

compiling stm32f10x_gpio.c...

compiling stm32f10x_iwdg.c...

compiling stm32f10x_pwr.c...

compiling stm32f10x_i2c.c...

compiling stm32f10x_rtc.c...

compiling stm32f10x_rcc.c...

compiling stm32f10x_sdio.c...

compiling stm32f10x_spi.c...

compiling stm32f10x_wwdg.c...

compiling stm32f10x_it.c...

compiling stm32f10x_usart.c...

compiling bsp_led.c...

compiling main.c...

LED\User\main.c(37): warning:  #223-D: function "Delay" declared implicitly

      Delay(0x0FFFFF);

LED\User\main.c: 1 warning, 0 errors

compiling stm32f10x_tim.c...

compiling core_cm3.c...

compiling system_stm32f10x.c...

linking...

.\LED\Output\LED.axf: Error: L6200E: Symbol __get_PSP multiply defined (by core_cm3_1.o and core_cm3.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol __set_PSP multiply defined (by core_cm3_1.o and core_cm3.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol __get_MSP multiply defined (by core_cm3_1.o and core_cm3.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol __set_MSP multiply defined (by core_cm3_1.o and core_cm3.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol __REV16 multiply defined (by core_cm3_1.o and core_cm3.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol __REVSH multiply defined (by core_cm3_1.o and core_cm3.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol SystemCoreClock multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol AHBPrescTable multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol SystemCoreClockUpdate multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).

.\LED\Output\LED.axf: Error: L6200E: Symbol SystemInit multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).

Not enough information to list image symbols.

Not enough information to list load addresses in the image map.

Finished: 2 information, 0 warning and 10 error messages.

".\LED\Output\LED.axf" - 10 Error(s), 1 Warning(s).

Target not created.

Build Time Elapsed:  00:00:02

 

加载完之后发现了这个问题,在百度上搜索之后,发现是led.cmain.c文件中重复定义了Delay函数,但是我没有找到led.c中的文件有delay函数。可能这个错误不是这个原因引起的。

参考了UFUN里面的设置的文件,我发现是这样的,我也想问一下,这样设置有什么好处?为什么要这么设置。谢谢!!!


作者: curton, 来源:面包板社区

链接: https://www.mianbaoban.cn/blog/uid-me-3876349.html

版权声明:本文为博主原创,未经本人允许,禁止转载!

广告

文章评论 2条评论)

登录后参与讨论

dkjggger 2019-6-17 16:15

学习了

eeNick 2019-6-17 09:05

感谢分享
相关推荐阅读
curton 2019-07-09 11:00
中国的制造业怎么了?
  因为我是从事教育行业的,对于招生比较信息比较敏感,最近大家都在听说的100万扩招的事情,不知道大家是怎么觉得的,以教育的观点来看,就是迎合“中国制造2025”,关键点是升级...
curton 2019-07-07 15:13
惊!史上最高分数?打破它
前几天公布了版主的考核分数,一开始的时候我还是担心我能不能达到考核的标准,因为我对考核的理解还是存在一定的差距的。当分数公布的时候,我竟然发现,我192分,有点小惭愧,但是我看到这个分数后,虽...
curton 2019-07-03 17:14
【STM32学习心得】绝不再忍,这也是一种操作!
 这两天一直忙着研究我的板子了,没有来面包板报到。今天特地签到打卡。顺便向各位管理员和版主问好。   前段在各位版主的帮助下,顺利的实现了一个程序的编译和下载。...
curton 2019-06-20 16:17
【STM32学习心得】千呼万唤始出来,最美不过面包板!
  这两天一直忙着项目的答辩了,没有来面包板报到。今天特地签到打卡。顺便向各位管理员和版主问好。   中午看到大家都休息了,就我自己一个人在办公室,拿出心仪的板子...
curton 2019-06-17 16:28
【STM32学习心得】只有看到这张图了,你才会大成功!
研究了这么久,问了好多人,查询了好多百度网页,终于得到了让我可以笑一下的图片了。赶紧上传!!!...
我要评论
2
2
广告
关闭 热点推荐上一条 /2 下一条