{"id":9357,"date":"2020-02-11T12:34:42","date_gmt":"2020-02-11T17:34:42","guid":{"rendered":"https:\/\/blogs.mathworks.com\/simulink\/?p=9357"},"modified":"2020-02-11T12:34:42","modified_gmt":"2020-02-11T17:34:42","slug":"introduction-to-autosar","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2020\/02\/11\/introduction-to-autosar\/","title":{"rendered":"Introduction to AUTOSAR"},"content":{"rendered":"<p><em>Today I am happy to welcome <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/6273071-shwetha-shwetha-bhadravathi-mallikarju\">Shwetha Bhadravathi Patil<\/a> to talk about AUTOSAR.<\/em><\/p>\n<p><strong>What is AUTOSAR<\/strong><\/p>\n<p><a href=\"https:\/\/www.autosar.org\/\">AUTOSAR<\/a> (AUTomotive Open System ARchitecture) is a worldwide development partnership of vehicle manufacturers, suppliers, and other companies from the electronics, semiconductor, and software industries. The AUTOSAR standard is designed to enable software standardization, reusability, and interoperability.<\/p>\n<p>The AUTOSAR standard provides platforms to support the current and next generations of automotive ECUs:<\/p>\n<ul>\n<li>The Classic Platform supports traditional internal applications such as powertrain, chassis, body, and interior electronics.<\/li>\n<li>The Adaptive Platform supports new service-based applications such as automated driving, Car-to-X, software updates over the air, and vehicles as part of the Internet of Things.<\/li>\n<\/ul>\n<p>As more adaptive applications are deployed, you will see AUTOSAR classic, adaptive, and non AUTOSAR ECUs interoperating in a single car.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/simulink\/2020Q1\/Figure 1.png\" alt=\"AUTOSAR standard\" \/><\/p>\n<p>The AUTOSAR Classic Platform architecture has 3 layers on top of the microcontroller hardware: <\/p>\n<ul>\n<li>Application Software, providing application implementations in self-contained units called software components. Building software components generates platform-compliant AUTOSAR XML descriptions and C code implementation modules.<\/li>\n<li>Runtime Environment (RTE), providing communication between application software and Basic Software. Software components communicate with other components and\/or Basic Software modules exclusively via the RTE, which allows software components to be independent of any specific ECU and other software components.<\/li>\n<li>Basic Software (BSW), providing ECU abstraction, microcontroller abstraction, and services, including memory and diagnostics.<\/li>\n<\/ul>\n<p>This modularity helps manage the growing complexity of automotive systems, provides flexibility to upgrade or update the product, and makes it scalable across product lines.<\/p>\n<p>The AUTOSAR Adaptive Platform architecture has layers similar to Classic Platform but is a service-oriented architecture (SOA), which provides a foundation to handle highly compute intensive applications. The Adaptive Platform supports POSIX operating systems. Software components are deployed as OS processes that are independent applications. All modules and applications in Adaptive must be written in C++ whereas Classic uses C. <\/p>\n<p><strong>MathWorks Support<\/strong><\/p>\n<p>MathWorks is an AUTOSAR Premium Member and actively participates in the development of the standard, with a focus on how to use Model-Based Design with an AUTOSAR development process for automotive ECUs.<\/p>\n<p>Using Simulink\u00ae and <a href=\"https:\/\/www.mathworks.com\/products\/autosar.html\">AUTOSAR Blockset<\/a>, you can:<\/p>\n<ul>\n<li>Model AUTOSAR classic software components and adaptive applications as Simulink\u00ae models, by using the AUTOSAR Component Designer app<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/simulink\/2020Q1\/Model AUTOSAR Classic software components.png\" alt=\"Model AUTOSAR Classic software components\" \/><\/p>\n<li>Model and simulate compositions, AUTOSAR ECU software, and Basic Software, including Diagnostic and NVRAM services, using Basic Software blocks<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/simulink\/2020Q1\/Model and simulate compositions.png\" alt=\"Model and simulate compositions\" \/><\/p>\n<li>Use blocks for AUTOSAR library routines, such as lookup-table interpolation, to generate optimized library routines for AUTOSAR Classic applications. <\/li>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/simulink\/2020Q1\/AUTOSAR Library Routines.png\" alt=\"AUTOSAR Library Routines\" \/>\t<\/p>\n<li>Author AUTOSAR software compositions, components, and their interfaces in Simulink, by creating an architecture model (with <a href=\"https:\/\/www.mathworks.com\/products\/system-composer.html\">System Composer<\/a>) and adding Component, Composition, and Basic Software blocks.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/simulink\/2020Q1\/Author AUTOSAR Software Compositions.png\" alt=\"Author AUTOSAR Software Compositions\" \/><\/p>\n<li>Generate C and C++ production code (with Embedded Coder\u00ae) and qualify the code for ISO 26262 (with IEC Certification Kit). Here is a sample of C++ code generated for an AUTOSAR Adaptive application. <\/li>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/simulink\/2020Q1\/code.png\" alt=\"Author AUTOSAR Software Compositions\" \/><\/p>\n<p>As shown in the above image, you can also develop an AUTOSAR classic application in Simulink model and generate C code.<\/p>\n<p><strong>Now it\u2019s your turn<\/strong><\/p>\n<p>You can access several examples to start building your AUTOSAR model in Simulink <a href=\"https:\/\/www.mathworks.com\/help\/autosar\/examples.html\">here<\/a>. Then, let us know what you think in the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/images\/simulink\/2020Q1\/code.png\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>Today I am happy to welcome Shwetha Bhadravathi Patil to talk about AUTOSAR.<br \/>\nWhat is AUTOSAR<br \/>\nAUTOSAR (AUTomotive Open System ARchitecture) is a worldwide development partnership of vehicle... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2020\/02\/11\/introduction-to-autosar\/\">read more >><\/a><\/p>\n","protected":false},"author":41,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,65],"tags":[587],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/9357"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/comments?post=9357"}],"version-history":[{"count":8,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/9357\/revisions"}],"predecessor-version":[{"id":9379,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/9357\/revisions\/9379"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=9357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=9357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=9357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}