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