OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 3832|回复: 2

大神们帮我看看,我看了好久 这是stm32在外部实验中,该加的头文件都加了,然后提示好多诶定义的

[复制链接]

1

主题

2

帖子

0

精华

新手入门

积分
41
金钱
41
注册时间
2016-7-21
在线时间
7 小时
发表于 2016-7-24 16:09:35 | 显示全部楼层 |阅读模式
1金钱

..\USER\stm32f10x.h(167): error:  #130: expected a "{"
  typedef enum IRQn
..\USER\stm32f10x.h(170): error:  #20: identifier "NonMaskableInt_IRQn" is undefined
    NonMaskableInt_IRQn         = -14,    /*!< 2 Non Maskable Interrupt                             */
..\USER\stm32f10x.h(171): error:  #20: identifier "MemoryManagement_IRQn" is undefined
    MemoryManagement_IRQn       = -12,    /*!< 4 Cortex-M3 Memory Management Interrupt              */
..\USER\stm32f10x.h(172): error:  #20: identifier "BusFault_IRQn" is undefined
    BusFault_IRQn               = -11,    /*!< 5 Cortex-M3 Bus Fault Interrupt                      */
..\USER\stm32f10x.h(173): error:  #20: identifier "UsageFault_IRQn" is undefined
    UsageFault_IRQn             = -10,    /*!< 6 Cortex-M3 Usage Fault Interrupt                    */
..\USER\stm32f10x.h(174): error:  #20: identifier "SVCall_IRQn" is undefined
    SVCall_IRQn                 = -5,     /*!< 11 Cortex-M3 SV Call Interrupt                       */
..\USER\stm32f10x.h(175): error:  #20: identifier "DebugMonitor_IRQn" is undefined
    DebugMonitor_IRQn           = -4,     /*!< 12 Cortex-M3 Debug Monitor Interrupt                 */
..\USER\stm32f10x.h(176): error:  #20: identifier "PendSV_IRQn" is undefined
    PendSV_IRQn                 = -2,     /*!< 14 Cortex-M3 Pend SV Interrupt                       */
..\USER\stm32f10x.h(177): error:  #20: identifier "SysTick_IRQn" is undefined
    SysTick_IRQn                = -1,     /*!< 15 Cortex-M3 System Tick Interrupt                   */
..\USER\stm32f10x.h(180): error:  #20: identifier "WWDG_IRQn" is undefined
    WWDG_IRQn                   = 0,      /*!< Window WatchDog Interrupt                            */
..\USER\stm32f10x.h(181): error:  #20: identifier "PVD_IRQn" is undefined
    PVD_IRQn                    = 1,      /*!< PVD through EXTI Line detection Interrupt            */
..\USER\stm32f10x.h(182): error:  #20: identifier "TAMPER_IRQn" is undefined
    TAMPER_IRQn                 = 2,      /*!< Tamper Interrupt                                     */
..\USER\stm32f10x.h(183): error:  #20: identifier "RTC_IRQn" is undefined
    RTC_IRQn                    = 3,      /*!< RTC global Interrupt                                 */
..\USER\stm32f10x.h(184): error:  #20: identifier "FLASH_IRQn" is undefined
    FLASH_IRQn                  = 4,      /*!< FLASH global Interrupt                               */
..\USER\stm32f10x.h(185): error:  #20: identifier "RCC_IRQn" is undefined
    RCC_IRQn                    = 5,      /*!< RCC global Interrupt                                 */
..\USER\stm32f10x.h(186): error:  #20: identifier "EXTI0_IRQn" is undefined
    EXTI0_IRQn                  = 6,      /*!< EXTI Line0 Interrupt                                 */
..\USER\stm32f10x.h(187): error:  #20: identifier "EXTI1_IRQn" is undefined
    EXTI1_IRQn                  = 7,      /*!< EXTI Line1 Interrupt                                 */
..\USER\stm32f10x.h(188): error:  #20: identifier "EXTI2_IRQn" is undefined
    EXTI2_IRQn                  = 8,      /*!< EXTI Line2 Interrupt                                 */
..\USER\stm32f10x.h(189): error:  #20: identifier "EXTI3_IRQn" is undefined
    EXTI3_IRQn                  = 9,      /*!< EXTI Line3 Interrupt                                 */
..\USER\stm32f10x.h(190): error:  #20: identifier "EXTI4_IRQn" is undefined
    EXTI4_IRQn                  = 10,     /*!< EXTI Line4 Interrupt                                 */
..\USER\stm32f10x.h(191): error:  #20: identifier "DMA1_Channel1_IRQn" is undefined
    DMA1_Channel1_IRQn          = 11,     /*!< DMA1 Channel 1 global Interrupt                      */
..\USER\stm32f10x.h(192): error:  #20: identifier "DMA1_Channel2_IRQn" is undefined
    DMA1_Channel2_IRQn          = 12,     /*!< DMA1 Channel 2 global Interrupt                      */
..\USER\stm32f10x.h(193): error:  #20: identifier "DMA1_Channel3_IRQn" is undefined
    DMA1_Channel3_IRQn          = 13,     /*!< DMA1 Channel 3 global Interrupt                      */
..\USER\stm32f10x.h(194): error:  #20: identifier "DMA1_Channel4_IRQn" is undefined
    DMA1_Channel4_IRQn          = 14,     /*!< DMA1 Channel 4 global Interrupt                      */
..\USER\stm32f10x.h(195): error:  #20: identifier "DMA1_Channel5_IRQn" is undefined
    DMA1_Channel5_IRQn          = 15,     /*!< DMA1 Channel 5 global Interrupt                      */
..\USER\stm32f10x.h(196): error:  #20: identifier "DMA1_Channel6_IRQn" is undefined
    DMA1_Channel6_IRQn          = 16,     /*!< DMA1 Channel 6 global Interrupt                      */
..\USER\stm32f10x.h(197): error:  #20: identifier "DMA1_Channel7_IRQn" is undefined
    DMA1_Channel7_IRQn          = 17,     /*!< DMA1 Channel 7 global Interrupt                      */
..\USER\stm32f10x.h(298): error:  #20: identifier "ADC1_2_IRQn" is undefined
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
..\USER\stm32f10x.h(299): error:  #20: identifier "USB_HP_CAN1_TX_IRQn" is undefined
    USB_HP_CAN1_TX_IRQn         = 19,     /*!< USB Device High Priority or CAN1 TX Interrupts       */
..\USER\stm32f10x.h(300): error:  #20: identifier "USB_LP_CAN1_RX0_IRQn" is undefined
    USB_LP_CAN1_RX0_IRQn        = 20,     /*!< USB Device Low Priority or CAN1 RX0 Interrupts       */
..\HARDWARE\EXTI\EXTI.c: 0 warnings, 30 errors
compiling key.c...
compiling LED.c...
"..\OBJ\Template.axf" - 30 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:21

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

13

主题

611

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1929
金钱
1929
注册时间
2014-10-6
在线时间
625 小时
发表于 2016-7-24 16:20:39 | 显示全部楼层
看这提示是有头文件没有加进工程,再细查一下吧!
回复

使用道具 举报

0

主题

2

帖子

0

精华

初级会员

Rank: 2

积分
89
金钱
89
注册时间
2016-2-16
在线时间
31 小时
发表于 2016-7-24 17:07:36 | 显示全部楼层
没加启动文件或者没设置宏定义
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-10 10:20

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表