How to run the VxWorks Simulator from the command line
- Open a "cmd.exe" window.
- Enter the following commands as shown in my session:
C:\>cd c:\Tornado2.2\target\config\simpc C:\Tornado2.2\target\config\simpc>vxworks C:\Tornado2.2\target\config\simpc>cd c:\tornado2.2\host\x86-win32\bin C:\Tornado2.2\host\x86-win32\bin>tgtsvr -V -B wdbpipe -R c:/temp -RW -c c:\Torna do2.2\target\config\simpc\vxWorks.exe vxsim
- The target server icon should now show in your system tray. If you double-click on it, you should see:
tgtsvr (vxsim@MYCOMPUTER): Fri Mar 16 10:32:51 2007 Checking License ...OK Connecting to target agent... succeeded. Attaching C++ interface... succeeded. Attaching pecoff OMF reader for SIMNT CPU family... succeeded.
- Note: Your Tornado registry must already be running. If you setup your Tornado registry to run as a Windows service it will show up as wtxregds.exe in the Processes tab of the Windows Task Manager. If it is not running, you will get something like this:
tgtsvr (vxsim@MYCOMPUTER): Fri Mar 16 16:27:21 2007 Checking License ...OK Cannot contact Wind Registry on host: localhost Target Server will exit
To start the Tornado registry, run wtxregd.exe (not wtxregds.exe) from the command prompt:C:\Tornado2.2\host\x86-win32\bin>wtxregd
- Note: Your Tornado registry must already be running. If you setup your Tornado registry to run as a Windows service it will show up as wtxregds.exe in the Processes tab of the Windows Task Manager. If it is not running, you will get something like this:
- Now start the shell:
C:\Tornado2.2\host\x86-win32\bin>windsh vxsim ///// ///// ///// ///// ///// | ///// ///// ///// ///// ///// | ///// ///// ///// ///// ///// | ///// ///// ///// ///// ///// | ////// ////// ////// ////// ////// | ////// ////// ////// ////// ////// | T O R N A D O ///// ///// ///// ///// ///// | ///// ///// ///// ///// ///// | ///// ///// ///// ///// ///// | Development System //// //// //// //// //// | //// //// //// //// //// | //// //// //// //// //// | Host Based Shell //// //// //// //// //// | //// //// //// //// //// | /// /// /// /// /// | Version 2.2 /// /// /// /// /// | // // // // // | // // // // // | // // // // // | // // // // // | Copyright 1995-2003 Wind River Systems, Inc. C++ Constructors/Destructors Strategy is AUTOMATIC -> i NAME ENTRY TID PRI STATUS PC SP ERRNO DELAY ---------- ------------ -------- --- ---------- -------- -------- ------- ----- tExcTask _excTask ed8de0 0 PEND 40984c ed8ce4 0 0 tLogTask _logTask ed32b0 0 PEND 40984c ed31b4 0 0 tWdbTask _wdbTask ece668 3 READY 40984c ece51c 0 0 value = 0 = 0x0 ->
- Easy. Actually it took me a little while to figure out I needed to specify the VxWorks core file with the -c option for the tgtsvr command. If you don't do this, you will get the following error message:
tgtsvr (vxsim@MYCOMPUTER): Fri Mar 16 10:31:37 2007 Checking License ...OK Connecting to target agent... succeeded. Attaching C++ interface... succeeded. Attaching pecoff OMF reader for SIMNT CPU family... succeeded. Error: Couldn't open C:\Tornado2.2\vxworks: status = 0x2 Error during target server core initialization Target Server will exit
And if you forget to specify the target name, you will get:A target must be specified. Target Server will exit
Tornado Tools Command Line Summary
How to use Tornado GNU tools with Eclipse/CDT
Tornado 2.2 file locations
Comments
Hello I followed the steps but got the error:
%% tgtsvr (vxsim@sheep): Sun Nov 16 20:46:58 2008 Wind River Systems Target Server: NT/Win95 version Connecting to target agent... succeeded. Attaching C++ interface... succeeded. Attaching pecoff OMF reader for SIMNT CPU family... succeeded. Can't lock target server, environment variable WIND_UID is not defined. Target Server will exit %%
Can you help me with it? I don't know where I should define the WIND_UID variable. Thanks for the site. It's very helpful.
Isabelle, I'm not working with VxWorks anymore so I can't help you. Sorry.
Nice blog...I got 2 quests 4u-> 1.I have a BSP (Board support package) with OS VxWorks. I want to copy a part of the BSP's ROM where a specific TASK is storaged and then download to my PC. How Can I do this from VxWork's console?...Commands?...Ideas? 2.I have the IDE tornado 2.2 for PowerPC (2 cd..THX to emule:) and I installed on XP...but I know that exist a tornado for UNIX ..Is on the CD?? the folder are> -X86 (inside win98,95 and NT) -WIND (WIND.000 to WIND.043) -SUN4(solarisOS stuff) -RESOURCE(*.TCL, ) -DOCS(pdf) Where I could find the unix ver? a Link maybe!
hi am a intial user of torando software when am trying to compile the program its compiling.. but when i go to the object file download to the server its not downloading... and showing error msg as target server failed to connect how to connect server to the my system... am using that with my laptop...and am not have network facility...
where can I download the Tornado2.2.1 and VxSim for windows Xp? and how can I instal the Tornado2.2.1 on windows? thank you very much
Isabelle Andrade : To skip the error, don't use -RW in command prompt
I am using Tornado2.2.1 to run a series of tests from a batch file. The batch runs torVars.bat, wtxregd.exe, and VxWorks.exe. But for some reason it will not close until I manually close the Tornado registry from the tool tray. Is there a way to close the registry and vxSim from a command line? The example above opens them, but I want to 'undo' that.