新手调试程序问题求答!!!
新手刚学Cotex-M3,我用的是STM32F103VET6的开发板,在IAR Embedded Workbench环境下编写程序,今天编了个程序,编译时出现
Fatal Error: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)
这个错误,双击出来显示这个
网上的人解决方法是在
definded symbols那栏将TM32F10X_HD和USE_STDPERIPH_DRIVER填上去,由于STM32F103VET6是512K闪存的,所以第一个我填的是TM32F10X_HD高密度,但编译后仍然是这个错误,求老师们解答下!!
回复:新手调试程序问题求答!!!
/* Uncomment the line below according to the target STM32 device used in yourapplication
*/
#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
页:
[1]