Fr Family Softune Realos/Fr User's Guide
Total Page:16
File Type:pdf, Size:1020Kb
FUJITSU SEMICONDUCTOR CM71-00320-3E CONTROLLER MANUAL FR FAMILY IN CONFORMANCE WITH µITRON 3.0 SPECIFICATIONS SOFTUNE REALOS/FR USER’S GUIDE FR FAMILY IN CONFORMANCE WITH µITRON 3.0 SPECIFICATIONS SOFTUNE REALOS/FR USER’S GUIDE FUJITSU LIMITED PREFACE I Objectives Softune REALOS/FR (hereafter called REALOS/FR) is a real-time operating system used on Fujitsu FR family 32-bit microprocessors. The specifications of the REALOS/FR kernel comply with µITRON3.0. This manual provides information required to configure REALOS/FR application systems. The material in this manual covers the configuration and activation of systems, and can be taken as an overall summary of their operation. I Trademarks and Abbreviations TRON is an abbreviation of The Realtime Operating System Nucleus. ITRON is an abbreviation of Industrial TRON. µTRON is an abbreviation of Micro Industrial TRON. SOFTUNE is a trademark of FUJITSU LIMITED. REALOS (REALtime Operating System) is a trademark of FUJITSU LIMITED. Microsoft, Windows, Windows NT, and MS-DOS are registered trademarks of Microsoft Corporation in the U.S. and other countries. The names of products and systems appearing in this manual are trademarks or registered trademarks of their respective companies. I Intended Readership This manual is written for engineers actually developing products for use with REALOS/FR, and describes the development of application systems using REALOS/FR as well as debugging methods. Be sure to read the entire manual carefully. The configurator and analyzer are software that runs on Windows XP, Windows Me, Windows 2000, Windows 98 and Windows NT 4.0. Readers of this manual should have a fundamental knowledge of the operations of Windows XP, Windows Me, Windows 2000, Windows 98 or Windows NT 4.0 and a basic understanding of the use of embedded software. i I Organization of This Manual This manual consists of two chapters and an appendix. Chapter1 Precautionary Information This chapter describes precautionary information relating to development of applications systems using REALOS/FR. Chapter 2 Developing Application Systems This chapter describes methods for developing application systems using REALOS/FR. Appendix The appendix describes sample systems, methods for creating sample I/O drivers, and methods for startup. ii • The contents of this document are subject to change without notice. Customers are advised to consult with FUJITSU sales representatives before ordering. • The information and circuit diagrams in this document are presented as examples of semiconductor device applications, and are not intended to be incorporated in devices for actual use. Also, FUJITSU is unable to assume responsibility for infringement of any patent rights or other rights of third parties arising from the use of this information or circuit diagrams. • The products described in this document are designed, developed and manufactured as contemplated for general use, including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not designed, developed and manufactured as contemplated (1) for use accompanying fatal risks or dangers that, unless extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for use requiring extremely high reliability (i.e., submersible repeater and artificial satellite). Please note that Fujitsu will not be liable against you and/or any third party for any claims or damages arising in connection with above-mentioned uses of the products. • Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal operating conditions. • If any products described in this document represent goods or technologies subject to certain restrictions on export under the Foreign Exchange and Foreign Trade Law of Japan, the prior authorization by Japanese government will be required for export of those products from Japan. ©2002 FUJITSU LIMITED Printed in Japan iii Softune REALOS/FR Manual Set The Softune REALOS/FR manual set consists of four volumes listed below. A first-time user of REALOS should first read the User's Guide. FR Family This manual contains the following items: product Softune REALOS/FR installation procedure, application system creation User's Guide procedure and precautionary information on system use. FR Family This manual contains information required to Softune REALOS/FR create user programs. Kernel Manual FR/F2MC Family This manual explains the REALOS Softune REALOS/FR/907/896 Configurator functions and how to use them. Configurator Manual FR-V/FR/F2MC Family This manual explains the REALOS Analyzer Softune REALOS functions and how to use them. Analyzer Manual Softune REALOS/896 is not supported. iv READING THIS MANUAL I Product names In this manual and this product, product names are designated as follows: SOFTUNE is designated as Softune. The Microsoft® Windows® 98 operating system is abbreviated to Windows 98. The Microsoft® Windows® Millennium Edition operating system is abbreviated to Windows Me. The Microsoft® Windows NT® Workstation operating system Version 4.0 and the Microsoft® Windows NT® Server network operating system Version 4.0 are abbreviated to Windows NT 4.0. The Microsoft® Windows® 2000 Professional operating system, the Microsoft® Windows® 2000 Server operating system, the Microsoft® Windows® 2000 Advanced Server operating system, and the Microsoft® Windows® 2000 Datacenter Server operating system are abbreviated to Windows 2000. The Microsoft® Windows® XP Professional operating system and the Microsoft® Windows® XP Home Edition operating system are abbreviated to Windows XP. I Coding Formats The following table explains the symbols used in this manual for definition statement and other coding formats. Symbol Explanation [ ] Items enclosed in brackets are optional and may be omitted. { } Items enclosed in braces are alternatives: one must be selected. | A vertical bar separates elements in a coding fragment. Ellipsis points indicate that the immediately preceding item can be repeated indefinitely. Note: This symbol indicates an item requiring special attention. Be sure to read the information provided. v vi CONTENTS CHAPTER 1 PRECAUTIONARY INFORMATION...............................................................1 1.1 Precautions for Programming on REALOS/FR Systems.........................................................................2 1.2 Precautions for REALOS/FR Hardware Design ......................................................................................4 CHAPTER 2 DEVELOPING APPLICATION SYSTEMS......................................................5 2.1 Products Supplied....................................................................................................................................6 2.2 Directory Structure...................................................................................................................................8 2.3 Creating the Development Environment..................................................................................................9 2.4 Installing REALOS/FR ...........................................................................................................................10 2.5 Programs in the Configuration of Application Systems..........................................................................11 2.6 Development Tasks...............................................................................................................................12 2.7 User Program Development ..................................................................................................................14 2.8 Developing User-Created Modules........................................................................................................16 2.9 System Configuration and Startup.........................................................................................................19 APPENDIX..............................................................................................................................21 Appendix A Program Descriptions..................................................................................................................22 Appendix B Sample System Startup...............................................................................................................25 Appendix C Sample System Memory Map .....................................................................................................41 Appendix D Typical Target Systems...............................................................................................................43 Appendix E Sample I/O Drivers ......................................................................................................................44 INDEX .....................................................................................................................................53 vii viii CHAPTER 1 PRECAUTIONARY INFORMATION This chapter describes precautionary information relating to development