2019-07-20 22:58发布
stm32jishuniu 发表于 2016-4-7 22:12 提示是这些宏没有定义,是不是没有添加头文件引起的
正点原子 发表于 2016-4-9 21:28 你移植到是103代码吧?
最多设置5个标签!
不是啊~~
是的,之前用的 st官网的库 * @file: core_cm3.c
* @purpose: CMSIS Cortex-M3 Core Peripheral Access Layer Source File
* @version: V1.10
* @date: 24. Feb. 2009
好使,但是我想用 delay.c的库,移植过来后就报错,
..USERsystem_stm32f10x.c(267): error: #20: identifier "FLASH_BASE" is undefined
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
..USERsystem_stm32f10x.c(324): error: #20: identifier "HSI_VALUE" is undefined
SystemCoreClock = HSI_VALUE;
..USERsystem_stm32f10x.c(327): error: #20: identifier "HSE_VALUE" is undefined
SystemCoreClock = HSE_VALUE;
..USERsystem_stm32f10x.c(1000): error: #20: identifier "HSE_STARTUP_TIMEOUT" is undefined
} while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT));
..USERsystem_stm32f10x.c(1056): error: #20: identifier "RCC_CFGR_PLLSRC_HSE" is undefined
RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLSRC_HSE | RCC_CFGR_PLLMULL9);
..USERsystem_stm32f10x.c: 0 warnings, 5 errors
..SYSTEMdelaydelay.c(121): error: #20: identifier "SysTick_CTRL_ENABLE_Msk" is undefined
SysTick->CTRL|=SysTick_CTRL_ENABLE_Msk ; //开始倒数
..SYSTEMdelaydelay.c(141): error: #20: identifier "SysTick_CTRL_ENABLE_Msk" is undefined
SysTick->CTRL|=SysTick_CTRL_ENABLE_Msk ; //开始倒数
..SYSTEMdelaydelay.c: 0 warnings, 2 errors
一周热门 更多>