930电子网

 找回密码
 立即注册
艾克姆科技推出最新产品STC32G12K128开发板
查看: 5657|回复: 1

HC08源码编译出错,keil5.27

[复制链接]

1

主题

1

帖子

19

积分

新手上路

Rank: 1

积分
19
发表于 2020-4-30 00:07:27 | 显示全部楼层 |阅读模式
Build started: Project: HC08
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'IK-C8T6'
compiling led.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\User\bsp\led.c: 1 warning, 1 error
compiling main.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\User\main.c: 1 warning, 1 error
compiling hc08.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\User\bsp\hc08.c: 1 warning, 1 error
compiling misc.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\Lib\F10x_FWLIB\src\misc.c: 1 warning, 1 error
compiling stm32f10x_dbgmcu.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\Lib\F10x_FWLIB\src\stm32f10x_dbgmcu.c: 1 warning, 1 error
compiling stm32f10x_rcc.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\Lib\F10x_FWLIB\src\stm32f10x_rcc.c: 1 warning, 1 error
compiling stm32f10x_usart.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\Lib\F10x_FWLIB\src\stm32f10x_usart.c: 1 warning, 1 error
compiling stm32f10x_gpio.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
..\Lib\F10x_FWLIB\src\stm32f10x_gpio.c: 1 warning, 1 error
compiling system_stm32f10x.c...
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:\Keil_v5\Arm\Packs\Keil\STM32F1xx_DFP\1.1.0\Device\Include\stm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
RTE\Device\STM32F103RC\system_stm32f10x.c: 1 warning, 1 error
".\Objects\HC08.axf" - 9 Error(s), 9 Warning(s).
Target not created.
Build Time Elapsed:  00:00:03

求助

回复

使用道具 举报

101

主题

333

帖子

7428

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7428
发表于 2020-5-7 10:42:47 | 显示全部楼层
MDK安装后注册了没?打开的是例程吗?
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|手机版|官方淘宝店|930电子网 ( 皖ICP备16000695号-2 )

Copyright © 合肥艾克姆电子科技有限公司
快速回复 返回顶部 返回列表