初学STM32遇到的一些问题

原文地址::http://blog.csdn.net/sy_lixiang/article/details/8586909


相关文章

1、STM8S单片机EEPROM烧录错误:Verify failed at address 0xXXXX----http://www.51hei.com/bbs/dpj-25357-1.html


1.设置工程时,如果忘记了在C/C++选项卡上设置STM32F10X_HD,USE_STDPEFIPH_DRIVER编译时会报如下的错误

[cpp]  view plain  copy
  1. Build target 'USART'  
  2. compiling stm32f10x_it.c...  
  3. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  4. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  5. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  
  6. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\stm32f10x_it.c: 0 warnings, 1 error  
  7. compiling main.c...  
  8. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  9. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  10. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  
  11. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\main.c: 0 warnings, 1 error  
  12. compiling core_cm3.c...  
  13. compiling system_stm32f10x.c...  
  14. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  15. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  16. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  
  17. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\system_stm32f10x.c: 0 warnings, 1 error  
  18. compiling stm32f10x_usart.c...  
  19. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  20. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  21. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  
  22. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c: 0 warnings, 1 error  
  23. compiling stm32f10x_gpio.c...  
  24. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  25. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  26. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  
  27. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 1 error  
  28. compiling stm32f10x_rcc.c...  
  29. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  30. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"  
  31. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h:     ^  
  32. ..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 1 error  
  33. Target not created  

 

2.要注意新建工程包含库文件的路径是

\Libraries\STM32F10x_StdPeriph_Driver\inc

而不是

\Libraries\STM32F10x_StdPeriph_Driver\src
 

3.Overlapping of Algorithms at Address 08000000H错误

工程设置里,误多添加了下载算法,删除后即可。



//============================================================================================

备注::

1>今天烧写STM32遇到一个新问题----出现data not matching at address 0x80000000,最后把问题找到是烧写的串口线出了问题 ,导致烧完程序再读回验证出了问题。






  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值