® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378...

22
® Tornado Training Tornado Training Workshop Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 [email protected] http://www.wrs.com/training

Transcript of ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378...

Page 1: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

Tornado Training Tornado Training WorkshopWorkshop

500 Wind River wayAlameda, CA 94501

510-749-2148FAX: [email protected]

http://www.wrs.com/training

Page 2: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

Copyright © Wind River Systems, Inc. 1998 - Copyright © Wind River Systems, Inc. 1998 - 19991999

Version 5.1, 24 May 1999

ALL RIGHTS RESERVED. No part of this publication may be reproduced in any form, by photocopy, microfilm, retrieval system, or by any other means now known or hereafter invented without the prior written permission of Wind River System, Inc.This document is designed to support the Tornado Training Workshop class. It is not designed as a stand-alone document, nor can it substitute for the Tornado or VxWorks documentation. For information about the Wind River Systems training program, see:

http://www.wrs.com/trainingTraining Department

Wind River Systems, Inc.500 Wind River Way, Alameda, CA 94501

510-749-2148 (phone) 510-749-2378 (fax)EMAIL: [email protected]

For training in Europe, Asia and Africa, please contact your local sales office.

VxWorks and Wind River Systems are registered trademarks and Tornado, Tornado II, wind, windX, WindPower, WindNet, WindNet SNMP, WindView, VxGNU, VxGDB, VxSim, VxVMI, VxMP, and MicroWorks are trademarks of Wind River Systems, Inc. All other trademarks cited herein are the properties of their respective owners

Page 3: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

Course PrerequisitesCourse Prerequisites

General prerequisites:– One year C programming experience: familiarity with basic

control structures, pointers, structures, preprocessor commands.

– Basic understanding of operating systems and debugging techniques.

Functional knowledge of host platform:– UNIX: user-level knowledge of UNIX file system and csh shell;

editing text with vi, emacs, or host-native GUI editor; X window system GUI.

– Windows: user-level knowledge of Windows NT/95/98 graphical and command-line user interfaces, file systems, and standard Windows editor.

Page 4: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

Course ObjectivesCourse Objectives

Overview of Tornado / VxWorks facilities. Boot VxWorks and download object modules to a VxWorks

target. Use Tornado tools to perform cross-development. Control, and communicate between, tasks executing under

VxWorks. Use WindView to analyze a multitasking application. Use VxWorks primitives to access resources exclusively, and

to synchronize the actions of different tasks. Use timers for periodic code execution. Differentiate between the standard I/O library, the formatted I/O

library, and the basic I/O system. Create and use local file systems. From VxWorks, access file systems on remote machines. Reconfigure VxWorks, linking in user-defined code.

Page 5: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

Table of ContentsTable of ContentsVolume 1Volume 1

Getting Started 1

Projects 2

WindSh and Browser 3

CrossWind 4

Real-Time Multitasking 5

WindView 2.0 6

Semaphores 7

Intertask Communication 8

Memory 9

Day One

Day Two

Day Three

Chapter

Page 6: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

Table of ContentsTable of ContentsVolume 1Volume 1

Exceptions, Interrupts and Timers 10

I/O and File System 11

Networking 12

Reconfiguring VxWorks 13

Optional Products 14

Appendix

– Code Examples

Day Four Chapter

Page 7: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

Table of ContentsTable of ContentsVolume 2Volume 2

Lab Setup LS

Getting Started Lab, UNIX 1 LU

Getting Started Lab, Windows 1 LW

Projects Lab 2 L

Shell and Browser Lab, UNIX 3 LU

Shell and Browser Lab, Windows 3 LW

CrossWind Lab, UNIX 4 LU

CrossWind Lab, Windows 4 LW

Real-Time Multitasking Lab 5 L

WindView Lab 6 L

Chapter

Page 8: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

Table of ContentsTable of ContentsVolume 2Volume 2

Semaphores Lab 7 L

Intertask Communication Lab 8 L

Memory Labs (Forgotten) 9 L

Exceptions, Interrupts and Timers Lab 10 L

I/O and File System Lab 11 L

Networking Lab 12 L

Reconfiguring VxWorks Lab 13 L

Chapter

Page 9: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

11

Getting StartedGetting Started

Page 10: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

22

ProjectsProjects

Page 11: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

33

WindSh and BrowserWindSh and Browser

Page 12: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

44

CrossWindCrossWind

Page 13: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

55

Real-Time MultitaskingReal-Time Multitasking

Page 14: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

66

WindView 2.0WindView 2.0

Page 15: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

77

SemaphoresSemaphores

Page 16: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

88

Intertask CommunicationIntertask Communication

Page 17: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

99

MemoryMemory

Page 18: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

1010

Exceptions, Interrupts Exceptions, Interrupts and Timersand Timers

Page 19: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

1111

I/O and File SystemI/O and File System

Page 20: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

1212

NetworkingNetworking

Page 21: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

1313

Reconfiguring VxWorksReconfiguring VxWorks

Page 22: ® Tornado Training Workshop 500 Wind River way Alameda, CA 94501 510-749-2148 FAX: 510-749-2378 training@wrs.com .

®

ChapterChapter

1414

Optional ProductsOptional Products