这是什么错误???找不出来哪里错,我是按照原子哥的例程一个字一个字的打代码的。就是串口实验哪里就会变成这样的。
test.axf: Error: L6218E: Undefined symbol USART_RX_BUF (referred from test.o).
test.axf: Error: L6218E: Undefined symbol USART_RX_STA (referred from test.o).
我是新手啊。。原子哥,抽空解答下
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
---------------------------------
请问我这个是什么原因啊
#include "led.h"
#include "delay.h"
#include "key.h"
#include "sys.h"
#include "usart.h"
#include "timer.h"
#include "motor.h"
//ALIENTEK????STM32??·?°????é4
//???????é
//?????§????www.openedv.com
//?????????í??×?????????????
u8 temp;
int main(void)
{
//u8 c;
delay_init(); //???±??????????
NVIC_Configuration(); //?è??NVIC????·?×é2:2??????????????2???ì????????
uart_init(19200); //????????????9600
LED_Init(); //LED??????????
KEY_Init(); //????????°??ü??????????????
TIM2_PWM_Init (199,7199);
TIM3_PWM_Init (199,7199);
TIM4_PWM_Init (199,7199);
while(1)
{
if(temp)
{
switch(temp)
{
case 1:ROBOT_GO_FORWARD();
break;
case 2:ROBOT_GO_BACK();
break;
case 3:ROBOT_GO_LEFT();
break;
case 4:ROBOT_GO_RIGHT();
break;
case 5:ROBOT_STOP();
break;
case 6:ROBOT_DANCING();
break;
case 7:ROBOT_PUSH_UP();
break;
case 8:ROBOT_CLIMBING();
break;
case 9:ROBOT_SWING();
break;
}
}
}
}
linking...
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_CLIMBING (referred from main.o).
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_DANCING (referred from main.o).
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_GO_BACK (referred from main.o).
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_GO_FORWARD (referred from main.o).
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_GO_LEFT (referred from main.o).
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_GO_RIGHT (referred from main.o).
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_PUSH_UP (referred from main.o).
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_STOP (referred from main.o).
..OBJ est.axf: Error: L6218E: Undefined symbol ROBOT_SWING (referred from main.o).
Target not created
#include <stm32f10x_lib.h>
#include "sys.h"
#include "usart.h"
#include "delay.h"
#include "led.h"
u8 USART_RX_BUF[64]; //接收缓冲,最大64个字节.
//接收状态
//bit7,接收完成标志
//bit6,接收到0x0d
//bit5~0,接收到的有效字节数目
u8 USART_RX_STA; //接收状态标记
int main(void)
{
u8 i;
u8 len;
。。。。。
一周热门 更多>