OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2971|回复: 2

初级编译错误-串口实验

[复制链接]

8

主题

27

帖子

0

精华

初级会员

Rank: 2

积分
188
金钱
188
注册时间
2018-7-11
在线时间
38 小时
发表于 2019-3-1 13:00:37 | 显示全部楼层 |阅读模式
1金钱
1111.PNG
串口实验,编译之后显示错误如下[mw_shl_code=applescript,true]linking...
..\OBJ\Template.axf: Error: L6218E: Undefined symbol USART_Cmd (referred from usart.o).
..\OBJ\Template.axf: Error: L6218E: Undefined symbol USART_GetITStatus (referred from usart.o).
..\OBJ\Template.axf: Error: L6218E: Undefined symbol USART_ITConfig (referred from usart.o).
..\OBJ\Template.axf: Error: L6218E: Undefined symbol USART_Init (referred from usart.o).
..\OBJ\Template.axf: Error: L6218E: Undefined symbol USART_ReceiveData (referred from usart.o).[/mw_shl_code]


求指导!

[mw_shl_code=applescript,true]#ifndef __USART_H
#define __USART_H
#include "stdio.h"       
#include "stm32f4xx_conf.h"
#include "stm32f4xx.h"
#include "sys.h"
#include "stm32f4xx_usart.h"[/mw_shl_code]


最佳答案

查看完整内容[请看2#楼]

stm32f4xx_usart.h \ stm32f4xx_usart.c 工程中找不到这两个文件,你可能添加的不对吧
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

33

主题

1628

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
6679
金钱
6679
注册时间
2015-8-25
在线时间
1036 小时
发表于 2019-3-1 13:00:38 | 显示全部楼层
stm32f4xx_usart.h  \   stm32f4xx_usart.c   工程中找不到这两个文件,你可能添加的不对吧
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。
回复

使用道具 举报

8

主题

27

帖子

0

精华

初级会员

Rank: 2

积分
188
金钱
188
注册时间
2018-7-11
在线时间
38 小时
 楼主| 发表于 2019-3-1 14:55:00 | 显示全部楼层
szczyb1314 发表于 2019-3-1 14:19
stm32f4xx_usart.h  \   stm32f4xx_usart.c   工程中找不到这两个文件,你可能添加的不对吧

工程是没找到文件,暂时手动复制新建了这两个文件,待以后再查缘由
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-10 00:00

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表