芯科zigbee协调器Z3gateway在全志R11平台交叉编译报错问题

../../../sl/developer/sdks/gecko_sdk_suite/v2.7/protocol/zigbee/app/ezsp-host/ezsp-host-io.c:254:25: error: 'CSTART' undeclared (first use in this function)
     tios.c_cc[VSTART] = CSTART;           // define XON and XOFF
                         ^~~~~~
../../../sl/developer/sdks/gecko_sdk_suite/v2.7/protocol/zigbee/app/ezsp-host/ezsp-host-io.c:254:25: note: each undeclared identifier is reported only once for each function it appears in
../../../sl/developer/sdks/gecko_sdk_suite/v2.7/protocol/zigbee/app/ezsp-host/ezsp-host-io.c:255:24: error: 'CSTOP' undeclared (first use in this function)
     tios.c_cc[VSTOP] = CSTOP;
                        ^~~~~
Makefile:471: recipe for target 'build/ezsp-host-io.o' failed

这个错一开始很懵,咨询了原厂,没得到解答,自己慢慢排查,发现是串口配置的时候引用了几个未定义的宏!

仔细跟踪宏的定义头文件,最终在交叉编译工具的文件里找到,附上解决办法:

#include "/opt/arm-openwrt-linux-toolchain/include/sys/ttydefaults.h"

在ezsp-host-io.c里增加头文件,就可以解决这个错误。

出错的原因应该是原厂的SDK路径配置错误问题,还未定义到具体原因。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值