Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Running with or without Paging Installing Hardware Interrupt Handlers Catching NULL Pointer Assignments Running without Run-Time System Configuration for Debug and Release Builds Loading DLLs through a File System Using the MetaWINDOW Graphics Library Custom MP Floating Pointer Structure Configuration Files Compiling and Linking with On Time RTOS-32 |
Configuration FilesThere are 3 configuration files to be considered. The first (typically named Rtos-32.txt) is used by the Real-Time Hypervisor to configure the virtual machine to host On Time RTOS-32. Here is a simple example for the case On Time RTOS-32 runs stand alone: # RTH CONFIG [/OS/0] "name" = "RTOS-32" "boot_priority" = uint32: 1 "memory_size" = uint64: 0x2000000 "image_location" = uint32: 0x2000000 [/OS/0/RUNTIME/0] "image_0" = "/rts/RTOS-32.BIN" [/IRQ] "default" = uint32: 0 [/PCI] "default" = uint32: 0 The required entry in GRUB's menu.lst file would look like this: title Real-Time Hypervisor - RTOS-32 root (hd0,0) # set root to first harddisk, first partition kernel /rts/rthi386 # load and start Hypervisor module /rts/rthCtrl.out # load control module module /rts/license.txt # load license key supplied by Real-Time Systems module /rts/RTOS-32.txt # load configuration file module /rts/RTOS-32.BIN # RTOS-32 image The second configuration file (called RthTarget.cfg in our demos) describes the properties of the virtual machine to the RTTarget-32 locator RTLoc. RthTarget.cfg and Rtos-32.txt must match. In particular, the following values are present in both files and must be identical in both:
RthTarget.cfg also contains value MAX_BIN_FILE_SIZE (default: 4M) which defines the largest BIN file which can be loaded. Typically, this value should be about half of memory_size, though it does not have to. If memory_size is modified, it is recommended to also adjust MAX_BIN_FILE_SIZE. The following requirements must be fulfilled when locating any On Time RTOS-32 program for the Real-Time Hypervisor:
The following requirements must be fulfilled when locating a self-booting On Time RTOS-32 program for the Real-Time Hypervisor:
Config file RthTarget.cfg defines two regions for the application: RTOSImage and RTOSRAM. The third configuration file (which has the name of each respective demo plus ".cfg") then locates all program entities with an image into region RTOSImage and all others into region RTOSRAM. The created BIN file comprises region RTOSImage. It is recommended to use the configuration files included with our examples as templates.
|