Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Setting up a Project Compiling and Linking with On Time RTOS-32 |
Setting up a ProjectOn Time RTOS-32 programs are essentially Win32 console mode programs. Thus, setting up an On Time RTOS-32 project in Visual Studio is best performed by creating a new Win32 console mode project and then modifying it to fit On Time RTOS-32's needs. This section describes step-by-step how to set up such a project. Additional in-depth information about the Microsoft compiler and linker and general compile/link guidelines are available in section Compiling and Linking with On Time RTOS-32. An On Time RTOS-32 project must have the following properties:
In addition, it would be desirable to write boot diskettes directly from the IDE. We will define a custom build step for the .RTB file to accomplish this. The sample project will have two configurations: Win32 Debug and Win32 Release. The Debug configuration assumes that it will run under the debugger's control with the RTTarget-32 Debug Monitor installed on the target. The Release configuration will produce a self-booting version of the application. The project will also build a suitable Debug Monitor. The project setup described below assumes that environment variable RTTARGET is defined to contain On Time RTOS-32's installation directory. If Visual Studio is started using DbgShell, DbgShell will define RTTARGET correctly. Of course, the easiest way to set up such a project is to copy one of On Time RTOS-32's examples. Nevertheless, here are step-by-step instructions to create the Hello project shipped with RTTarget-32.
The active configuration should be set to Target - Win32 Debug or Target - Win32 Release. To produce a new boot diskette either for the Monitor or the application itself, simply right-click the corresponding .RTB file in project Boot Diskette and click Compile. Here are a few recommendations to streamline the project:
|