读书人

tornado2.2装配流程和编写一个hellowo

发布时间: 2012-10-16 09:57:37 作者: rapoo

tornado2.2安装流程和编写一个helloworld

1、X86上编译、调试、演示就下载 tornado for pentium ,开发好后下载到 vxworks的模拟器vxSim来运行。

2、有arm目标板的话,可以下载tornado for arm,开发完后直接可下载到arm

新建工程:

project/new

tornado2.2装配流程和编写一个helloworld

选择create a bootable VxWorks image

tornado2.2装配流程和编写一个helloworld

点击Next, 新建好的空工程如下:

tornado2.2装配流程和编写一个helloworld

新建一个main.c 测试文件(file/new )选择 c/cpp source file

tornado2.2装配流程和编写一个helloworld

接下来编写main.c

tornado2.2装配流程和编写一个helloworld

接下来编译main.c (右键main.c,选择compile 'main.c')

tornado2.2装配流程和编写一个helloworld

接下来,将main.o下载到vxSim模拟器来运行main.o模块。

步骤:启动vxSim模拟器:

tornado2.2装配流程和编写一个helloworld 点击tornado2.2装配流程和编写一个helloworld按钮

tornado2.2装配流程和编写一个helloworld

tornado2.2装配流程和编写一个helloworld

点击OK,状态栏右下角有个图标:tornado2.2装配流程和编写一个helloworld ,右键点击 show ,如下:说明vxworks模拟器已经启动成功!

tornado2.2装配流程和编写一个helloworld

接下来我们需要将编译好的main.o下载到模拟器中运行:

步骤1:右键main.o ,选择:download main.o

步骤2:tornado2.2装配流程和编写一个helloworld 点击tornado2.2装配流程和编写一个helloworld 按钮,启动 vxworks模拟器(vxsim)中的shell命令行:显示如下

tornado2.2装配流程和编写一个helloworld

输入刚刚下载的main模块名字main,输出 hello world

完毕。

读书人网 >编程

热点推荐