12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile...
Transcript of 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile...
![Page 1: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/1.jpg)
1© 2015 The MathWorks, Inc.
12 Years of AUTOSAREnabling Innovation with Model-Based Design
Michael Fröstl – Pilot Engineering @ MathWorks Germany
![Page 2: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/2.jpg)
2
switch(braindump)
![Page 3: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/3.jpg)
3
case ‘AUTOSAR Acronym’:
![Page 4: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/4.jpg)
4
AUTOSARmeans
1 AUTOmobile Search And Rescue
2 AUThentic Sportscar Aspect Ratio
3 AUTomotive Open System Architecture
4 AUTocar Occupant Specific Aversion Rate
5 AUTOrecovery Software Abstraction Reloaded
![Page 5: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/5.jpg)
5
default :printf(“Wrong session?”);
![Page 6: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/6.jpg)
6
AUTOSAR_Overview();
![Page 7: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/7.jpg)
7
RTE
Application Layer…
ApplicationSoftwareComponent
ECU Hardware
Services Layer
Complex Device Drivers
Microcontroller Abstraction Layer
ECU Abstraction Layer
ActuatorSoftwareComponent
SensorSoftwareComponent
AUTOSAR – 3-layered Architecture
ApplicationSoftwareComponent
BMT
![Page 8: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/8.jpg)
8
MathWorks AUTOSAR Approach
• Code-generation through MappingNo separate
AUTOSAR Blocksetneeded
• Simulink for developing behavior• Import and Export of SW Component Description Files (ARXML)
AUTOSAR Software Component Approach
with Simulink
• Consistency between C code and ARXML SW-C description files
Simultaneous generation of C-code and ARXML-Files
• Available via web download*• Allows more frequent updates and fixes
AUTOSAR Support Package for
Embedded Coder
* http://www.mathworks.com/hardware-support/autosar.html
![Page 9: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/9.jpg)
9
Support for AUTOSAR Workflows
Architecture
Export ARXML Import/Update Simulink model
&
C CodeARXML
Generate
Integrate
Behavior
![Page 10: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/10.jpg)
10
Capabilities
Configuration
Code GenerationSimulation
![Page 11: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/11.jpg)
11
Getting Started
§ Bottom-Up ApproachStart with an existing Simulink model
§ Top-Down ApproachStart with ARXML files containing AUTOSAR Component descriptions
![Page 12: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/12.jpg)
12
switch(topics)
![Page 13: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/13.jpg)
13
case ‘AUTOSAR – Top 5’:
![Page 14: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/14.jpg)
14
5Embedded Coder® Support Package
for AUTOSAR Standard
![Page 15: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/15.jpg)
15
Embedded Coder® Support Package for AUTOSAR StandardEmbedded Coder ® add-on support for the AUTOSAR standard
§ Flexible infrastructure to introduce important new capabilities, also in-between half-yearly MathWorks Release cycle
§ Perform a wide range of AUTOSAR-related workflows in Simulink®, including:– Create and modify an AUTOSAR configuration for a model
– Model AUTOSAR elements– Generate ARXML and AUTOSAR-compatible C code from a model
http://de.mathworks.com/hardware-support/autosar.html
![Page 16: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/16.jpg)
16
4AUTOSAR 4.1.3 / 4.2.1
![Page 17: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/17.jpg)
17
AUTOSAR 4.1.3 / 4.2.1
§ Import detects AUTOSAR 4.2.1 release from ARXML file
§ User selects AUTOSAR release from configuration set options for code generation and ARXML export
§ AUTOSAR 4.1+ features– PRPortPrototype– InitEvent– …
Seamless support for AUTOSAR Release 4.2.1 and 4.1.3 schema
![Page 18: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/18.jpg)
18
3AUTOSAR Variant Handling
![Page 19: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/19.jpg)
19
AUTOSAR Variant Handling
§ VariationPointProxy with– ConditionAccess – Simulink Variant
Subsystem
– Value Access – AUTOSAR.Parameterwith CSC System Constanto VariationPointProxy objects automatically generated
o System constant definitions generated in separate ARXML file
Model AUTOSAR variants in Simulink
![Page 20: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/20.jpg)
20
2AUTOSAR Client-Server Semantics
![Page 21: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/21.jpg)
21
AUTOSAR Client-Server Semantics
§ ARXML import and update support forAUTOSAR Client/Server– AUTOSAR client port and operationrepresented as Function Caller
– AUTOSAR server runnable represented asSimulink Function
§ Use AUTOSAR APPLICATION-ERROR status for C/S communication– Helps to Communicate with AUTOSAR basicsoftware that use error status, e.g. DiagnosticEvent Manager (DEM)
Leverage Simulink Functions forAUTOSAR Client/Server
<POSSIBLE-ERRORS><APPLICATION-ERROR>
<SHORT-NAME>E_OK</SHORT-NAME><ERROR-CODE>0</ERROR-CODE>
</APPLICATION-ERROR><APPLICATION-ERROR>
<SHORT-NAME>E_NOT_OK</SHORT-NAME>
<ERROR-CODE>1</ERROR-CODE></APPLICATION-ERROR>
</POSSIBLE-ERRORS>
Std_ReturnType fcnWErr(int8 x1, int8 x2)
if (uh_oh) return RTE_E_NOT_OK;
..return RTE_E_OK;
![Page 22: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/22.jpg)
22
1Advanced AUTOSAR APIs
![Page 23: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/23.jpg)
23
Advanced AUTOSAR APIs
§ RTE APIs– Conditional Rte_Read / Rte_Write– Rte_IsUpdated– Rte_Invalidate
§ Asynchronous NvM Service calls– NvM_WriteBlock, NvM_ReadBlock, …
§ E2E wrapper§ MFX / MFL / IFX / IFL Library Routines§ ReferenceBase Support§ …
Simulink modeling and ARXML roundtrip support for
if (Rte_IsUpdated_Input_Input()) Rte_Read_Input_Input(&tmp);;...
<NONQUEUED-RECEIVER-COM-SPEC>...<ENABLE-UPDATE>true</ENABLE-UPDATE>
![Page 24: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/24.jpg)
24
case ‘AUTOSAR – Best Practices’:
![Page 25: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/25.jpg)
25
1Use one AUTOSAR workflow
![Page 26: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/26.jpg)
26
#1 Use one AUTOSAR workflow- Select top-down or bottom-up approach- Round-trip works best with one clear owner of data
§ Select tools that best support your workflow and AUTOSAR concepts
§ Select simplest approach for applying AUTOSAR configuration to your Simulink model
![Page 27: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/27.jpg)
27
2Decide data management
![Page 28: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/28.jpg)
28
#2 Decide data management
§ Will Simulink or AUTOSAR tools manage data?§ Will projects or teams define and manage data?§ How will change management be handled?
![Page 29: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/29.jpg)
29
3Establish modeling standards
![Page 30: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/30.jpg)
30
#3 Establish modeling standards - For Simulink and AUTOSAR
§ Base it on your workflow and data management
§ Use Simulink Model Advisor to enforce modeling style early in model development
Runnable1
Runnable2
AUTOSAR
SW-C1
SW-CDescription
Runnable3
![Page 31: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/31.jpg)
31
4Simulate before you generate code
![Page 32: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/32.jpg)
32
#4 Simulate before you generate code - Take advantage of early verification through simulation
§ Make sure SWC implementation is correct early
§ Simulate multiple SWC’s together in Simulink before code integration
§ Use SIL and PIL to verify generated code at the unit level before RTE generation
RTE Generation & INTEGRATION
IMPLEMENTATION
TEST & VER
IFICATIO
N
DESIGN
Environmental Models
Control Algorithms
Mechanical Electrical
Supervisory Logic
RESEARCH REQUIREMENTS
MCU DSP
C, C++
![Page 33: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/33.jpg)
33
5Plan ahead for ISO 26262
![Page 34: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/34.jpg)
34
#5 Plan ahead for ISO 26262- Determine how your AUTOSAR process will address safety-standards
§ Products supported for ISO 26262 tool qualification include:• Embedded Coder• Simulink V&V• Simulink Design Verifier• PolySpace Code Verifiers
§ Artifacts certified by TÜV SÜD• Requires use of V&V workflow
§ ISO 26262 Advisory Service available
![Page 35: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/35.jpg)
35
6Use Simulink to help migrate your
legacy code to AUTOSAR
![Page 36: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/36.jpg)
36
#6 Use Simulink to help migrate your legacy code to AUTOSAR
§ Reuse of Legacy Code– Integration for simulation, production code generation– Can generate AUTOSAR RTE API access points
void Runnable_Runnable1(void)real32_T rtb_TmpSignalConversionAtIn1Out;;real32_T rtb_UnitDelay;;real32_T rtb_sldemo_sfun_filterV1;;rtb_TmpSignalConversionAtIn1Out =
Rte_IRead_Runnable_Runnable1_Fast_in_Fast_in();;rtb_UnitDelay = Component_DWork.UnitDelay_DSTATE;;rtb_sldemo_sfun_filterV1 = filterV1( (real32_T)rtb_TmpSignalConversionAtIn1Out,
(real32_T)rtb_UnitDelay, (real32_T)Component_P.sldemo_sfun_filterV1_p1);;
Rte_IrvIWrite_Runnable_Runnable1_a(rtb_sldemo_sfun_filterV1);;Component_DWork.UnitDelay_DSTATE = rtb_sldemo_sfun_filterV1;;
![Page 37: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/37.jpg)
37
7Automate, automate, automate
![Page 38: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/38.jpg)
38
#7 Automate, automate, automate- Use API’s for workflow automation!
§ Manual process difficult due to:– The complexity of the standard, naming conventions
– Iterative work cycles with AUTOSAR– Complex code APIs and XML file definitions
§ Use documented MATLAB APIs to configure SWCs in Simulink
%% Setup AUTOSAR Configuration programmatically
model = 'rtwdemo_autosar_counter';
% Modify AUTOSAR Properties
autosarProps = autosar.api.getAUTOSARProperties(model);
set(autosarProps, 'Input', 'IsService', true);
set(autosarProps, 'XmlOptions', 'ArxmlFilePackaging','SingleFile');
![Page 39: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/39.jpg)
39
8Use production code generation
![Page 40: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/40.jpg)
40
#8 Use production code generation- Hand coding AUTOSAR is painful
void Runnable_simple_alg_Step(void)real_T rtb_Gain;;real_T rtb_Delay;;real_T rtb_Delay1;;real_T rtb_TmpSignalConversionAtFast_i;;if (simple_alg_M->Timing.TaskCounters.TID[1] == 0) Rte_Receive_Fast_in_Fast_in(&rtb_TmpSignalConversionAtFast_i);;rtb_Delay = simple_alg_DWork.Delay_DSTATE;;rtb_Delay1 = simple_alg_DWork.Delay1_DSTATE;;rtb_Gain = simple_alg_DWork.Delay2_DSTATE;;rtb_Gain = (((rtb_TmpSignalConversionAtFast_i + simple_alg_DWork.Delay_DSTATE) + simple_alg_DWork.Delay1_DSTATE) + rtb_Gain) * simple_alg_P.Gain_Gain;;if (simple_alg_M->Timing.TaskCounters.TID[2] == 0) simple_alg_B.RateTransition = rtb_Gain;;simple_alg_DWork.Delay_DSTATE = rtb_TmpSignalConversionAtFast_i;;simple_alg_DWork.Delay1_DSTATE = rtb_Delay;;simple_alg_DWork.Delay2_DSTATE = rtb_Delay1;;if (simple_alg_M->Timing.TaskCounters.TID[2] == 0) Rte_IWrite_Runnable_simple_alg_Step_Out1_Out1 (simple_alg_B.RateTransition
+ Rte_IRead_Runnable_simple_alg_Step_Slow_in_Slow_in());;…
…<RUNNABLE-ENTITY UUID="aef16585-a355-494f- accd-1a548ca22e27"><SHORT-NAME>Runnable_simple_alg_Step</SHORT-NAME><MINIMUM-START-INTERVAL>0</MINIMUM-START-INTERVAL><CAN-BE-INVOKED-CONCURRENTLY>false</CAN-BE-INVOKED-CONCURRENTLY><DATA-READ-ACCESSS><VARIABLE-ACCESS><SHORT-NAME>IN_Slow_in_Slow_in</SHORT-NAME>…
</RUNNABLE-ENTITY>…
…<SENDER-RECEIVER-INTERFACE><SHORT-NAME>Out1</SHORT-NAME><IS-SERVICE>false</IS-SERVICE><DATA-ELEMENTS><VARIABLE-DATA-PROTOTYPE><SHORT-NAME>Out1</SHORT-NAME>…
</VARIABLE-DATA-PROTOTYPE></DATA-ELEMENTS>
</SENDER-RECEIVER-INTERFACE>…
![Page 41: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/41.jpg)
41
9Actively plan for migration
![Page 42: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/42.jpg)
42
#9 Actively plan for migration- Tools and standards are changing rapidly
Source: 7th AUTOSAR Open Conference, 22.10.2014
§ Account for: – New versions of AUTOSAR– New versions of Simulink
§ Consider: – How often to upgrade– What will drive upgrade
R2014a
R2014b
R2015a
R2015b…
NEW MATLABRELEASES
IMPORTANT NEW CAPABILITIES
![Page 43: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/43.jpg)
43
case ‘Assistance’:
![Page 44: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/44.jpg)
44
![Page 45: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/45.jpg)
45
case ‘AUTOSAR Demo Pod’:
![Page 46: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/46.jpg)
46
Model. Code. Production.
![Page 47: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/47.jpg)
47
default :printf(“Brain up-to-date!”);
![Page 48: 12Yearsof#AUTOSAR Enabling#Innovation#with#Model · PDF file4 AUTOSAR means 1 AUTOmobile Search"And Rescue 2 AUThentic Sportscar"Aspect Ratio 3 AUTomotive Open System"Architecture](https://reader031.fdocuments.us/reader031/viewer/2022021510/5aa1d89c7f8b9a84398c3940/html5/thumbnails/48.jpg)
48
And one last thing …AUTOSAR – Antagonizing the „German Coast Guard“ Effect
Source: https://youtu.be/zkalf0odHs8German Coast Guard Commercial 'We are Sinking' [HD]