楼主: outman

[原创]奥特曼Zigbee读书日记(三)-- 设备“对话”专题(1)

[复制链接]
randman 发表于 2010-11-25 14:07:50 | 显示全部楼层
不错的论坛,不错的帖子
遥不可及007 发表于 2010-12-14 16:15:35 | 显示全部楼层
我是个初学者,刚刚找到这个论坛时就有了一种温馨的感觉!哈哈,真的学到了很多东西,谢谢你,outman!
littlesong007 发表于 2010-12-16 09:09:57 | 显示全部楼层
顶,多谢楼主分享,楼主辛苦。
ok258200 发表于 2010-12-31 21:03:58 | 显示全部楼层
7. 增加自己的“应用”,在source文件夹中,仿照GenericApp里的源文件,增加三个文件BeginApp.c/BeginApp.h/OSAL_BeginApp.c,然后写自己想写的东西罗~
??、、
beckham 发表于 2011-1-4 23:21:47 | 显示全部楼层
本帖最后由 beckham 于 2011-1-4 23:23 编辑

根据OUTman自己添加工程的办法,我一步一步做下来,也是对照例程中的geneticapp 最后编译的时候出现如下问题:(用的协议栈ZStack-CC2530-2.3.0-1.4.0)。
Error[e46]: Undefined external "zgApsDefaultMaxBindingTime" referred in APS ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\ TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgApsUseExtendedPANID" referred in APS ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\
TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgApsUseInsecureJoin" referred in APS ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\ bin\Router.lib )
Error[e46]: Undefined external "zgNwkMode" referred in AddrMgr ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\bin\ Router.lib )
Error[e46]: Undefined external "zgConfigPANID" referred in AddrMgr ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\bin\
Router.lib )
Error[e46]: Undefined external "zgApscMaxFrameRetries" referred in AddrMgr ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\ TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgApscAckWaitDurationPolled" referred in AddrMgr ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\ TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgConcentratorRC" referred in AddrMgr ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\
bin\Router.lib )
Error[e46]: Undefined external "zgConcentratorRadius" referred in AddrMgr ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\ TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgConcentratorEnable" referred in nwk ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\bin\
Router.lib )
Error[e46]: Undefined external "zgConcentratorDiscoveryTime" referred in nwk ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\ TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgStackProfile" referred in nwk ( C:\Documents and Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\bin\
Router.lib )
Error[e46]: Undefined external "zgMaxDataRetries" referred in nwk ( C:\Documents and

Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\bin\
Router.lib )
Error[e46]: Undefined external "zgSecurityMode" referred in nwk ( C:\Documents and

Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\bin\
Router.lib )
Error[e46]: Undefined external "zgMaxPollFailureRetries" referred in nwk ( C:\Documents and

Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\
bin\Router.lib )
Error[e46]: Undefined external "zgResponsePollRate" referred in nwk ( C:\Documents and

Settings\Administrator\桌面\BeginApp\Libraries\TI2530DB\bin\
Router.lib )
Error[e46]: Undefined external "zgSetItem::?relay" referred in MT_SYS ( C:\Documents and

Settings\Administrator\桌面\BeginApp\BeginApp\IAR Project\
CoordinatorEB\Obj\MT_SYS.r51 )
Error[e46]: Undefined external "zgInitItems::?relay" referred in ZDApp ( C:\Documents and

Settings\Administrator\桌面\BeginApp\BeginApp\IAR Project\
CoordinatorEB\Obj\ZDApp.r51 )
Error[e46]: Undefined external "zgWriteStartupOptions::?relay" referred in ZDApp (

C:\Documents and Settings\Administrator\桌面\BeginApp\BeginApp\
IAR Project\CoordinatorEB\Obj\ZDApp.r51 )
Error[e46]: Undefined external "zgDeviceLogicalType" referred in ZDApp ( C:\Documents and

Settings\Administrator\桌面\BeginApp\BeginApp\IAR  
Project\CoordinatorEB\Obj\ZDApp.r51 )
Error[e46]: Undefined external "zgDefaultChannelList" referred in ZDObject ( C:\Documents

and Settings\Administrator\桌面\BeginApp\BeginApp\IAR  
Project\CoordinatorEB\Obj\ZDObject.r51 )
Error[e46]: Undefined external "zgDefaultStartingScanDuration" referred in ZDObject (

C:\Documents and Settings\Administrator\桌面\BeginApp\
BeginApp\IAR Project\CoordinatorEB\Obj\ZDObject.r51 )
Error[e46]: Undefined external "zgInit::?relay" referred in ZMain ( C:\Documents and

Settings\Administrator\桌面\BeginApp\BeginApp\IAR Project\
CoordinatorEB\Obj\ZMain.r51 )
Error[e46]: Undefined external "zgBcastDeliveryTime" referred in nwk_globals ( C:\Documents

and Settings\Administrator\桌面\BeginApp\BeginApp\IAR  
Project\CoordinatorEB\Obj\nwk_globals.r51 )
Error[e46]: Undefined external "zgPassiveAckTimeout" referred in nwk_globals ( C:\Documents

and Settings\Administrator\桌面\BeginApp\BeginApp\IAR  
Project\CoordinatorEB\Obj\nwk_globals.r51 )
Error[e46]: Undefined external "zgMaxBcastRetires" referred in nwk_globals ( C:\Documents

and Settings\Administrator\桌面\BeginApp\BeginApp\IAR  
Project\CoordinatorEB\Obj\nwk_globals.r51 )
Error[e46]: Undefined external "zgIndirectMsgTimeout" referred in nwk_globals (

C:\Documents and Settings\Administrator\桌面\BeginApp\BeginApp\IAR  
Project\CoordinatorEB\Obj\nwk_globals.r51 )
Error[e46]: Undefined external "zgRouteExpiryTime" referred in nwk_globals ( C:\Documents

and Settings\Administrator\桌面\BeginApp\BeginApp\IAR  
Project\CoordinatorEB\Obj\nwk_globals.r51 )
Error[e46]: Undefined external "zgExtendedPANID" referred in nwk_globals ( C:\Documents and

Settings\Administrator\桌面\BeginApp\BeginApp\IAR  
Project\CoordinatorEB\Obj\nwk_globals.r51 )
Error while running Linker
 楼主| outman 发表于 2011-1-4 23:28:27 | 显示全部楼层
