Specification of Operating System AUTOSAR Release 4.2.2
Total Page:16
File Type:pdf, Size:1020Kb
Specification of Operating System AUTOSAR Release 4.2.2 Document Title Specification of Operating System Document Owner AUTOSAR Document Responsibility AUTOSAR Document Identification No 034 Document Classification Standard Document Status Final Part of AUTOSAR Release 4.2.2 Document Change History Release Changed by Change Description 4.2.2 AUTOSAR Allow calls to ControlIdle from all cores Release Minor updates/clarification of descriptions Management Editorial changes 4.2.1 AUTOSAR Add support for AsilQmProtection Release Minor updates/clarification of descriptions Management Editorial changes 4.1.3 AUTOSAR Changed multiplicity of attributes in Release IocSender/ReceiverProperties Management Minor updates/clarification of descriptions Editorial changes 4.1.2 AUTOSAR Clarification on E_OS_NESTING_DEADLOCK Release Update of table 2 Management Corrected multiplicity of ECUC_Os_00393 Minor updates/clarification of descriptions Editorial changes Removed chapter(s) on change documentation 4.1.1 AUTOSAR Add support for ECU degradation Administration Changed service interface description to a formal format Several minor changes and clarifications 4.0.3 AUTOSAR Included MultiCore support from former Administration “Specification of Multi-Core OS Architecture” 3.1.5 AUTOSAR Clarification in 7.8.1 (meaning of "do nothing") Administration and 7.1.2.1 ("OSEK declarations") Minor changes as typos and rewording 3.1.4 AUTOSAR Extension of services (Chapter 12) Administration States in OS- Applications Active termination of other OS-Applications in possible (Chapter8) Legal disclaimer revised Chapter 10.4 revised 1 of 247 Document ID 034: AUTOSAR_SWS_OS - AUTOSAR confidential - Specification of Operating System AUTOSAR Release 4.2.2 Document Change History Release Changed by Change Description 3.1.2 AUTOSAR Changes in OS configuration: Administration removed "OsAppModeId" Parameter from OsAppModeContainer added optional references from OsAppModeContainer to OsAlarm, OsTask and OsScheduleTable 3.1.1 AUTOSAR Legal Disclaimer revised Administration 3.0.2 AUTOSAR Added “OsScheduleTableDuration” parameter Administration to configuration specification chapter 3.0.1 AUTOSAR Changed methods for timing protection Administration Moved configuration from OIL to AUTOSAR XML Clarrified description for synchronization and schedule tables Document meta information extended Small layout adaptations made 2.1.15 AUTOSAR Added support for SoftwareFreeRunningTimer Administration (SWFRT) incl. 2 new APIs Added API to start a schedule table synchron Misc. Corrections, Clarification and further explanations Legal disclaimer revised Release Notes added “Advice for users” revised “Revision Information” added 2.0 AUTOSAR Document structure adapted to common Administration Release 2.0 SWS Template. Major changes in chapter 10 Structure of document changed partly Other changes see chapter 14 1.0 AUTOSAR Initial Release Administration 2 of 247 Document ID 034: AUTOSAR_SWS_OS - AUTOSAR confidential - Specification of Operating System AUTOSAR Release 4.2.2 Disclaimer This specification and the material contained in it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR and the companies that have contributed to it shall not be liable for any use of the specification. The material contained in this specification is protected by copyright and other types of Intellectual Property Rights. The commercial exploitation of the material contained in this specification requires a license to such Intellectual Property Rights. This specification may be utilized or reproduced without any modification, in any form or by any means, for informational purposes only. For any other purpose, no part of the specification may be utilized or reproduced, in any form or by any means, without permission in writing from the publisher. The AUTOSAR specifications have been developed for automotive applications only. They have neither been developed, nor tested for non-automotive applications. The word AUTOSAR and the AUTOSAR logo are registered trademarks. Advice for users AUTOSAR specifications may contain exemplary items (exemplary reference models, "use cases", and/or references to exemplary technical solutions, devices, processes or software). Any such exemplary items are contained in the specifications for illustration purposes only, and they themselves are not part of the AUTOSAR Standard. Neither their presence in such specifications, nor any later documentation of AUTOSAR conformance of products actually implementing such exemplary items, imply that intellectual property rights covering such exemplary items are licensed under the same rules as applicable to the AUTOSAR Standard. 3 of 247 Document ID 034: AUTOSAR_SWS_OS - AUTOSAR confidential - Specification of Operating System AUTOSAR Release 4.2.2 Table of Content 1 Introduction and functional overview ................................................................. 10 2 Acronyms and abbreviations ............................................................................. 11 2.1 Glossary of Terms ...................................................................................... 11 3 Related documentation...................................................................................... 16 3.1 Input documents ......................................................................................... 16 3.2 Related standards and norms .................................................................... 17 3.2.1 OSEK/VDX .......................................................................................... 17 3.2.2 HIS ...................................................................................................... 17 3.3 Company Reports, Academic Work, etc. .................................................... 18 3.4 Related specification .................................................................................. 18 4 Constraints and assumptions ............................................................................ 19 4.1 Existing Standards ..................................................................................... 19 4.2 Terminology ............................................................................................... 19 4.3 Interaction with the RTE ............................................................................. 19 4.4 Operating System Abstraction Layer (OSAL) ............................................. 20 4.5 Multi-Core Hardware assumptions ............................................................. 20 4.5.1 CPU Core features .............................................................................. 20 4.5.2 Memory features ................................................................................. 21 4.5.3 Multi-Core Limitations ......................................................................... 21 4.6 Limitations .................................................................................................. 22 4.6.1 Hardware............................................................................................. 22 4.6.2 Programming Language ...................................................................... 22 4.6.3 Miscellaneous ..................................................................................... 23 4.7 Applicability to car domains ........................................................................ 23 5 Dependencies to other modules ........................................................................ 24 5.1 File structure .............................................................................................. 24 5.1.1 Code file structure ............................................................................... 24 5.1.2 Header file structure ............................................................................ 24 6 Requirements Traceability ................................................................................. 26 7 Functional specification ..................................................................................... 43 7.1 Core OS ..................................................................................................... 43 7.1.1 Background & Rationale ..................................................................... 43 7.1.2 Requirements ...................................................................................... 43 7.2 Software Free Running Timer .................................................................... 46 7.3 Schedule Tables......................................................................................... 47 7.3.1 Background & Rationale ..................................................................... 47 7.3.2 Requirements ...................................................................................... 47 7.4 Schedule Table Synchronization ................................................................ 54 7.4.1 Background & Rationale ..................................................................... 54 7.4.2 Requirements ...................................................................................... 56 7.5 Stack Monitoring Facilities .......................................................................... 63 7.5.1 Background & Rationale ..................................................................... 63 4 of 247 Document ID 034: AUTOSAR_SWS_OS - AUTOSAR confidential - Specification of Operating System AUTOSAR Release 4.2.2 7.5.2 Requirements