*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Keil5\ARM\ARMCC\Bin'
Rebuild target 'LED'
assembling startup_stm32f407xx.s...
compiling lcd_init.c...
DEVICE\sys.h(72): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
DEVICE\lcd_init.h(44): error: #20: identifier "u8" is undefined
void LCD_Writ_Bus(u8 dat);//模拟SPI时序
DEVICE\lcd_init.h(45): error: #20: identifier "u8" is undefined
void LCD_WR_DATA8(u8 dat);//写入一个字节
DEVICE\lcd_init.h(46): error: #20: identifier "u16" is undefined
void LCD_WR_DATA(u16 dat);//写入两个字节
DEVICE\lcd_init.h(47): error: #20: identifier "u8" is undefined
void LCD_WR_REG(u8 dat);//写入一个指令
DEVICE\lcd_init.h(48): error: #20: identifier "u16" is undefined
void LCD_Address_Set(u16 x1,u16 y1,u16 x2,u16 y2);//设置坐标函数
DEVICE\lcd_init.h(48): error: #20: identifier "u16" is undefined
void LCD_Address_Set(u16 x1,u16 y1,u16 x2,u16 y2);//设置坐标函数
DEVICE\lcd_init.h(48): error: #20: identifier "u16" is undefined
void LCD_Address_Set(u16 x1,u16 y1,u16 x2,u16 y2);//设置坐标函数
DEVICE\lcd_init.h(48): error: #20: identifier "u16" is undefined
void LCD_Address_Set(u16 x1,u16 y1,u16 x2,u16 y2);//设置坐标函数
DEVICE\delay.h(5): error: #20: identifier "u8" is undefined
void delay_init(u8 SYSCLK);
DEVICE\delay.h(6): error: #20: identifier "u16" is undefined
void delay_ms(u16 nms);
DEVICE\delay.h(7): error: #20: identifier "u32" is undefined
void delay_us(u32 nus);
DEVICE\lcd_init.c(6): error: #20: identifier "GPIO_InitTypeDef" is undefined
GPIO_InitTypeDef GPIO_InitStructure;
DEVICE\lcd_init.c(8): warning: #223-D: function "RCC_AHB1PeriphClockCmd" declared implicitly
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE|RCC_AHB1Periph_GPIOG, ENABLE);//使能PORTA~E,PORTG时钟
DEVICE\lcd_init.c(8): error: #20: identifier "RCC_AHB1Periph_GPIOA" is undefined
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE|RCC_AHB1Periph_GPIOG, ENABLE);//使能PORTA~E,PORTG时钟
DEVICE\lcd_init.c(8): error: #20: identifier "RCC_AHB1Periph_GPIOB" is undefined
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE|RCC_AHB1Periph_GPIOG, ENABLE);//使能PORTA~E,PORTG时钟
DEVICE\lcd_init.c(8): error: #20: identifier "RCC_AHB1Periph_GPIOC" is undefined
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE|RCC_AHB1Periph_GPIOG, ENABLE);//使能PORTA~E,PORTG时钟
DEVICE\lcd_init.c(8): error: #20: identifier "RCC_AHB1Periph_GPIOD" is undefined
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE|RCC_AHB1Periph_GPIOG, ENABLE);//使能PORTA~E,PORTG时钟
DEVICE\lcd_init.c(8): error: #20: identifier "RCC_AHB1Periph_GPIOE" is undefined
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE|RCC_AHB1Periph_GPIOG, ENABLE);//使能PORTA~E,PORTG时钟
DEVICE\lcd_init.c(8): error: #20: identifier "RCC_AHB1Periph_GPIOG" is undefined
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA|RCC_AHB1Periph_GPIOB|RCC_AHB1Periph_GPIOC|RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE|RCC_AHB1Periph_GPIOG, ENABLE);//使能PORTA~E,PORTG时钟
DEVICE\lcd_init.c(10): error: #20: identifier "GPIO_Pin_12" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12;
DEVICE\lcd_init.c(11): error: #20: identifier "GPIO_Mode_OUT" is undefined
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;//普通输出模式
DEVICE\lcd_init.c(12): error: #20: identifier "GPIO_OType_PP" is undefined
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//推挽输出
DEVICE\lcd_init.c(13): error: #20: identifier "GPIO_Speed_100MHz" is undefined
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;//100MHz
DEVICE\lcd_init.c(14): error: #20: identifier "GPIO_PuPd_UP" is undefined
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;//上拉
DEVICE\lcd_init.c(15): warning: #223-D: function "GPIO_Init" declared implicitly
GPIO_Init(GPIOG, &GPIO_InitStructure);//初始化
DEVICE\lcd_init.c(16): warning: #223-D: function "GPIO_SetBits" declared implicitly
GPIO_SetBits(GPIOG,GPIO_Pin_12);
DEVICE\lcd_init.c(18): error: #20: identifier "GPIO_Pin_1" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1|GPIO_Pin_4|GPIO_Pin_5|GPIO_Pin_15 ;
DEVICE\lcd_init.c(18): error: #20: identifier "GPIO_Pin_4" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1|GPIO_Pin_4|GPIO_Pin_5|GPIO_Pin_15 ;
DEVICE\lcd_init.c(18): error: #20: identifier "GPIO_Pin_5" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1|GPIO_Pin_4|GPIO_Pin_5|GPIO_Pin_15 ;
DEVICE\lcd_init.c(18): error: #20: identifier "GPIO_Pin_15" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1|GPIO_Pin_4|GPIO_Pin_5|GPIO_Pin_15 ;
DEVICE\lcd_init.c(26): error: #20: identifier "GPIO_Pin_8" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8|GPIO_Pin_10;
DEVICE\lcd_init.c(26): error: #20: identifier "GPIO_Pin_10" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8|GPIO_Pin_10;
DEVICE\lcd_init.c: 3 warnings, 30 errors
compiling lcd.c...
DEVICE\sys.h(72): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
DEVICE\lcd.h(6): error: #20: identifier "u16" is undefined
void LCD_Fill(u16 xsta,u16 ysta,u16 xend,u16 yend,u16 color);//指定区域填充颜色
DEVICE\lcd.h(6): error: #20: identifier "u16" is undefined
void LCD_Fill(u16 xsta,u16 ysta,u16 xend,u16 yend,u16 color);//指定区域填充颜色
DEVICE\lcd.h(6): error: #20: identifier "u16" is undefined
void LCD_Fill(u16 xsta,u16 ysta,u16 xend,u16 yend,u16 color);//指定区域填充颜色
DEVICE\lcd.h(6): error: #20: identifier "u16" is undefined
void LCD_Fill(u16 xsta,u16 ysta,u16 xend,u16 yend,u16 color);//指定区域填充颜色
DEVICE\lcd.h(6): error: #20: identifier "u16" is undefined
void LCD_Fill(u16 xsta,u16 ysta,u16 xend,u16 yend,u16 color);//指定区域填充颜色
DEVICE\lcd.h(7): error: #20: identifier "u16" is undefined
void LCD_DrawPoint(u16 x,u16 y,u16 color);//在指定位置画一个点
DEVICE\lcd.h(7): error: #20: identifier "u16" is undefined
void LCD_DrawPoint(u16 x,u16 y,u16 color);//在指定位置画一个点
DEVICE\lcd.h(7): error: #20: identifier "u16" is undefined
void LCD_DrawPoint(u16 x,u16 y,u16 color);//在指定位置画一个点
DEVICE\lcd.h(8): error: #20: identifier "u16" is undefined
void LCD_DrawLine(u16 x1,u16 y1,u16 x2,u16 y2,u16 color);//在指定位置画一条线
DEVICE\lcd.h(8): error: #20: identifier "u16" is undefined
void LCD_DrawLine(u16 x1,u16 y1,u16 x2,u16 y2,u16 color);//在指定位置画一条线
DEVICE\lcd.h(8): error: #20: identifier "u16" is undefined
void LCD_DrawLine(u16 x1,u16 y1,u16 x2,u16 y2,u16 color);//在指定位置画一条线
DEVICE\lcd.h(8): error: #20: identifier "u16" is undefined
void LCD_DrawLine(u16 x1,u16 y1,u16 x2,u16 y2,u16 color);//在指定位置画一条线
DEVICE\lcd.h(8): error: #20: identifier "u16" is undefined
void LCD_DrawLine(u16 x1,u16 y1,u16 x2,u16 y2,u16 color);//在指定位置画一条线
DEVICE\lcd.h(9): error: #20: identifier "u16" is undefined
void LCD_DrawRectangle(u16 x1, u16 y1, u16 x2, u16 y2,u16 color);//在指定位置画一个矩形
DEVICE\lcd.h(9): error: #20: identifier "u16" is undefined
void LCD_DrawRectangle(u16 x1, u16 y1, u16 x2, u16 y2,u16 color);//在指定位置画一个矩形
DEVICE\lcd.h(9): error: #20: identifier "u16" is undefined
void LCD_DrawRectangle(u16 x1, u16 y1, u16 x2, u16 y2,u16 color);//在指定位置画一个矩形
DEVICE\lcd.h(9): error: #20: identifier "u16" is undefined
void LCD_DrawRectangle(u16 x1, u16 y1, u16 x2, u16 y2,u16 color);//在指定位置画一个矩形
DEVICE\lcd.h(9): error: #20: identifier "u16" is undefined
void LCD_DrawRectangle(u16 x1, u16 y1, u16 x2, u16 y2,u16 color);//在指定位置画一个矩形
DEVICE\lcd.h(10): error: #20: identifier "u16" is undefined
void Draw_Circle(u16 x0,u16 y0,u8 r,u16 color);//在指定位置画一个圆
DEVICE\lcd.h(10): error: #20: identifier "u16" is undefined
void Draw_Circle(u16 x0,u16 y0,u8 r,u16 color);//在指定位置画一个圆
DEVICE\lcd.h(10): error: #20: identifier "u8" is undefined
void Draw_Circle(u16 x0,u16 y0,u8 r,u16 color);//在指定位置画一个圆
DEVICE\lcd.h(10): error: #20: identifier "u16" is undefined
void Draw_Circle(u16 x0,u16 y0,u8 r,u16 color);//在指定位置画一个圆
DEVICE\lcd.h(12): error: #20: identifier "u16" is undefined
void LCD_ShowChinese(u16 x,u16 y,u8 *s,u16 fc,u16 bc,u8 sizey,u8 mode);//显示汉字串
DEVICE\lcd.h(12): error: #20: identifier "u16" is undefined
void LCD_ShowChinese(u16 x,u16 y,u8 *s,u16 fc,u16 bc,u8 sizey,u8 mode);//显示汉字串
DEVICE\lcd.h(12): error: #20: identifier "u8" is undefined
void LCD_ShowChinese(u16 x,u16 y,u8 *s,u16 fc,u16 bc,u8 sizey,u8 mode);//显示汉字串
DEVICE\lcd.h(12): error: #20: identifier "u16" is undefined
void LCD_ShowChinese(u16 x,u16 y,u8 *s,u16 fc,u16 bc,u8 sizey,u8 mode);//显示汉字串
DEVICE\lcd.h(12): error: #20: identifier "u16" is undefined
void LCD_ShowChinese(u16 x,u16 y,u8 *s,u16 fc,u16 bc,u8 sizey,u8 mode);//显示汉字串
DEVICE\lcd.h(12): error: #20: identifier "u8" is undefined
void LCD_ShowChinese(u16 x,u16 y,u8 *s,u16 fc,u16 bc,u8 sizey,u8 mode);//显示汉字串
DEVICE\lcd.h(12): error: #20: identifier "u8" is undefined
void LCD_ShowChinese(u16 x,u16 y,u8 *s,u16 fc,u16 bc,u8 sizey,u8 mode);//显示汉字串
DEVICE\lcd.c: 0 warnings, 30 errors
compiling sys.c...
DEVICE\sys.h(72): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
DEVICE\sys.c(25): error: #20: identifier "u32" is undefined
__asm void MSR_MSP(u32 addr)
DEVICE\sys.c: 0 warnings, 2 errors
compiling delay.c...
.\DEVICE\sys.h(72): error: #20: identifier "u32" is undefined
void MSR_MSP(u32 addr); //设置堆栈地址
DEVICE\delay.h(5): error: #20: identifier "u8" is undefined
void delay_init(u8 SYSCLK);
DEVICE\delay.h(6): error: #20: identifier "u16" is undefined
void delay_ms(u16 nms);
DEVICE\delay.h(7): error: #20: identifier "u32" is undefined
void delay_us(u32 nus);
DEVICE\delay.c(10): error: #20: identifier "u8" is undefined
static u8 fac_us=0; //us延时倍乘数
DEVICE\delay.c(11): error: #20: identifier "u16" is undefined
static u16 fac_ms=0; //ms延时倍乘数,在os下,代表每个节拍的ms数
DEVICE\delay.c(90): error: #20: identifier "u8" is undefined
void delay_init(u8 SYSCLK)
DEVICE\delay.c(95): warning: #223-D: function "SysTick_CLKSourceConfig" declared implicitly
SysTick_CLKSourceConfig(SysTick_CLKSource_HCLK_Div8);
DEVICE\delay.c(95): error: #20: identifier "SysTick_CLKSource_HCLK_Div8" is undefined
SysTick_CLKSourceConfig(SysTick_CLKSource_HCLK_Div8);
DEVICE\delay.c(106): error: #20: identifier "u16" is undefined
fac_ms=(u16)fac_us*1000; //非OS下,代表每个ms需要的systick时钟数
DEVICE\delay.c(106): error: #65: expected a ";"
fac_ms=(u16)fac_us*1000; //非OS下,代表每个ms需要的systick时钟数
DEVICE\delay.c(154): error: #20: identifier "u32" is undefined
void delay_us(u32 nus)
DEVICE\delay.c(156): error: #20: identifier "u32" is undefined
u32 temp;
DEVICE\delay.c(173): error: #20: identifier "u16" is undefined
void delay_xms(u16 nms)
DEVICE\delay.c(175): error: #20: identifier "u32" is undefined
u32 temp;
DEVICE\delay.c(176): error: #20: identifier "u32" is undefined
SysTick->LOAD=(u32)nms*fac_ms; //时间加载(SysTick->LOAD为24bit)
DEVICE\delay.c(176): error: #65: expected a ";"
SysTick->LOAD=(u32)nms*fac_ms; //时间加载(SysTick->LOAD为24bit)
DEVICE\delay.c(188): error: #20: identifier "u16" is undefined
void delay_ms(u16 nms)
DEVICE\delay.c(190): error: #20: identifier "u8" is undefined
u8 repeat=nms/540; //这里用540,是考虑到某些客户可能超频使用,
DEVICE\delay.c(192): error: #20: identifier "u16" is undefined
u16 remain=nms%540;
DEVICE\delay.c: 1 warning, 19 errors
compiling system_stm32f4xx.c...
compiling main.c...
compiling stm32f4xx_hal_dma.c...
compiling stm32f4xx_it.c...
RTE\Device\STM32F407ZGTx\STCubeGenerated\Src\stm32f4xx_it.c(209): error: #20: identifier "UART1_Handler" is undefined
HAL_UART_Transmit(&UART1_Handler, &abuffer, 1, 10);//????????
RTE\Device\STM32F407ZGTx\STCubeGenerated\Src\stm32f4xx_it.c(209): error: #20: identifier "abuffer" is undefined
HAL_UART_Transmit(&UART1_Handler, &abuffer, 1, 10);//????????
RTE\Device\STM32F407ZGTx\STCubeGenerated\Src\stm32f4xx_it.c: 0 warnings, 2 errors
compiling stm32f4xx_hal_cortex.c...
compiling stm32f4xx_hal.c...
compiling stm32f4xx_hal_tim_ex.c...
compiling stm32f4xx_hal_pwr.c...
compiling stm32f4xx_hal_dma_ex.c...
compiling stm32f4xx_hal_pwr_ex.c...
compiling stm32f4xx_hal_msp.c...
compiling stm32f4xx_hal_usart.c...
compiling stm32f4xx_hal_gpio.c...
compiling stm32f4xx_hal_rcc_ex.c...
compiling stm32f4xx_hal_uart.c...
compiling stm32f4xx_hal_rcc.c...
compiling stm32f4xx_hal_tim.c...
".\Objects\leddemo.axf" - 83 Error(s), 4 Warning(s).
Target not created.
Build Time Elapsed: 00:00:05