这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » Rhapsody与Tornado vxSim环境的集成调试

共1条 1/1 1 跳转至

Rhapsody与Tornado vxSim环境的集成调试

菜鸟
2005-05-15 05:45:13     打赏

环境: tt22 for pentium Rhapsody501 windows2000 pro with sp4

目的:使用Rhapsody的例子程序HomeAlarm在Tornado vxSim环境下做source level调试。

步骤如下:

1,实现一个带网络的vxsim, 并启动windows的Routing and Remote Access服务。 vxsim的启动信息如下: ------------------------------------------------ Attached TCP/IP interface to nt unit 0 Attaching interface lo0...done

VxWorks

Copyright 1984-2002 Wind River Systems, Inc.

CPU: VxSim for Windows Runtime Name: VxWorks Runtime Version: 5.5 BSP version: 1.2/1 Created: May 13 2005, 21:21:02 WDB Comm Type: WDB_COMM_END WDB: Ready.

---------------------------------------------------- lanuch target server, 启动信息如下: tgtsvr (vxsim@ibm-62cvaununql): Sat May 14 17:13:56 2005 Checking License ...OK Connecting to target agent... succeeded. Attaching C++ interface... succeeded. Attaching pecoff OMF reader for SIMNT CPU family... succeeded.

2,为Rhapsody编译vxworks用的SIMNT C++库文件: C:\Tornadopen\host\x86-win32\bin\torVars.bat cd C:\Rhapsody\share\langcpp make -i -s CPU=SIMNT PATH_SEP=\\ all -f vxbuild.mak

否则会得到如下错误: Error: This is not a pecoff module for the SIMNT architecture. Error: Object module load failed for C:/Rhapsody/Samples/CppSamples/HomeAlarm/Test/Debug/Test.out

3,启动C:\Rhapsody\Samples\CppSamples\HomeAlarm\HomeAlarm.rpy, 将Components->Test->configurations->Debug 中将environment设为vxworks, compiler switcher和link中都加上-g选项。 将C:\Rhapsody\Share\Properties\factoryC++.prp中的cup设置为SIMNT,

4,重新编译,Rhapsody中Code->Generate/Make, Code->IDE->Connect,target设置为vxsim@ibm-62cvaununql(上面启动的vxsim名称),

可以连接成功,但是Code->IDE->download时发生错误!! 报错!

IDE error:module contains undefined symbol 如下一些符号不能解析: ___terminate ___sjthrow ___get_eh_context ___10OMReactiveP8OMThread ___builtin_new ___builtin_delete _instance__12OMMainThreadi _instance__18AOMSchedDispatcher _getAOMInstance__18AOMSchedDispatcherPCv _notify__12AOMCallStackPC16AOMAnimationItem12OMMethodType _setThread__10OMReactiveP8OMThreadi _configure__15AlarmControllerP9IHardware __$_10OMReactive ___15AlarmControllerP8OMThread _notifyClearRelation__11AOMInstancePCc _notifyItemAddedToRelation__11AOMInstancePCcP11AOMInstanceii

WDB也会报异常:

0x19a43e8 (tWdbTask): WDB exception. restarting agent in 10 seconds...

这些符号怎么也找不到在哪里定义,google了所有信息都没有帮助,

请熟悉Rhapsody的高手帮帮忙,指点一二,谢谢!




关键词: Rhapsody     Tornado     vxSim     环境    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]