礦ision Build Log

Tool Versions:

IDE-Version: μVision V5.36.0.0 Copyright (C) 2021 ARM Ltd and ARM Germany GmbH. All rights reserved. License Information: a a, a, LIC=JL28G-V3W6S-KPHZY-IYQH5-DRA7F-C9XIE Tool Versions: Toolchain: MDK-ARM Plus Version: 5.36.0.0 Toolchain Path: D:\Keil_v5\ARM\ARMCC\Bin C Compiler: Armcc.exe V5.06 update 7 (build 960) Assembler: Armasm.exe V5.06 update 7 (build 960) Linker/Locator: ArmLink.exe V5.06 update 7 (build 960) Library Manager: ArmAr.exe V5.06 update 7 (build 960) Hex Converter: FromElf.exe V5.06 update 7 (build 960) CPU DLL: SARMCM3.DLL V5.36.0.0 Dialog DLL: DARMCM1.DLL V1.19.4.0 Target DLL: CMSIS_AGDI.dll V1.33.0.0 Dialog DLL: TARMCM1.DLL V1.14.4.0

Project:

E:\桌面\rw_mcu_sdk_rls_V1.4\prj\bl32f003_demo.uvprojx Project File Date: 09/22/2021

Output:

*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'Target bl2102' assembling startup_BL2102.s... compiling BL2102_timerplus.c... ..\src\port\bl210x\soc\BL2102_timerplus.h(90): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_Common_Init(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type,TIMPLUS_CommonInitTypeDef * TIMPLUS_CommonInitStruct); ..\src\port\bl210x\soc\BL2102_timerplus.h(91): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_Hall_Init(TIMPLUS_TypeDef * TIMPLUSx, TIMPLUS_HallInitTypeDef * TIMPLUS_HallInitStruct); ..\src\port\bl210x\soc\BL2102_timerplus.h(92): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_Start(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(93): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_Stop(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(94): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_SetClkDiv(TIMPLUS_TypeDef * TIMPLUSx,uint8_t Clk_Div); ..\src\port\bl210x\soc\BL2102_timerplus.h(95): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_SetMode(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type,TIMPLUS_ModeTypeDef Mode); ..\src\port\bl210x\soc\BL2102_timerplus.h(96): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_SetClkSel(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type,TIMPLUS_ClkSelTypeDef ClkSel); ..\src\port\bl210x\soc\BL2102_timerplus.h(97): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_SetExtSel(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type,TIMPLUS_ExtSelTypeDef ExtSel); ..\src\port\bl210x\soc\BL2102_timerplus.h(98): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_SetExtLevel(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type,TIMPLUS_ExtLevelTypeDef ExtLevel); ..\src\port\bl210x\soc\BL2102_timerplus.h(99): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_SetOutEn(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type,FunctionalState OutEn); ..\src\port\bl210x\soc\BL2102_timerplus.h(100): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_SetPeriod(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type,uint16_t Period); ..\src\port\bl210x\soc\BL2102_timerplus.h(101): error: #20: identifier "TIMPLUS_TypeDef" is undefined uint16_t TIMPLUS_GetPeriod(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(102): error: #20: identifier "TIMPLUS_TypeDef" is undefined uint16_t TIMPLUS_GetCurrentValue(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(103): error: #20: identifier "TIMPLUS_TypeDef" is undefined uint16_t TIMPLUS_GetCaptureValue(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(104): error: #20: identifier "TIMPLUS_TypeDef" is undefined uint8_t TIMPLUS_GetHallLevel(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_HallTypeDef HallLevel); ..\src\port\bl210x\soc\BL2102_timerplus.h(105): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntOvfEn(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(106): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntOvfDis(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(107): error: #20: identifier "TIMPLUS_TypeDef" is undefined uint8_t TIMPLUS_IntOvfState(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(108): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntOvfClr(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(109): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntRiseEn(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(110): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntRiseDis(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(111): error: #20: identifier "TIMPLUS_TypeDef" is undefined uint8_t TIMPLUS_IntRiseState(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(112): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntRiseClr(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(113): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntFallEn(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(114): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntFallDis(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(115): error: #20: identifier "TIMPLUS_TypeDef" is undefined uint8_t TIMPLUS_IntFallState(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(116): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntFallClr(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_TypeTypeDef type); ..\src\port\bl210x\soc\BL2102_timerplus.h(117): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntHallRiseEn(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_HallTypeDef HallLevel); ..\src\port\bl210x\soc\BL2102_timerplus.h(118): error: #20: identifier "TIMPLUS_TypeDef" is undefined void TIMPLUS_IntHallRiseDis(TIMPLUS_TypeDef * TIMPLUSx,TIMPLUS_HallTypeDef HallLevel); ..\src\port\bl210x\soc\BL2102_timerplus.h(119): error: #20: identifier "TIMPLUS_TypeDef" is undefined uint8_t TIMPLUS_IntHallRiseState(TIMPLUS_TypeDef * TIMPLUSx); ..\src\port\bl210x\soc\BL2102_timerplus.c: 0 warnings, 30 errors compiling BL210x_flash.c... ..\src\port\bl210x\soc\BL210x_flash.c(13): error: #20: identifier "FLASH" is undefined FLASH->CFG &= ~(0x03 << FLASH_CFG_READMODE_POS); ..\src\port\bl210x\soc\BL210x_flash.c(13): error: #20: identifier "FLASH_CFG_READMODE_POS" is undefined FLASH->CFG &= ~(0x03 << FLASH_CFG_READMODE_POS); ..\src\port\bl210x\soc\BL210x_flash.c(16): error: #20: identifier "FLASH_CFG_CLKDIV_POS" is undefined FLASH->CFG &= ~(0x03 << FLASH_CFG_CLKDIV_POS); ..\src\port\bl210x\soc\BL210x_flash.c(33): error: #20: identifier "FLASH" is undefined FLASH->CFG &= ~(0x0F << FLASH_CFG_CMD_POS); ..\src\port\bl210x\soc\BL210x_flash.c(33): error: #20: identifier "FLASH_CFG_CMD_POS" is undefined FLASH->CFG &= ~(0x0F << FLASH_CFG_CMD_POS); ..\src\port\bl210x\soc\BL210x_flash.c(48): error: #20: identifier "FLASH" is undefined if(FLASH->STATE & FLASH_STATE_BUSY_MSK) ..\src\port\bl210x\soc\BL210x_flash.c(48): error: #20: identifier "FLASH_STATE_BUSY_MSK" is undefined if(FLASH->STATE & FLASH_STATE_BUSY_MSK) ..\src\port\bl210x\soc\BL210x_flash.c(68): error: #20: identifier "FLASH" is undefined if(FLASH->STATE & FLASH_STATE_PROG_VALID_MSK) ..\src\port\bl210x\soc\BL210x_flash.c(68): error: #20: identifier "FLASH_STATE_PROG_VALID_MSK" is undefined if(FLASH->STATE & FLASH_STATE_PROG_VALID_MSK) ..\src\port\bl210x\soc\BL210x_flash.c(88): error: #20: identifier "FLASH" is undefined FLASH->START |= 0x01 << FLASH_START_PROG_END_POS; ..\src\port\bl210x\soc\BL210x_flash.c(88): error: #20: identifier "FLASH_START_PROG_END_POS" is undefined FLASH->START |= 0x01 << FLASH_START_PROG_END_POS; ..\src\port\bl210x\soc\BL210x_flash.c(101): error: #20: identifier "FLASH" is undefined FLASH->START |= 0x01 << FLASH_START_EN_POS; //启动命令 ..\src\port\bl210x\soc\BL210x_flash.c(101): error: #20: identifier "FLASH_START_EN_POS" is undefined FLASH->START |= 0x01 << FLASH_START_EN_POS; //启动命令 ..\src\port\bl210x\soc\BL210x_flash.c(177): error: #20: identifier "FLASH" is undefined Rec = FLASH->RDATA & 0x01; //读取寄存器数据,当数据为0时,表示操作完成 ..\src\port\bl210x\soc\BL210x_flash.c(194): error: #20: identifier "FLASH" is undefined FLASH->ADDR = addr>>2; //地址转换为以字为单位 ..\src\port\bl210x\soc\BL210x_flash.c(215): error: #20: identifier "FLASH" is undefined FLASH->WDATA = 0x0200; //Quad_Enable ..\src\port\bl210x\soc\BL210x_flash.c(240): error: #20: identifier "FLASH" is undefined FLASH->ADDR = addr>>2; //地址转换为以字为单位 ..\src\port\bl210x\soc\BL210x_flash.c(244): error: #20: identifier "FLASH_START_EN_POS" is undefined FLASH->START |= 0x01 << FLASH_START_EN_POS; //启动命令 ..\src\port\bl210x\soc\BL210x_flash.c(280): error: #20: identifier "FLASH" is undefined FLASH->ADDR = addr>>2; //地址转换为以字为单位 ..\src\port\bl210x\soc\BL210x_flash.c(284): error: #20: identifier "FLASH_START_EN_POS" is undefined FLASH->START |= 0x01 << FLASH_START_EN_POS; //启动命令 ..\src\port\bl210x\soc\BL210x_flash.c(314): error: #20: identifier "FLASH" is undefined FLASH->ADDR = addr>>2; //地址转换为以字为单位 ..\src\port\bl210x\soc\BL210x_flash.c(316): error: #20: identifier "FLASH_CFG_READMODE_POS" is undefined FLASH->CFG &= ~(0x03 << FLASH_CFG_READMODE_POS); ..\src\port\bl210x\soc\BL210x_flash.c: 0 warnings, 22 errors compiling BL2102_pwmplus.c... ..\src\port\bl210x\soc\BL2101.h(9): error: #2571: invalid redefinition of enum "IRQn" (declared at line 9 of "..\src\port\bl210x\soc\BL2102.h") typedef enum IRQn ..\src\port\bl210x\soc\BL2101.h(12): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ ..\src\port\bl210x\soc\BL2101.h(13): error: #101: "HardFault_IRQn" has already been declared in the current scope HardFault_IRQn = -13, /*!< 3 Cortex-M0 Hard Fault Interrupt */ ..\src\port\bl210x\soc\BL2101.h(14): error: #101: "SVCall_IRQn" has already been declared in the current scope SVCall_IRQn = -5, /*!< 11 Cortex-M0 SV Call Interrupt */ ..\src\port\bl210x\soc\BL2101.h(15): error: #101: "PendSV_IRQn" has already been declared in the current scope PendSV_IRQn = -2, /*!< 14 Cortex-M0 Pend SV Interrupt */ ..\src\port\bl210x\soc\BL2101.h(16): error: #101: "SysTick_IRQn" has already been declared in the current scope SysTick_IRQn = -1, /*!< 15 Cortex-M0 System Tick Interrupt */ ..\src\port\bl210x\soc\BL2101.h(19): error: #101: "UART0_IRQn" has already been declared in the current scope UART0_IRQn = 0, ..\src\port\bl210x\soc\BL2101.h(24): error: #101: "ADC_IRQn" has already been declared in the current scope ADC_IRQn = 5, ..\src\port\bl210x\soc\BL2101.h(30): error: #101: "GPIOA0_IRQn" has already been declared in the current scope GPIOA0_IRQn = 11, ..\src\port\bl210x\soc\BL2101.h(31): error: #101: "GPIOA1_IRQn" has already been declared in the current scope GPIOA1_IRQn = 12, ..\src\port\bl210x\soc\BL2101.h(32): error: #101: "GPIOA4_IRQn" has already been declared in the current scope GPIOA4_IRQn = 13, ..\src\port\bl210x\soc\BL2101.h(33): error: #101: "GPIOA5_IRQn" has already been declared in the current scope GPIOA5_IRQn = 14, ..\src\port\bl210x\soc\BL2101.h(36): error: #101: "GPIOA14_IRQn" has already been declared in the current scope GPIOA14_IRQn = 17, ..\src\port\bl210x\soc\BL2101.h(37): error: #101: "GPIOA15_IRQn" has already been declared in the current scope GPIOA15_IRQn = 18, ..\src\port\bl210x\soc\BL2101.h(43): error: #101: "IRQ24_IRQn" has already been declared in the current scope IRQ24_IRQn = 24, ..\src\port\bl210x\soc\BL2101.h(44): error: #101: "IRQ25_IRQn" has already been declared in the current scope IRQ25_IRQn = 25, ..\src\port\bl210x\soc\BL2101.h(45): error: #101: "IRQ26_IRQn" has already been declared in the current scope IRQ26_IRQn = 26, ..\src\port\bl210x\soc\BL2101.h(46): error: #101: "IRQ27_IRQn" has already been declared in the current scope IRQ27_IRQn = 27, ..\src\port\bl210x\soc\BL2101.h(47): error: #101: "IRQ28_IRQn" has already been declared in the current scope IRQ28_IRQn = 28, ..\src\port\bl210x\soc\BL2101.h(48): error: #101: "IRQ29_IRQn" has already been declared in the current scope IRQ29_IRQn = 29, ..\src\port\bl210x\soc\BL2101.h(49): error: #101: "IRQ30_IRQn" has already been declared in the current scope IRQ30_IRQn = 30, ..\src\port\bl210x\soc\BL2101.h(50): error: #101: "IRQ31_IRQn" has already been declared in the current scope IRQ31_IRQn = 31, ..\src\port\bl210x\soc\BL2101.h(51): error: #256: invalid redeclaration of type name "IRQn_Type" (declared at line 51 of "..\src\port\bl210x\soc\BL2102.h") } IRQn_Type; ..\src\port\bl210x\soc\BL2101.h(71): error: #101: "RESET" has already been declared in the current scope typedef enum {RESET = 0, SET = 1} FlagStatus, ITStatus; ..\src\port\bl210x\soc\BL2101.h(71): error: #101: "SET" has already been declared in the current scope typedef enum {RESET = 0, SET = 1} FlagStatus, ITStatus; ..\src\port\bl210x\soc\BL2101.h(71): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 71 of "..\src\port\bl210x\soc\BL2102.h") typedef enum {RESET = 0, SET = 1} FlagStatus, ITStatus; ..\src\port\bl210x\soc\BL2101.h(71): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 71 of "..\src\port\bl210x\soc\BL2102.h") typedef enum {RESET = 0, SET = 1} FlagStatus, ITStatus; ..\src\port\bl210x\soc\BL2101.h(73): error: #101: "DISABLE" has already been declared in the current scope typedef enum {DISABLE = 0, ENABLE = 1} FunctionalState; ..\src\port\bl210x\soc\BL2101.h(73): error: #101: "ENABLE" has already been declared in the current scope typedef enum {DISABLE = 0, ENABLE = 1} FunctionalState; ..\src\port\bl210x\soc\BL2101.h(73): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 73 of "..\src\port\bl210x\soc\BL2102.h") typedef enum {DISABLE = 0, ENABLE = 1} FunctionalState; ..\src\port\bl210x\soc\BL2102_pwmplus.c: 0 warnings, 30 errors compiling BL210x_adc.c... ..\src\port\bl210x\soc\BL210x_adc.c(59): error: #20: identifier "ADC_TRIM_Data" is undefined ADC_TRIM_Data = OTP_Read_2(TRIM_ADC_EXT_Addr); ..\src\port\bl210x\soc\BL210x_adc.c(59): warning: #223-D: function "OTP_Read_2" declared implicitly ADC_TRIM_Data = OTP_Read_2(TRIM_ADC_EXT_Addr); ..\src\port\bl210x\soc\BL210x_adc.c(63): error: #20: identifier "ADC_TRIM_Data" is undefined ADC_TRIM_Data = OTP_Read_2(TRIM_ADC_IN_Addr); ..\src\port\bl210x\soc\BL210x_adc.c(63): warning: #223-D: function "OTP_Read_2" declared implicitly ADC_TRIM_Data = OTP_Read_2(TRIM_ADC_IN_Addr); ..\src\port\bl210x\soc\BL210x_adc.c: 2 warnings, 2 errors compiling BL210x_iic.c... ..\src\port\bl210x\soc\BL210x_iic.c(21): error: #20: identifier "IIC0" is undefined case ((uint32_t)IIC0): ..\src\port\bl210x\soc\BL210x_iic.c(23): error: #20: identifier "SYS_CLKEN_IIC0_POS" is undefined SYS->CLKEN |= 0x01 << SYS_CLKEN_IIC0_POS; //开启IIC0时钟 ..\src\port\bl210x\soc\BL210x_iic.c(39): error: #20: identifier "IIC0" is undefined case ((uint32_t)IIC0): ..\src\port\bl210x\soc\BL210x_iic.c(41): error: #20: identifier "IIC0_IRQn" is undefined NVIC_EnableIRQ(IIC0_IRQn); //使能中断 ..\src\port\bl210x\soc\BL210x_iic.c: 0 warnings, 4 errors compiling system_BL2102.c... ..\src\port\bl210x\soc\system_BL2102.c(22): error: #136: struct "" has no field "RCCR" if(SYS->RCCR & SYS_RCCR_RCHF_SEL_MSK) ..\src\port\bl210x\soc\system_BL2102.c(22): error: #20: identifier "SYS_RCCR_RCHF_SEL_MSK" is undefined if(SYS->RCCR & SYS_RCCR_RCHF_SEL_MSK) ..\src\port\bl210x\soc\system_BL2102.c(35): error: #136: struct "" has no field "RCCR" if(SYS->RCCR & SYS_RCCR_RCHF_SEL_MSK) ..\src\port\bl210x\soc\system_BL2102.c(35): error: #20: identifier "SYS_RCCR_RCHF_SEL_MSK" is undefined if(SYS->RCCR & SYS_RCCR_RCHF_SEL_MSK) ..\src\port\bl210x\soc\system_BL2102.c(62): error: #136: struct "" has no field "RCCR" SYS->RCCR |= 0x01 << SYS_RCCR_RCHF_EN_POS; //RCHF使能 ..\src\port\bl210x\soc\system_BL2102.c(62): error: #20: identifier "SYS_RCCR_RCHF_EN_POS" is undefined SYS->RCCR |= 0x01 << SYS_RCCR_RCHF_EN_POS; //RCHF使能 ..\src\port\bl210x\soc\system_BL2102.c(63): error: #136: struct "" has no field "RCCR" SYS->RCCR &= ~(0x01 << SYS_RCCR_RCHF_SEL_POS); //RCHF选择48MHZ ..\src\port\bl210x\soc\system_BL2102.c(63): error: #20: identifier "SYS_RCCR_RCHF_SEL_POS" is undefined SYS->RCCR &= ~(0x01 << SYS_RCCR_RCHF_SEL_POS); //RCHF选择48MHZ ..\src\port\bl210x\soc\system_BL2102.c(72): error: #136: struct "" has no field "RCCR" SYS->RCCR |= 0x01 << SYS_RCCR_RCHF_EN_POS; //RCHF使能 ..\src\port\bl210x\soc\system_BL2102.c(72): error: #20: identifier "SYS_RCCR_RCHF_EN_POS" is undefined SYS->RCCR |= 0x01 << SYS_RCCR_RCHF_EN_POS; //RCHF使能 ..\src\port\bl210x\soc\system_BL2102.c(73): error: #136: struct "" has no field "RCCR" SYS->RCCR |= (0x01 << SYS_RCCR_RCHF_SEL_POS); //RCHF选择24MHZ ..\src\port\bl210x\soc\system_BL2102.c(73): error: #20: identifier "SYS_RCCR_RCHF_SEL_POS" is undefined SYS->RCCR |= (0x01 << SYS_RCCR_RCHF_SEL_POS); //RCHF选择24MHZ ..\src\port\bl210x\soc\system_BL2102.c(99): error: #136: struct "" has no field "XTACR" SYS->XTACR |= 0x01 << SYS_XTACR_XTAH_EN_POS; //XTAH使能 ..\src\port\bl210x\soc\system_BL2102.c(99): error: #20: identifier "SYS_XTACR_XTAH_EN_POS" is undefined SYS->XTACR |= 0x01 << SYS_XTACR_XTAH_EN_POS; //XTAH使能 ..\src\port\bl210x\soc\system_BL2102.c(120): error: #136: struct "" has no field "XTACR" SYS->XTACR |= 0x01 << SYS_XTACR_XTAH_EN_POS; //XTAH使能 ..\src\port\bl210x\soc\system_BL2102.c(120): error: #20: identifier "SYS_XTACR_XTAH_EN_POS" is undefined SYS->XTACR |= 0x01 << SYS_XTACR_XTAH_EN_POS; //XTAH使能 ..\src\port\bl210x\soc\system_BL2102.c(142): error: #136: struct "" has no field "XTACR" SYS->XTACR |= 0x01 << SYS_XTACR_XTAH_EN_POS; //XTAH使能 ..\src\port\bl210x\soc\system_BL2102.c(142): error: #20: identifier "SYS_XTACR_XTAH_EN_POS" is undefined SYS->XTACR |= 0x01 << SYS_XTACR_XTAH_EN_POS; //XTAH使能 ..\src\port\bl210x\soc\system_BL2102.c(185): warning: #223-D: function "FLASH_Read_Word_2" declared implicitly PMU->TRIM_POW = FLASH_Read_Word_2(TRIM_POW_Addr); ..\src\port\bl210x\soc\system_BL2102.c(245): warning: #223-D: function "FLASH_Init" declared implicitly FLASH_Init(FLASH_QuadReadData,FLASH_CLKDIV_1); ..\src\port\bl210x\soc\system_BL2102.c(245): error: #20: identifier "FLASH_QuadReadData" is undefined FLASH_Init(FLASH_QuadReadData,FLASH_CLKDIV_1); ..\src\port\bl210x\soc\system_BL2102.c(245): error: #20: identifier "FLASH_CLKDIV_1" is undefined FLASH_Init(FLASH_QuadReadData,FLASH_CLKDIV_1); ..\src\port\bl210x\soc\system_BL2102.c: 2 warnings, 20 errors compiling BL210x_exti.c... compiling BL210x_uart.c... compiling BL210x_port.c... compiling BL210x_gpio.c... compiling BL210x_spi.c... ..\src\port\bl210x\soc\BL210x_spi.c(24): error: #20: identifier "SPI0" is undefined case ((uint32_t)SPI0): ..\src\port\bl210x\soc\BL210x_spi.c(26): error: #20: identifier "SYS_CLKEN_SPI0_POS" is undefined SYS->CLKEN |= 0x01 << SYS_CLKEN_SPI0_POS; //打开SPI0时钟 ..\src\port\bl210x\soc\BL210x_spi.c: 0 warnings, 2 errors compiling BL210x_wdt.c... ..\src\port\bl210x\soc\BL210x_wdt.c(21): error: #20: identifier "SYS_CLKEN_IWDT_POS" is undefined SYS->CLKEN |= 0x01 << SYS_CLKEN_IWDT_POS; //IWDT时钟使能 ..\src\port\bl210x\soc\BL210x_wdt.c(25): error: #20: identifier "IWDT" is undefined IWDT->CTRL &= ~(0x01 << IWDT_CTRL_RSTEN_POS); ..\src\port\bl210x\soc\BL210x_wdt.c(25): error: #20: identifier "IWDT_CTRL_RSTEN_POS" is undefined IWDT->CTRL &= ~(0x01 << IWDT_CTRL_RSTEN_POS); ..\src\port\bl210x\soc\BL210x_wdt.c(30): error: #20: identifier "IWDT_IRQn" is undefined NVIC_EnableIRQ(IWDT_IRQn); //开启IWDT中断 ..\src\port\bl210x\soc\BL210x_wdt.c(43): error: #20: identifier "IWDT" is undefined IWDT->CTRL |= (0x01 << IWDT_CTRL_EN_POS); ..\src\port\bl210x\soc\BL210x_wdt.c(43): error: #20: identifier "IWDT_CTRL_EN_POS" is undefined IWDT->CTRL |= (0x01 << IWDT_CTRL_EN_POS); ..\src\port\bl210x\soc\BL210x_wdt.c(55): error: #20: identifier "IWDT" is undefined IWDT->CTRL &= ~(0x01 << IWDT_CTRL_EN_POS); ..\src\port\bl210x\soc\BL210x_wdt.c(55): error: #20: identifier "IWDT_CTRL_EN_POS" is undefined IWDT->CTRL &= ~(0x01 << IWDT_CTRL_EN_POS); ..\src\port\bl210x\soc\BL210x_wdt.c(68): error: #20: identifier "IWDT" is undefined IWDT->FEED = 0x55; ..\src\port\bl210x\soc\BL210x_wdt.c(81): error: #20: identifier "IWDT" is undefined return IWDT->IF; ..\src\port\bl210x\soc\BL210x_wdt.c(94): error: #20: identifier "IWDT" is undefined IWDT->IF = 0; ..\src\port\bl210x\soc\BL210x_wdt.c: 0 warnings, 11 errors compiling BL210x_pwmbase.c... ..\src\port\bl210x\soc\BL2101.h(9): error: #2571: invalid redefinition of enum "IRQn" (declared at line 9 of "..\src\port\bl210x\soc\BL2102.h") typedef enum IRQn ..\src\port\bl210x\soc\BL2101.h(12): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ ..\src\port\bl210x\soc\BL2101.h(13): error: #101: "HardFault_IRQn" has already been declared in the current scope HardFault_IRQn = -13, /*!< 3 Cortex-M0 Hard Fault Interrupt */ ..\src\port\bl210x\soc\BL2101.h(14): error: #101: "SVCall_IRQn" has already been declared in the current scope SVCall_IRQn = -5, /*!< 11 Cortex-M0 SV Call Interrupt */ ..\src\port\bl210x\soc\BL2101.h(15): error: #101: "PendSV_IRQn" has already been declared in the current scope PendSV_IRQn = -2, /*!< 14 Cortex-M0 Pend SV Interrupt */ ..\src\port\bl210x\soc\BL2101.h(16): error: #101: "SysTick_IRQn" has already been declared in the current scope SysTick_IRQn = -1, /*!< 15 Cortex-M0 System Tick Interrupt */ ..\src\port\bl210x\soc\BL2101.h(19): error: #101: "UART0_IRQn" has already been declared in the current scope UART0_IRQn = 0, ..\src\port\bl210x\soc\BL2101.h(24): error: #101: "ADC_IRQn" has already been declared in the current scope ADC_IRQn = 5, ..\src\port\bl210x\soc\BL2101.h(30): error: #101: "GPIOA0_IRQn" has already been declared in the current scope GPIOA0_IRQn = 11, ..\src\port\bl210x\soc\BL2101.h(31): error: #101: "GPIOA1_IRQn" has already been declared in the current scope GPIOA1_IRQn = 12, ..\src\port\bl210x\soc\BL2101.h(32): error: #101: "GPIOA4_IRQn" has already been declared in the current scope GPIOA4_IRQn = 13, ..\src\port\bl210x\soc\BL2101.h(33): error: #101: "GPIOA5_IRQn" has already been declared in the current scope GPIOA5_IRQn = 14, ..\src\port\bl210x\soc\BL2101.h(36): error: #101: "GPIOA14_IRQn" has already been declared in the current scope GPIOA14_IRQn = 17, ..\src\port\bl210x\soc\BL2101.h(37): error: #101: "GPIOA15_IRQn" has already been declared in the current scope GPIOA15_IRQn = 18, ..\src\port\bl210x\soc\BL2101.h(43): error: #101: "IRQ24_IRQn" has already been declared in the current scope IRQ24_IRQn = 24, ..\src\port\bl210x\soc\BL2101.h(44): error: #101: "IRQ25_IRQn" has already been declared in the current scope IRQ25_IRQn = 25, ..\src\port\bl210x\soc\BL2101.h(45): error: #101: "IRQ26_IRQn" has already been declared in the current scope IRQ26_IRQn = 26, ..\src\port\bl210x\soc\BL2101.h(46): error: #101: "IRQ27_IRQn" has already been declared in the current scope IRQ27_IRQn = 27, ..\src\port\bl210x\soc\BL2101.h(47): error: #101: "IRQ28_IRQn" has already been declared in the current scope IRQ28_IRQn = 28, ..\src\port\bl210x\soc\BL2101.h(48): error: #101: "IRQ29_IRQn" has already been declared in the current scope IRQ29_IRQn = 29, ..\src\port\bl210x\soc\BL2101.h(49): error: #101: "IRQ30_IRQn" has already been declared in the current scope IRQ30_IRQn = 30, ..\src\port\bl210x\soc\BL2101.h(50): error: #101: "IRQ31_IRQn" has already been declared in the current scope IRQ31_IRQn = 31, ..\src\port\bl210x\soc\BL2101.h(51): error: #256: invalid redeclaration of type name "IRQn_Type" (declared at line 51 of "..\src\port\bl210x\soc\BL2102.h") } IRQn_Type; ..\src\port\bl210x\soc\BL2101.h(71): error: #101: "RESET" has already been declared in the current scope typedef enum {RESET = 0, SET = 1} FlagStatus, ITStatus; ..\src\port\bl210x\soc\BL2101.h(71): error: #101: "SET" has already been declared in the current scope typedef enum {RESET = 0, SET = 1} FlagStatus, ITStatus; ..\src\port\bl210x\soc\BL2101.h(71): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 71 of "..\src\port\bl210x\soc\BL2102.h") typedef enum {RESET = 0, SET = 1} FlagStatus, ITStatus; ..\src\port\bl210x\soc\BL2101.h(71): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 71 of "..\src\port\bl210x\soc\BL2102.h") typedef enum {RESET = 0, SET = 1} FlagStatus, ITStatus; ..\src\port\bl210x\soc\BL2101.h(73): error: #101: "DISABLE" has already been declared in the current scope typedef enum {DISABLE = 0, ENABLE = 1} FunctionalState; ..\src\port\bl210x\soc\BL2101.h(73): error: #101: "ENABLE" has already been declared in the current scope typedef enum {DISABLE = 0, ENABLE = 1} FunctionalState; ..\src\port\bl210x\soc\BL2101.h(73): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 73 of "..\src\port\bl210x\soc\BL2102.h") typedef enum {DISABLE = 0, ENABLE = 1} FunctionalState; ..\src\port\bl210x\soc\BL210x_pwmbase.c: 0 warnings, 30 errors compiling bl210x_test.c... ..\src\port\bl210x\soc\BL210x_pwmbase.h(59): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_Common_Init(PWMBASE_TypeDef * PWMBASEx, PWMBASE_CommonInitTypeDef * PWMBASE_CommonInitStruct); //PWMBASE公共参数初始化 ..\src\port\bl210x\soc\BL210x_pwmbase.h(61): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_Channel_Init(PWMBASE_TypeDef * PWMBASEx, PWMBASE_ChannelInitTypeDef * PWMBASE_ChannelInitStruct); //PWMBASE通道初始化 ..\src\port\bl210x\soc\BL210x_pwmbase.h(63): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_Start(PWMBASE_TypeDef * PWMBASEx); //启动PWMBASE,开始PWM输出 ..\src\port\bl210x\soc\BL210x_pwmbase.h(65): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_Stop(PWMBASE_TypeDef * PWMBASEx); //关闭PWMBASE,停止PWM输出 ..\src\port\bl210x\soc\BL210x_pwmbase.h(67): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_SetClkDiv(PWMBASE_TypeDef * PWMBASEx,uint8_t Clk_Div); //设置预分频系数 实际分频为配置值加1 ..\src\port\bl210x\soc\BL210x_pwmbase.h(69): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_SetOutInv(PWMBASE_TypeDef * PWMBASEx,uint8_t CHx,FunctionalState OutInv); //PWMBASE输出信号翻转配置 ..\src\port\bl210x\soc\BL210x_pwmbase.h(71): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_SetOutEn(PWMBASE_TypeDef * PWMBASEx,uint8_t CHx,FunctionalState OutEn); //PWMBASE输出使能配置 ..\src\port\bl210x\soc\BL210x_pwmbase.h(73): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_SetPeriod(PWMBASE_TypeDef * PWMBASEx, uint32_t Period); //设置周期 ..\src\port\bl210x\soc\BL210x_pwmbase.h(75): error: #20: identifier "PWMBASE_TypeDef" is undefined uint32_t PWMBASE_GetPeriod(PWMBASE_TypeDef * PWMBASEx); //获取周期 ..\src\port\bl210x\soc\BL210x_pwmbase.h(77): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_SetComp(PWMBASE_TypeDef * PWMBASEx, uint8_t CHx,uint32_t Comp); //设置翻转点 ..\src\port\bl210x\soc\BL210x_pwmbase.h(79): error: #20: identifier "PWMBASE_TypeDef" is undefined uint32_t PWMBASE_GetComp(PWMBASE_TypeDef * PWMBASEx, uint8_t CHx); //获取配置的翻转点 ..\src\port\bl210x\soc\BL210x_pwmbase.h(81): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_IntCompEn(PWMBASE_TypeDef * PWMBASEx, uint8_t CHx); //PWMBASE翻转点中断使能 ..\src\port\bl210x\soc\BL210x_pwmbase.h(83): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_IntCompDis(PWMBASE_TypeDef * PWMBASEx, uint8_t CHx); //PWMBASE翻转点中断禁能 ..\src\port\bl210x\soc\BL210x_pwmbase.h(85): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_IntCompClr(PWMBASE_TypeDef * PWMBASEx, uint8_t CHx); //PWMBASE翻转点中断标志清除 ..\src\port\bl210x\soc\BL210x_pwmbase.h(87): error: #20: identifier "PWMBASE_TypeDef" is undefined uint8_t PWMBASE_IntCompState(PWMBASE_TypeDef * PWMBASEx, uint8_t CHx); //PWMBASE翻转点中断状态 ..\src\port\bl210x\soc\BL210x_pwmbase.h(89): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_IntOvfEn(PWMBASE_TypeDef * PWMBASEx); //PWMBASE周期溢出中断使能 ..\src\port\bl210x\soc\BL210x_pwmbase.h(91): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_IntOvfDis(PWMBASE_TypeDef * PWMBASEx); //PWMBASE周期溢出中断禁能 ..\src\port\bl210x\soc\BL210x_pwmbase.h(93): error: #20: identifier "PWMBASE_TypeDef" is undefined void PWMBASE_IntOvfClr(PWMBASE_TypeDef * PWMBASEx); //PWMBASE周期溢出中断标志清除 ..\src\port\bl210x\soc\BL210x_pwmbase.h(95): error: #20: identifier "PWMBASE_TypeDef" is undefined uint8_t PWMBASE_IntOvfState(PWMBASE_TypeDef * PWMBASEx); //PWMBASE周期溢出中断状态 ..\src\app\bl210x_test.c(53): error: #20: identifier "PORTA_PIN1_UART0_TX" is undefined PORT_InitStruct.Func = PORTA_PIN1_UART0_TX; ..\src\app\bl210x_test.c(60): error: #20: identifier "PORTA_PIN2_UART0_RX" is undefined PORT_InitStruct.Func = PORTA_PIN2_UART0_RX; ..\src\app\bl210x_test.c(173): warning: #223-D: function "TIMER_Init" declared implicitly TIMER_Init(TIMER_LOW16BIT,1000,1); //低16位定时器 定时时间1ms 开? TIMER_Start(TIMER_LOW16BIT); //开启低16位定时器 ..\src\app\bl210x_test.c(173): error: #20: identifier "TIMER_LOW16BIT" is undefined TIMER_Init(TIMER_LOW16BIT,1000,1); //低16位定时器 定时时间1ms 开? TIMER_Start(TIMER_LOW16BIT); //开启低16位定时器 ..\src\app\bl210x_test.c(213): warning: #223-D: function "TIMER_Init" declared implicitly TIMER_Init(TIMER_HIGH16BIT,10000,1); //高16位定时器 定时时间10ms 开启中断 ..\src\app\bl210x_test.c(213): error: #20: identifier "TIMER_HIGH16BIT" is undefined TIMER_Init(TIMER_HIGH16BIT,10000,1); //高16位定时器 定时时间10ms 开启中断 ..\src\app\bl210x_test.c(214): warning: #223-D: function "TIMER_Start" declared implicitly TIMER_Start(TIMER_HIGH16BIT); //开启高16位定时器 ..\src\app\bl210x_test.c(222): warning: #223-D: function "TIMER_Init" declared implicitly TIMER_Init(TIMER_32BIT,100000,1); //32位定时器 定时时间100ms 开启中断 ..\src\app\bl210x_test.c(222): error: #20: identifier "TIMER_32BIT" is undefined TIMER_Init(TIMER_32BIT,100000,1); //32位定时器 定时时间100ms 开启中断 ..\src\app\bl210x_test.c(223): warning: #223-D: function "TIMER_Start" declared implicitly TIMER_Start(TIMER_32BIT); //开启32位定时器 ..\src\app\bl210x_test.c(231): warning: #223-D: function "TIMER_INTStat" declared implicitly if(TIMER_INTStat(TIMER_LOW16BIT)) //判断低16位定时器中断标志是否为1 ..\src\app\bl210x_test.c(231): error: #20: identifier "TIMER_LOW16BIT" is undefined if(TIMER_INTStat(TIMER_LOW16BIT)) //判断低16位定时器中断标志是否为1 ..\src\app\bl210x_test.c(233): warning: #223-D: function "TIMER_INTClr" declared implicitly TIMER_INTClr(TIMER_LOW16BIT); //清除低16位定时器中断标志 ..\src\app\bl210x_test.c(238): error: #20: identifier "TIMER_HIGH16BIT" is undefined if(TIMER_INTStat(TIMER_HIGH16BIT)) //判断高16位定时器中断标志是否为1 ..\src\app\bl210x_test.c(240): warning: #223-D: function "TIMER_INTClr" declared implicitly TIMER_INTClr(TIMER_HIGH16BIT); //清除高16位定时器中断标志 ..\src\app\bl210x_test.c(245): error: #20: identifier "TIMER_32BIT" is undefined if(TIMER_INTStat(TIMER_32BIT)) //判断32位定时器中断标志是否为1 ..\src\app\bl210x_test.c(247): warning: #223-D: function "TIMER_INTClr" declared implicitly TIMER_INTClr(TIMER_32BIT); //清除32位定时器中断标志 ..\src\app\bl210x_test.c: 9 warnings, 27 errors compiling main.c... compiling uti.c... ".\out\BL210x_Demo.axf" - 178 Error(s), 13 Warning(s).

Software Packages used:

Package Vendor: BoLing http://www.bolingic.com/BoLing.BL32F.1.0.0.pack BoLing.BL32F.1.0.0 BL32F Device Support

Collection of Component include folders:

D:\Users\xuxiangli\AppData\Local\Arm\Packs\BoLing\BL32F\1.0.0\CSL\BL2102\CMSIS\DeviceSupport

Collection of Component Files used:

Target not created. Build Time Elapsed: 00:00:01