你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

新手调试程序问题求答!!!

[复制链接]
Zoyee.L 提问时间:2013-7-16 11:33 /
 
            新手刚学Cotex-M3,我用的是STM32F103VET6的开发板,在IAR Embedded Workbench环境下编写程序,今天编了个程序,编译时出现
            Fatal Error[Pe035]: #error directive: &quotlease select first the target STM32F10x device used in your application (in stm32f10x.h file)
            
            这个错误,双击出来显示这个

             1.jpg
            网上的人解决方法是在
             2.jpg
            definded symbols那栏将TM32F10X_HD和USE_STDPERIPH_DRIVER填上去,由于STM32F103VET6是512K闪存的,所以第一个我填的是TM32F10X_HD高密度,但编译后仍然是这个错误,求老师们解答下!!
            
收藏 评论1 发布时间:2013-7-16 11:33

举报

1个回答
pythonworld 回答时间:2014-4-3 14:32:58

回复:新手调试程序问题求答!!!

 /* Uncomment the line below according to the target STM32 device used in your
   application 
  */
 
#if !defined (STM32F10X_LD) && !defined (STM32F10X_LD_VL) && !defined (STM32F10X_MD) && !defined (STM32F10X_MD_VL) && !defined (STM32F10X_HD) && !defined (STM32F10X_HD_VL) && !defined (STM32F10X_XL) && !defined (STM32F10X_CL) 
  /* #define STM32F10X_LD */     /*!< STM32F10X_LD: STM32 Low density devices */
  /* #define STM32F10X_LD_VL */  /*!< STM32F10X_LD_VL: STM32 Low density Value Line devices */  
  /* #define STM32F10X_MD */     /*!< STM32F10X_MD: STM32 Medium density devices */
  /* #define STM32F10X_MD_VL */  /*!< STM32F10X_MD_VL: STM32 Medium density Value Line devices */  
   #define STM32F10X_HD
  /* #define STM32F10X_HD_VL */  /*!< STM32F10X_HD_VL: STM32 High density value line devices */  
  /* #define STM32F10X_XL */     /*!< STM32F10X_XL: STM32 XL-density devices */
  /* #define STM32F10X_CL */     /*!< STM32F10X_CL: STM32 Connectivity line devices */
#endif

所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版