Lab1 - TSLite Phase I 1. TSLite, Phase I: Installation and Testing for one-way communication.
Procedure A. Selection of VMServer/VM - I am using VMware Workstation 7.0 in the host OS of Windows 7. - I installed Windows XP as a guest OS inside virtual machine (VMware Workstation 7). Also install VMware tools in Windows XP. B.a Not required in case of Virtual Machine usage B.b Virtual Machine Serial Port Connection Setup In Windows XP virtual machine COM 1 Device status [v] Connected [v] Connect at power on -------------------------- Connection ( ) Use physical serial port ( ) Use output file (*) Use named pipe: \\.\pipe\com_1 This end is the server The other end is a virtual machine
COM 2 Device status [v] Connected [v] Connect at power on -------------------------- Connection ( ) Use physical serial port ( ) Use output file (*) Use named pipe: \\.\pipe\com_2 This end is the client The other end is a virtual machine [ ] Yield CPU on poll C. Software Installation a. Windows XP Setup i. Set up TSLite in Windows XP VM using ISO file You need Visual C++ installed in Windows XP before installation of tslite.
Windows NT requires a device driver in order for you to use parallel port communication. Do you want to install the parallel port driver now? ii Set up the VC++ 6.0
The Embedded StudioExpress toolbar should appear on VC++ 6.0 iii. Configure the communication channel Communications: Port: COM1 Baud Rate: AUTO Download Mode (*) Download ( ) No Download ETS Base Directory: c:\embedn_net\tslie iv. Set up the host environment See page 74 of the book "Real-Time Programming, A Guide to 32-bit Embedded Development" Studio\VC98\Bin;c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin C. TSLite Setup a. Create TSLite Virtual Machine i. Create the TSLite VM by yourself
Version: other
Virtual machine name: tslite Localtion: C:\Virutal Machines\tslite No network
- TSLite VM Serial Port Connection Setup
Device status [ ] Connected [v] Connect at power on -------------------------- Connection ( ) Use physical serial port ( ) Use output file (*) Use named pipe: \\.\pipe\com_1 This end is the client The other end is a virtual machine
Device status [ ] Connected [v] Connect at power on -------------------------- Connection ( ) Use physical serial port ( ) Use output file (*) Use named pipe: \\.\pipe\com_2 This end is the server The other end is a virtual machine C.b.ii Make a Boot disk - Create a virtual book disk
L:\VM\xp_vc++_12G\Windows XP Professional\tslite.flp
c:\embed_net\tslite\monitor Note: You can skip this step if you has set up TSLite in Windows XP VM
cd c:\embed_net\tslite\monitor
disk1440 a Now, you have a virtual TSLite boot disk L:\VM\xp_vc++_12G\Windows XP Professional\tslite.flp Note: This file is created outside of Win XP VM, so it cannot be found inside the VM. 5. After the virtual boot disk is created, disable the Windows XP VM from booting from the virtual boot disk. Device states [*] Connected [ ] Connect at power on (*) Use floppy image: tslite.flp 6. Before you can use this floppy disk, you need to change the configuration settings of ETS Monitor. Note: The default value is LPT1.
Modifying ETS Kernel Settings in monitor file 'A:\DISKKERN.BIN': COM port Setting: Old State: LPT1: New State: COM1 Note: In our experiment, we use Option 1.
- Configure previously created tslite VM and add virtual floppy drive with created bootable floppy image tslite.flp.
D. Test the "Hello World" Project - On the Host Machine (i.e., Windows XP VM), the following message is displayed Hello world!
Otherwise, follow the following procedure to regenerate the executable code, and download the code from VC++ 6.0. - Open VC++ 6.0 - File ==> Open workspace C:\embed_net\tslite\projects\hello\HELLO.dsw - Build --> Rebuild All - Execute- You will see a Download Window pops up and code is downloaded from the Host Machine to the target Machine. - On the Host Machine, a DOS window pops up and displays the following messsage: Hello world! Press a key to exit... |
Embedded System Academic Labs > Embedded System Labs > Embedded Software in Networking Environment >