1.1. System startup
1.1.1. Production of the startup disk
In the development and measurement of real-time application systems, the program is often used as a target machine as a target. A serial port or a network port can be taken between the host PC and the target PC. Since most goals have been equipped with NIC, the network connection is the simplest and fast connection. Although the serial intersection is not high, it also has its own advantages, system-level task debugging (such as interrupt service program ISR) needs to make communication mode in Polled mode, and network port link does not support, so it can be cut off the network part of the system. To make the VxWorks system smaller, meet the memory constraints of the target board. The following is a brief introduction to the production of the target machine VxWorks system startup disk in these two communication methods.
The production step of the target machine VxWorks system boot disk when serial port communication:
1. Modify the universal configuration file That That That TO /TO / TOKER ●
Add the following macro definition in the config.h file:
#undef WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_SERIAL / * Define communication mode for serial port * /
#define WDB_TTY_CHANNEL 1 / * Channel number * /
#define WDB_TTTY_BAUD 9600 / * Serial Port Speed, can be set to 38400 * /
And modify #define default_boot_line vxworks for vxworks.st.
2. Take the Project menu in the Tornado integration environment, select the Make PC486, select the Common Target, first perform CLEAN operation; then select the boot rom target, perform the bootrom_uncmp operation; select the vxWorks Target, make VxWorks.st operation.
3. Copy // tornado / target / config / pc486 / bootrom_uncmp to // Tornado / Host / bin under;
4. Rename file bootrom_uncmp is bootrom;
5. Prepare a formatted empty disk insertion flush;
6. Execute the command mkboot a: bootrom under the directory // tornado / host / bin;
7. Copy Too /Tornado/target/config/pc486/vxworks.* to floppy disk;
8. Insert the system making disk into the target machine floppy drive, and the power-up start target is loaded into the VxWorkst system.
Network port communication When the target machine VxWorks system boot disk production step:
1. Configure the target network card, set it in which breakage and input output range (I / O address);
2. Modify the general configuration file That /Tornado/target/config/pc486/config.h.
For different NIC, the name is different, such as NE2000 and its compatible network card for ENE, 3COM Ethernet card for ELT, Intel network card is EEX.
Modify the definition part of the corresponding network card type (such as the Network card for the Network card) in the config.h file:
#define IO_ADRS_ELT NIC I / O Address
#DEFINE INT_LVL_ELT NIC interrupt number
And modify the definition of #define default_boot_line:
#define default_boot_line /
"ELT (0, 0) Host Identification: c: // Tornado // Target // Config // PC486 // VxWorks H = Host IP E = Target IP U = Login User Name PW = Password TN = Target Name "
3. Determination of host information
Host Operating System WIN95 installation directory has a file Hosts.SAM, to the host IP host name
Target machine IP target machine name
4. Take the Project menu in the Tornado integrated environment, select the Make PC486, select the Common Target, first perform CLEAN operation; then select Boot Rom Target, make bootrom_uncmp operation; select vxWorks target, make VxWorks operation.
5. Copy // tornado / target / config / pc486 / bootrom_uncmp to // Tornado / Host / bin under;
6. Rename file bootrom_uncmp is bootrom;
7. Prepare a formatted empty disk insertion flush;
8. Run the command mkboot A: bootrom in the directory // tornado / host / bin;
9. Start Tornado Component FTP Server, select User / Right in Menu Security in the WFTPD window, select New User in its pop-up window ... Enter the login user name and password according to the prompt information, and to specify the download file. VxWorks is located in the root; also you must select Log Options in the main menu logging, enabling Enable Logging, Gets, Logins, Commands, Warnings.
10. Insert the system making disk into the target machine floppy drive, and the power-up start target machine will download the VxWorkst system from the host by FTP mode.
1.1.2. Host Tornado Environment Configuration
The target server configuration operation of the host Tornado development environment is as follows:
1. Take the Tools menu in the Tornado integration environment, select Target Server, select config ...
2. First named the target server in the Configure Target Servers window;
3. Select Back end in the "Change Property" window in the Configure Target Server window, select WDBSERIAL in the "Available Back" window, and select the serial number occupied by the host and the target connection in the "Serial Port" window (COM1 , COM2), select the serial port rate between the host and the target chamber in the "Speed (BPS)" window.
4. Select Core File and Symbols in the "Change Property" window in the Configure Target Server window.
Select File to a directory where the BSP target file is located (this example is the PC486 directory) VxWorks.st, and is selected as All Symbols.
5. Other items in the Change Property window in Configuring the Target Server window can be selected as needed.
When the network port is connected, the target server configuration operation of the host Tornado development environment is as follows:
1. Take the Tools menu in the Tornado integration environment, select Target Server, select config ...
2. First named the target server in the Configure Target Servers window;
3. Select Back end in the "Change Property" window in the Configure Target Server window, select WDBRPC in the Available Back window, enter the target machine IP in the Target IP / Address window.
4. Select Core File and Symbols in the "Change Property" window in the Configure Target Server window.
Select File to a directory where the BSP target file is located (this example is the PC486 directory), and is selected as All Symbols.
5. Other items in the Change Property window in Configuring the Target Server window can be selected as needed.