不要把程序文件放在桌面,第一,这个习惯不好;第二,IAR对中文的文件名识别有问题。
beckham 发表于 2011-1-4 23:51:07 | 显示全部楼层
谢谢outman的解答!
我把文件移到其他盘下面,编译时出现新的问题了:是不是之前添加的文件要重新添加

Changed settings forces a full rebuild...
Building configuration: BeginApp - Debug
Updating build tree...
Error[e46]: Undefined external "zgApsDefaultMaxBindingTime" referred in APS ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgApsUseExtendedPANID" referred in APS ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgApsUseInsecureJoin" referred in APS ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgNwkMode" referred in AddrMgr ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgConfigPANID" referred in AddrMgr ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgApscMaxFrameRetries" referred in AddrMgr ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgApscAckWaitDurationPolled" referred in AddrMgr ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgConcentratorRC" referred in AddrMgr ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgConcentratorRadius" referred in AddrMgr ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgConcentratorEnable" referred in nwk ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgConcentratorDiscoveryTime" referred in nwk ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgStackProfile" referred in nwk ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgMaxDataRetries" referred in nwk ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgSecurityMode" referred in nwk ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgMaxPollFailureRetries" referred in nwk ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgResponsePollRate" referred in nwk ( D:\zigbee\BeginApp\Libraries\TI2530DB\bin\Router.lib )
Error[e46]: Undefined external "zgSetItem::?relay" referred in MT_SYS ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\MT_SYS.r51 )
Error[e46]: Undefined external "zgInitItems::?relay" referred in ZDApp ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\ZDApp.r51 )
Error[e46]: Undefined external "zgWriteStartupOptions::?relay" referred in ZDApp ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\ZDApp.r51 )
Error[e46]: Undefined external "zgDeviceLogicalType" referred in ZDApp ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\ZDApp.r51 )
Error[e46]: Undefined external "zgDefaultChannelList" referred in ZDObject ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\ZDObject.r51 )
Error[e46]: Undefined external "zgDefaultStartingScanDuration" referred in ZDObject ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\
ZDObject.r51 )
Error[e46]: Undefined external "zgInit::?relay" referred in ZMain ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\ZMain.r51 )
Error[e46]: Undefined external "zgBcastDeliveryTime" referred in nwk_globals ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\nwk_globals.r51 )
Error[e46]: Undefined external "zgPassiveAckTimeout" referred in nwk_globals ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\
nwk_globals.r51 )
Error[e46]: Undefined external "zgMaxBcastRetires" referred in nwk_globals ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\nwk_globals.r51 )
Error[e46]: Undefined external "zgIndirectMsgTimeout" referred in nwk_globals ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\nwk_globals.r51  
)
Error[e46]: Undefined external "zgRouteExpiryTime" referred in nwk_globals ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\nwk_globals.r51 )
Error[e46]: Undefined external "zgExtendedPANID" referred in nwk_globals ( D:\zigbee\BeginApp\BeginApp\IAR Project\Debug\Obj\nwk_globals.r51 )
Error while running Linker

Total number of errors: 29
Total number of warnings: 0
 楼主| outman 发表于 2011-1-5 00:21:09 | 显示全部楼层
注意下面这两个文件夹位置的设置:

另外,在“C/C++ compiler ==> extra options”中,我们又找到了“tools”;在“linker ==> extra options”中我们又找到了这个Libraries,这两个必须的文件夹,也拷到一级BeginApp根目录下。


实际上,Projects\zstack\Libraries\TI2530DB\bin这个目录下的库文件是编译时需要的。
beckham 发表于 2011-1-5 00:38:52 | 显示全部楼层
回复 58# outman


    已经弄好了 编译没有错误 谢谢啊!
beckham 发表于 2011-1-5 10:33:43 | 显示全部楼层
回复 56# outman


    这边再补充一下,昨天按照读书日记上的方法,建立一个beginApp项目,之前刚开始的时候为了方便把文件夹建在了桌面上,IAR不识别中文路径,这个outman已经说了,偶知道错了!后来我把文件夹移动到了其他盘下面,重新编译还是出现错误,于是就去查一些原先的option里面的配置,发现路径不对。改过来后重新编译还是出现了问题,问题在上面帖子里面。我分析是主要原因是原先我在桌面下面编译过文件,导致该工程下面的某些生成的文件跟路径有关的,所以重新编译还是有错误,不知道理解的对不对,大家指点下!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

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

本版积分规则

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