How to run the VxWorks Simulator from the command line
This is my OLD blog. I've copied this post over to my NEW blog at:
http://www.saltycrane.com/blog/2007/03/how-to-run-vxworks-simulator-from/
You should be redirected in 2 seconds.
Here's how to run VxSim, a target server, and the Tornado shell from the command line in Windows. I am using Tornado 2.2.1 and Windows XP.
- 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
No comments:
Post a Comment