OpenEdv-开源电子网

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

STM32F103C8T6自己创建工程时IRQn函数出现的问题

[复制链接]

3

主题

8

帖子

0

精华

新手上路

积分
25
金钱
25
注册时间
2021-1-25
在线时间
9 小时
发表于 2021-1-27 15:12:20 | 显示全部楼层 |阅读模式
1金钱
compiling LED.c...
..\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 "endSV_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 "VD_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(244): error:  #20: identifier "ADC1_2_IRQn" is undefined
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
..\USER\stm32f10x.h(245): 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(246): 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\LED.c: 0 warnings, 30 errors
————————————————————————————————————————————————            ————————————————————————————————————————————————
(新手小白)按照视频上的步骤进行,结果出现上述问题,望大神指导

最佳答案

查看完整内容[请看2#楼]

直接编译我们例程试试先吧
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165377
金钱
165377
注册时间
2010-12-1
在线时间
2111 小时
发表于 2021-1-27 15:12:21 | 显示全部楼层
直接编译我们例程试试先吧
回复

使用道具 举报

3

主题

8

帖子

0

精华

新手上路

积分
25
金钱
25
注册时间
2021-1-25
在线时间
9 小时
 楼主| 发表于 2021-1-28 16:23:17 | 显示全部楼层
问题已解决,原因是我写的程序有语法错误
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-2-28 21:35

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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