新手入门
- 积分
- 12
- 金钱
- 12
- 注册时间
- 2022-8-21
- 在线时间
- 1 小时
|
1金钱
*** Using Compiler 'V5.06 update 3 (build 300)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'Build target 'Template'
compiling main.c...
main.c(15): error: #20: identifier "GPIO_InitTypeDef" is undefined
GPIO_InitTypeDef GPIO_Initure;
main.c(17): warning: #223-D: function "HAL_Init" declared implicitly
HAL_Init();
main.c(18): warning: #223-D: function "Stm32_Clock_Init" declared implicitly
Stm32_Clock_Init(RCC_PLL_MUL9);
main.c(18): error: #20: identifier "RCC_PLL_MUL9" is undefined
Stm32_Clock_Init(RCC_PLL_MUL9);
main.c(20): warning: #223-D: function "__HAL_RCC_GPIOA_CLK_ENABLE" declared implicitly
__HAL_RCC_GPIOA_CLK_ENABLE();
main.c(21): warning: #223-D: function "__HAL_RCC_GPIOD_CLK_ENABLE" declared implicitly
__HAL_RCC_GPIOD_CLK_ENABLE();
main.c(23): error: #20: identifier "GPIO_PIN_8" is undefined
GPIO_Initure.Pin=GPIO_PIN_8; //PA8
main.c(24): error: #20: identifier "GPIO_MODE_OUTPUT_PP" is undefined
GPIO_Initure.Mode=GPIO_MODE_OUTPUT_PP;
main.c(25): error: #20: identifier "GPIO_PULLUP" is undefined
GPIO_Initure.Pull=GPIO_PULLUP;
main.c(26): error: #20: identifier "GPIO_SPEED_FREQ_HIGH" is undefined
GPIO_Initure.Speed=GPIO_SPEED_FREQ_HIGH;
main.c(27): warning: #223-D: function "HAL_GPIO_Init" declared implicitly
HAL_GPIO_Init(GPIOA,&GPIO_Initure);
main.c(29): error: #20: identifier "GPIO_PIN_2" is undefined
GPIO_Initure.Pin=GPIO_PIN_2; //PD2
main.c(34): warning: #223-D: function "HAL_GPIO_WritePin" declared implicitly
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_8,GPIO_PIN_SET);
main.c(34): error: #20: identifier "GPIO_PIN_SET" is undefined
HAL_GPIO_WritePin(
PIOA,GPIO_PIN_8,GPIO_PIN_SET);
main.c(37): error: #20: identifier "GPIO_PIN_RESET" is undefined
HAL_GPIO_WritePin(
PIOA,GPIO_PIN_8,GPIO_PIN_RESET);
main.c: 6 warnings, 9 errors
compiling usart.c...
..\SYSTEM\usart\usart.c(75): error: #20: identifier "GPIO_InitTypeDef" is undefined
GPIO_InitTypeDef GPIO_InitStructure;
..\SYSTEM\usart\usart.c(76): error: #20: identifier "USART_InitTypeDef" is undefined
USART_InitTypeDef USART_InitStructure;
..\SYSTEM\usart\usart.c(77): error: #20: identifier "NVIC_InitTypeDef" is undefined
NVIC_InitTypeDef NVIC_InitStructure;
..\SYSTEM\usart\usart.c(79): warning: #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly
RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1|RCC_APB2Periph_GPIOA, ENABLE); //使??USART1,GPIOA时??
..\SYSTEM\usart\usart.c(79): error: #20: identifier "RCC_APB2Periph_USART1" is undefined
RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1|RCC_APB2Periph_GPIOA, ENABLE); //使??USART1,GPIOA时??
..\SYSTEM\usart\usart.c(79): error: #20: identifier "RCC_APB2Periph_GPIOA" is undefined
RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1|RCC_APB2Periph_GPIOA, ENABLE); //使??USART1,GPIOA时??
..\SYSTEM\usart\usart.c(82): error: #20: identifier "GPIO_Pin_9" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9; //PA.9
..\SYSTEM\usart\usart.c(83): error: #20: identifier "GPIO_Speed_50MHz" is undefined
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
..\SYSTEM\usart\usart.c(84): error: #20: identifier "GPIO_Mode_AF_PP" is undefined
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //复???????涑?
..\SYSTEM\usart\usart.c(85): warning: #223-D: function "GPIO_Init" declared implicitly
GPIO_Init(GPIOA, &GPIO_InitStructure);//??始化GPIOA.9
..\SYSTEM\usart\usart.c(88): error: #20: identifier "GPIO_Pin_10" is undefined
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;//PA10
..\SYSTEM\usart\usart.c(89): error: #20: identifier "GPIO_Mode_IN_FLOATING" is undefined
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;//浮??????
..\SYSTEM\usart\usart.c(97): warning: #223-D: function "NVIC_Init" declared implicitly
NVIC_Init(&NVIC_InitStructure); //??指定?牟???始化VIC?拇???
..\SYSTEM\usart\usart.c(102): error: #20: identifier "USART_WordLength_8b" is undefined
USART_InitStructure.USART_WordLength = USART_WordLength_8b;//?殖?为8位?莞?式
..\SYSTEM\usart\usart.c(103): error: #20: identifier "USART_StopBits_1" is undefined
USART_InitStructure.USART_StopBits = USART_StopBits_1;//一??停止位
..\SYSTEM\usart\usart.c(104): error: #20: identifier "USART_Parity_No" is undefined
USART_InitStructure.USART_Parity = USART_Parity_No;//????偶校??位
..\SYSTEM\usart\usart.c(105): error: #20: identifier "USART_HardwareFlowControl_None" is undefined
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;//??硬?????骺???
..\SYSTEM\usart\usart.c(106): error: #20: identifier "USART_Mode_Rx" is undefined
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; //?辗?模式
..\SYSTEM\usart\usart.c(106): error: #20: identifier "USART_Mode_Tx" is undefined
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; //?辗?模式
..\SYSTEM\usart\usart.c(108): warning: #223-D: function "USART_Init" declared implicitly
USART_Init(USART1, &USART_InitStructure); //??始化串??1
..\SYSTEM\usart\usart.c(109): warning: #223-D: function "USART_ITConfig" declared implicitly
USART_ITConfig(USART1, USART_IT_RXNE, ENABLE);//开?舸诮????卸?
..\SYSTEM\usart\usart.c(109): error: #20: identifier "USART_IT_RXNE" is undefined
USART_ITConfig(
SART1, USART_IT_RXNE, ENABLE);//开?舸诮????卸?
..\SYSTEM\usart\usart.c(110): warning: #223-D: function "USART_Cmd" declared implicitly
USART_Cmd(USART1, ENABLE); //使?艽?1
..\SYSTEM\usart\usart.c(120): warning: #223-D: function "USART_GetITStatus" declared implicitly
if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET) //?????卸?(???盏降??荼?????0x0d 0x0a??尾)
..\SYSTEM\usart\usart.c(120): error: #20: identifier "USART_IT_RXNE" is undefined
if(USART_GetITStatus(
SART1, USART_IT_RXNE) != RESET) //?????卸?(???盏降??荼?????0x0d 0x0a??尾)
..\SYSTEM\usart\usart.c(122): warning: #223-D: function "USART_ReceiveData" declared implicitly
Res =USART_ReceiveData(USART1); //??取???盏降???
..\SYSTEM\usart\usart.c: 8 warnings, 18 errors
compiling delay.c...
..\SYSTEM\delay\delay.c(133): warning: #223-D: function "SysTick_CLKSourceConfig" declared implicitly
SysTick_CLKSourceConfig(SysTick_CLKSource_HCLK_Div8); //选???獠?时?? HCLK/8
..\SYSTEM\delay\delay.c(133): error: #20: identifier "SysTick_CLKSource_HCLK_Div8" is undefined
SysTick_CLKSourceConfig(SysTick_CLKSource_HCLK_Div8); //选???獠?时?? HCLK/8
..\SYSTEM\delay\delay.c: 1 warning, 1 error
compiling stm32f1xx_it.c...
main.h(26): error: #5: cannot open source input file "stm3210e_eval.h": No such file or directory
#include "stm3210e_eval.h"
stm32f1xx_it.c: 0 warnings, 1 error
compiling stm32f1xx_hal_msp.c...
main.h(26): error: #5: cannot open source input file "stm3210e_eval.h": No such file or directory
#include "stm3210e_eval.h"
stm32f1xx_hal_msp.c: 0 warnings, 1 error
compiling stm32f1xx_hal_rcc_ex.c...
..\HALLIB\Src\stm32f1xx_hal_rcc_ex.c(116): error: #268: declaration may not appear after executable statement in block
FlagStatus pwrclkchanged = RESET;
..\HALLIB\Src\stm32f1xx_hal_rcc_ex.c: 0 warnings, 1 error
"..\OBJ\TEMPATE.axf" - 31 Error(s), 15 Warning(s).
Target not created.
Build Time Elapsed: 00:00:02
|
|