TI中文支持网
TI专业的中文技术问题搜集分享网站

用的是F28377s,编译出现下面的问题,时间比较急,希望大佬指点一二!

Description Resource Path Location Type
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCIHBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 130 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCILBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 131 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCITXBUF_REG" DownlinkDemodulator.c /PrjExe_DHL_Modem/Src_DownlinkDemodulator line 57 C/C++ Problem

mangui zhang:1.缺少相关头文件的包含
2.相关返回值的函数赋给了类型不匹配的变量

Description Resource Path Location Type
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCIHBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 130 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCILBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 131 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCITXBUF_REG" DownlinkDemodulator.c /PrjExe_DHL_Modem/Src_DownlinkDemodulator line 57 C/C++ Problem

Seven Han:您可以看下是否存在以下帖子中的操作:
e2e.ti.com/…/669910

Description Resource Path Location Type
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCIHBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 130 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCILBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 131 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCITXBUF_REG" DownlinkDemodulator.c /PrjExe_DHL_Modem/Src_DownlinkDemodulator line 57 C/C++ Problem

Eric Ma:

“#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCIHBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 130 C/C++ Problem#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCILBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 131 C/C++ Problem#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCITXBUF_REG" DownlinkDemodulator.c /PrjExe_DHL_Modem/Src_DownlinkDemodulator line 57 C/C++ Problem”

ERIC:

回去检查你是如何定义这个SCITXBUF_REG 寄存器的,不会是unsigned int 某寄存器吧。

Description Resource Path Location Type
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCIHBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 130 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCILBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 131 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCITXBUF_REG" DownlinkDemodulator.c /PrjExe_DHL_Modem/Src_DownlinkDemodulator line 57 C/C++ Problem

user5313019:

回复 Eric Ma:

这个定义在E:\ti\controlSUITE\device_support\F2837xS\v210\F2837xS_headers\include文件夹中的F2837Xs_sci.h中,原代码为:
unionSCIHBAUD_REGSCIHBAUD;unionSCILBAUD_REGSCILBAUD;
这是我从官网下载的驱动代码,难道这需要修改?

Description Resource Path Location Type
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCIHBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 130 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCILBAUD_REG" InitSCI.c /PrjExe_DHL_Modem/Src_Modem_F28/ChipDrv line 131 C/C++ Problem
#515 a value of type "unsigned int" cannot be assigned to an entity of type "union SCITXBUF_REG" DownlinkDemodulator.c /PrjExe_DHL_Modem/Src_DownlinkDemodulator line 57 C/C++ Problem

Rayna Wang:

回复 user5313019:

InitSCI.c 文件是你自己写的吗?有没有添加以下头文件?
#include "F2837xS_device.h"// F2837xS Headerfile Include File
#include "F2837xS_Examples.h"// F2837xS Examples Include File

赞(0)
未经允许不得转载:TI中文支持网 » 用的是F28377s,编译出现下面的问题,时间比较急,希望大佬指点一二!
分享到: 更多 (0)