Home
SystemDesk - EB tresos Studio - TargetLink
Contents
1. SystemDesk TargetLink Modeling environment for NA a BEERA eae zvara CTHAMNnHANANTC IC CULTINUTLICI EB tresos Studio Figure 1 AUTOSAR tools described in this document This document describes the interaction between the three AUTOSAR tools ASPACE SystemDesk dSPACE TargetLink and EB tresos Studio versions e SystemDesk 4 1 e EB tresos Studio 13 or 14 e TargetLink 3 4 or 3 5 lt is assumed that you are familiar with using these tools so no further introduction to them is provided here Further information on the single tools can be found in the documentation e SystemDesk 4 x Tutorial e SystemDesk 4 x Guide e SystemDesk 4 x Reference e ContainerManagementDocument e TargetLink AUTOSAR Modeling Guide e EB tresos Studio users guide This application note first describes the interfaces of the three tools and how to work with them in or der to get the ECU target software Chapter 2 is dedicated to the interface between SystemDesk and EB tresos Studio Chapter 3 explains how to integrate TargetLink into the tool chain And chapter 4 describes how to build the ECU target software The subsequent chapters give additional help for specific aspects Chapter 5 gives a detailed description on how to model specific elements in Sys temDesk in order to get a smooth transfer of the data to EB tresos Studio 3 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions 2 SystemDesk and EB
2. ccccecccecccseseeeeeeceeseeeeeeeeeeeeeeeseeeeeeeessaaeeeeeseaas 29 4 Build the ECU target SOMWarC eissis iian aaa aaa a aia aN 30 4 1 Preparation of the Build Environment cccccccccceeseeeeceeeeeecseeeeecseueeeesaedeeessaeesesaeeeesseeesssaeees 30 4A Z BUNI MNE SOW ANG seriei A E REA toe 30 5 Detailed Element Descriptions in SystemMDesk ccccccceeesseeeeceeenseeeeeeeenseeeseeeenseeeseeensseessooenes 31 Ost Mandatory atue S cea tore cose nes nea as Aceon aa a a 31 5 2 Wala Type WADDING seek a ARE A a cudiananr ead iowa a Aa 33 5 5 GohNStant SDeciicanon MapDING seiri a a AE a EA 35 6 RESIICHON S sicsccriscdicescsicnasticaedenicssscavcinaciseeecizecaceacelowesaazccucsaunecencaiceasseaccassarsaccaccaaccase aaaea a Oii 38 2 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions 1 Introduction systemDesk TargetLink and EB tresos Studio are three AUTOSAR tools which can be used together in an AUTOSAR tool chain for creating ECU software SystemDesk for modeling the architecture of the application software TargetLink for generating code for the application software and EB tresos Studio for configuring and generating the basic software as well as for RTE configuration and genera tion In order to reach executable code for the ECU the three tools must work well together This doc ument explains in detail how to interconnect the tools and which steps of the workflow should be per formed in which tool
3. IntTesk a oo Create your project Mote V403 AS403 p Create new project from template Platforms V200 AS403 General OsTackAccessingAppli OsTackEventRef OsTaskResourceRef Li Rename project Rte T Load project amp Rte V6 1 11 A5403 BM Adjust target and derivate settings 4 amp Stub OsTaskActivahon i gt 255 1 P gt Add modules Meu 4 2 0 A403 v Check available modules a System Services OsTaskPriority 0 gt 255 4 G Bow VLI 4 AS403 gt Import softwere component system descripbon Configure AUTOSAR modules Dem v5 5 0 AS4 0 3 Det v6 21 AS4 0 3 EcuM V5 40 AS4 0 3 Build your application a Q Os V840 AS40 2 Finish Q amp B OsteskAutostart gt config source gt util a 2 a z After importing the project mto the workspace rename the project as a follows 5 1 Right click on the project name in the Project Explorer view A a co su 2 Inthe context menu select Rename Sr Duin 3 Type a new project name o ine D OsCounter a Defauk Osivent z 5 m e r e G E amp Error Log Problems View B Results J Ty Description Information Errors J po SHORT HAME int_ Task may sa TASK objects are used t define which tasks are present in the system The OsResource attributes of the TASK object are defined in the folowing sections M OsScheduleTable a O OsTask E init Task amp SchMDiagStateT ask_20ens Figure 17 The workflows view in EB
4. e Execute lt tresos installation gt workspace lt your tresos project gt util launch bat 30 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions e Type make depend in the DOS shell e Type make in the DOS shell After compilation the executable file can be found within the folder lt tresos installation gt workspace lt your tresos project gt output bin The executable file can now be loaded to the target with your debugger tool chain 5 Detailed Element Descriptions in SystemDesk This section describes how to model specific aspects in SystemDesk which were discussed in section 2 2 While you can find reasons for when and why using these elements in section 2 2 this section gives an instruction on how to model them section 5 1 describes attributes of frequently used elements which are mandatory according to the strict schema You should therefore model them in SystemDesk since most of them will be needed in EB tresos Studio later on Section 5 2 describes how to do a data type mapping in SystemDesk and section 5 3 describes how to model a constant specification mapping 5 1 Mandatory attributes This section gives detailed information about attributes of some frequently used elements in Sys temDesk which are mandatory according to the strict schema and which should therefore be present when importing a project in EB tresos Studio You can use it as a reference when de signing your architectur
5. ware components to ECUs and a mapping of data elements to system signals Refer to the Sys temDesk Guide for an introduction on how to model the system 10 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions f 3 TutorialProject Tutorial sdp SystemDesk o ey X File Edit View Diagram Tools Window Help e h Ge EB tresos Compatibility Check Fe x i 53 System Manager Rx of RootSwComposition x e YE a 4 IndicatorSystem 4 4 4 RootSwCompositionPrototype a oH ae TurnSwitchSensor Be WarnLightsSensor fe FrontRightActuator Be FrontLeftActuator 4 i IndicatorComposition io_bulb FrontLeftActuator fg IndicatorLogi General Network Clusters ECUs Gateways SWC to ECU Mappings IndicatorLogic Data M 4 ECUs ata Mappings SWC to Impl Mappings Special Data Advanced 4 F CentralBodyEcu Sender receiver data mappings 4 gt Mapped SwComponents fr Filter 3 3 Be TurnSwitchSensor ay ae fe WarnLightsSensor System signal gro A hican Component Instan Port Data Element io 4 CanCommunicationController iZ CanBodyConnector Can J IndicatorLogic right signal gt ER FrontLeftindicatorEcu gt Sm FrontRightIndicatorEcu oe 4 ES Network Topology Select Delete x 4 A CanBodyCluster 4 J CanPhysicalChannel Sars cancei_ cx Em CentralBodyEcu FR FrontLeftindicatorEcu Em FrontRightIndicatorEcu Wl IndicatorLog
6. Create new project from template your project appears like this in this case the project has been renamed to ASPACE_EB Project Explorer 3 a 7 a a 8 dSPACE_EB a ECU WINDOWS WIN32X86 4 B EB Base Bundle gt Base V5 05 AS4 0 3 gt Moke V4 03 AS4 0 3 gt Platforms V2 0 0 AS4 0 3 a B Rte gt Rte V6 1 11 A54 0 3 4 B Stub gt Mcu 4 2 0 AS4 0 3 4 B System Services gt BswM V1 3 4 AS4 0 3 gt Dem V5 5 0 AS4 0 3 gt Det V6 2 1 AS4 0 3 gt J EcuM V5 4 0 AS4 0 3 a Os V4 4 0 AS4 0 2 Os gt contig gt source gt amp util Figure 22 The Project Exporer shows the new project 2 3 3 Importing the System Extract The configuration of the Basic Software starts with the import of the system extract which has been created with SystemDesk before To do the import an AUTOSAR system description importer has to be configured in EB tresos Studio The workflows view again gives detailed information how to pro ceed Figure 23 15 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions i Workflow execution AutoCore Workflow Rte 3 F Sidebar E POvVS CSCl RAY eo Setup initial project gt eee Create your project 4 Import software component description or system description 3 Copy software component description or system description files 4 Import software component system description Import software component descr
7. They also give hints about how to avoid some errors 2 2 Development of the Architecture This section describes those parts of the workflow which are performed in SystemDesk It is divided into four main steps from import of the system or communication description to export of the complete system In each step it is described what you should do and why you should do it For simpler as pects it is also described how to model them A detailed instruction for modeling the more complex aspects is given in section 5 4 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions 2 2 1 Step 1 Importing the System or Communication description The first step is to import the system or communication description in SystemDesk using the AU TOSAR import Choose File Import AUTOSAR Edit View Diagram I iu New Project i New Reference Project a New Example Project iy New Configurable Project k gt Open Project Ctr O Close Project Save Project Ctrl 5 Save Project As Import AUTOSAR Figure 3 Importing a system or communication description Select the arxml file click Open and then select the complete content of the arxml file When you click Finish Import the complete content of the file is imported into SystemDesk You can see it in the pro ject manager 2 2 2 Step 2 Modeling the Software Architecture The software architecture is modeled in SystemDesk Using the AUTOSAR package struc
8. gt adt_bulb e Ire adt_tss x adt_tss_io fh adi wls bp na DC adt tss b ns DC _adt tss_io gt O CompuMethods Interfaces gt a Units TurnSwitchSensor gt h gt WarnLightsSensor b IndicatorLogic gt ah BulbActuator s Master File Exp a s AUTOSAR File Ex Ek Container File Ex Figure 41 The Container File Explorer Then you can export the software component via its context menu choose Container Management Export Container A dialog shows which arxml files will be added to the container After a confirmation the export is performed More details about file assignment and the container manager can be found in the SystemDesk Guide and the Container Management Document 3 3 Importing a software component in TargetLink For importing the software component in TargetLink open the AUTOSAR data dictionary in which you want to import the software component If you create a new data dictionary make sure that you create it according to the AUTOSAR template a Select DD Template To int the DD Workspace select a OD template f System template d dd_master_autozar dd User defined template obo O AUTOSAR template Contains a typical configuration for projects in the AUTOSAR context Includes many AUTOSAR specific objects like AUTOSAR VarableClasses and FunctonClasses and the Autosar main object dSPACE Cancel Help Figure 42 Creating a n
9. 3 1 Overview This chapter describes how to integrate the function development in the workflow described in chapter 2 If you use hand programmed code you need to make sure that it fits to the internal behavior described in the software architecture and that it is compliant to AUTOSAR The code files are then handed over to be integrated in the EB tresos AutoCore Build Environment If you use TargetLink for code generation you can use the architecture which is defined in Sys temDesk Figure 39 shows an overview of the interaction of TargetLink with SystemDesk and EB tresos Studio It extends the workflow described in section SystemDesk and EB tresos Studio2 The first step is to export a software component from SystemDesk as arxml or SWC container and import it in a TargetLink data dictionary You can then reuse the data types interfaces ports data accesses runnables etc for your behavior model You can also use TargetLink to extend the imported architecture TargetLink offers for example a simple possibility to generate implementation data types from application data types and it creates a constant specification mapping when needed When the behavior model is complete you can generate the code for the software component Now you can optionally hand back the description of the software component to SystemDesk This makes sense especially if you have extended the architecture for example by implementation data types or if you want to simulat
10. AUTOSAR modules ees Build your application Finish Figure 19 Instructions to create an ECU configuration project The basic template project which shall be imported can be found in the EB tresos Studio installation directory see Figure 20 Select root directory of the projects to import 4 ACG 6_4_0_WIN32X86_ 2013 03 08 di autosar D bin gt configuration di demos di doc D jre jp jre64 d licenses J output Ji p2 di plugins s di templates 3 di AutoCore 4 6 4 WIN32X86 4 basicTemplate M prefs P config D source J util l di tools d workspace di p Folder basicTemplate Figure 20 Location of basic template project in the EB tresos Studio installation directory Don t miss to select the option Copy projects into workflows folder for the project import 14 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions H BE Import Enma Import Projects Select a directory to search for existing Eclipse projects Select root directory C EB tresos ACG 6_4_0_WIN32X86__2013 03 0 Browse i Select archive file Browse Projects basicTemplate C EB tresos ACG 6_4_0_WIN32X86_2013 03 08 t Select All Deselect All Refresh V Copy projects into workspace Working sets _ Add project to working sets m Figure 21 Dialog to import a project in EB tresos Studio After completing the working step
11. ApplicationDataTypes i adt bulb Inter E adt_tss Inter E adt_tss_io E adt_wis 8 6 El El Base type boolean El i Data co i Internal Figure 52 Selecting a data type for a constant Click OK and a second dialog opens Here you can enter the value of the constant in the field Scalar Note that the attribute ShortLabel does not change the short name of the constant which is visible in the project manager but the label of the value specification which can only be seen on the Advanced page Internal Value Specification a ShortLabel Value Figure 53 Entering the value of a constant Now the implementation constant is complete TT Constant Specification Consianie pesos General Special Data Short name ConstantSpecification Desc Value specifi 0 Figure 54 Implementation constant with value 0 36 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions When you have created implementation constants for all your application constants the next step is to map the constants to each other For this you have to create constant specification mapping sets which contain the mapping of the constants and you have to reference the mapping sets from the internal behaviors of the software components AUTOSAR is rather flexible here Each internal behav ior can reference one or more mapping sets and each mapping s
12. Type Sets Service Needs Parameters Special Data Advanced AdminData Annotations Ey Ey ArTypedPerlnstance Memorys Ey Ey Category ConstantMemorys Ey Ey ConstantValueMappingRets Ey B EY Ex DatalypeMappingRefs Ey B EY Ex E IndicatorLogic_DataTypeMappingSet 4 9 xHwW Desc Events EYE ExclusiveAreaNestingOrders EYE ExclusiveAreas EYE Show Sand T properties E oe a Go Figure 49 Referencing a data type mapping set from an internal behavior 34 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions 5 3 Constant Specification Mapping Before giving a detailed description about how to map application constants to implementation con stants the following figure explains what needs to be done It is assumed that you have mapped your application data types to implementation data types Now for each application constant that is a constant created for a data prototype which is typed by an application data type an implementation constant needs to be created As the two constants shall be mapped later on they need to be compat ible SystemDesk assists you in achieving this by letting you choose an implementation data type for the constant and then generates the internal structure of the constant according to the data type The easiest way is to choose the implementation data type to which the application data type is mapped Figure 50 Application Implementation Data Type Mappa ts Data Type A Data
13. tresos Studio 2 1 Overview This chapter describes the typical steps which are needed when using SystemDesk and EB tresos Studio for creating the software of an ECU Figure 2 gives an overview of the complete workflow The first step is to import the system or communication description in SystemDesk which is provided by the OEM SystemDesk is then used for modeling the software architecture and the system For this task it can also be necessary to import service interfaces which need to be exported from EB tresos Studio When the architecture and system are complete they are exported from SystemDesk and imported in EB tresos Studio Here the basic software can be configured and generated resulting in code files for the basic software This chapter describes the single steps of this workflow Section 2 2 is dedicated to the steps to be performed in SystemDesk Section 2 3 describes the EB tresos Studio parts Function development and the interaction between TargetLink and SystemDesk EB tresos Studio are not addressed in this chapter Refer to chapter 3 for this topic System or Communication arxml lt SystemDesk Service Interfaces arxml Software Architecture and System System Extract arxml Basic Software code files EB tresos AutoCore Figure 2 Overview of the workflow with SystemDesk and EB tresos Studio The following sections describe the single steps of this workflow in detail
14. type IDTs are needed for code and RTE generation and appear in the generated code In the context menu of a software component select AUTOSAR Tools ImplementationDataType Creation Wizard In the upper part of the dialog you can select the package in which newly generated IDTs will be saved or you can specify the name for a new package The lower left part of the dialog shows all ADTs which are not mapped to IDTs in the data type map ping set of the selected software component If no data type mapping set exists all ADTs are shown and a new data type mapping set is created In the lower right part of the dialog you can see a suggestion for an IDT for the selected ADT You can either map the ADT to an existing IDT or base type or you can generate a new IDT by specifying a new name and a base type In this case the scaling and the ranges of the IDT are taken over from the ADT Click Apply to save the settings for the selected ADT In a similar way ADTs can be generated from IDTs using the Applicaton Data Type Creation wizard if this is required 28 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions EJ ImplementationDataType Creation Wizard o eS The DO SoftwareComponent object references a DD DataTypellappingSet object Software component IndicatorLogic that is contained in a DD DataTypeMappingSetGroup object TargetLink will create DD Typedef objects in the specified DD TypedefGroup F object Data type m
15. using the EB tresos AutoCore build environment More details can be found in the EB tresos AutoCore documentation This workflow step can be divided into two steps 4 1 Preparation of the Build Environment The installation path of your EB tresos Studio installation has to be stated Open the file lt tresos installation gt workspace lt your tresos project gt util launch bat and set the variable TRESOS_BASE to the installation path of EB tresos Studio The location of your application files generated from TargetLink has to be stated Open the file lt tresos installation gt workspace lt your tresos project gt util common mak and add extend the path setting of the variable CC_FILES TO_BUILD lf you are using the EB tresos WinCore nothing else has to be done If you generate the code for an embedded target the compiler has to be configured Open the file lt tresos installation gt workspace lt your tresos project gt util lt target gt _ lt derivate gt _Makefile mak gt and set the variables TOOLCHAIN and COMPILER Then open the file lt tresos installation gt workspace lt your tresos project gt util lt target gt _ lt derivate gt _ lt compiler gt _cfg mak gt and set the variable TOOLPATH_COMPILER 4 2 Building the Software The complete software including the basic software and the application can now be built Ensure that EB tresos Studio is closed when you start the build process for the first time Then do the following steps
16. version 5 2 Data Type Mapping In order to model the data type mapping in SystemDesk create a new data type mapping set via the context menu of a package New New SWC T Data Type Mapping Set ne m 1o_wis ail a Swecs z out_wis i WamLightsSensor ait Unit Group F b aj BulbActuator Post Seresevlatresiee Stet 4 be indicato Se ee TT Constant Specification New j Filter gt O A gt G a 49 Application SW Component Type on b Ga Con Export Ga Package w Composition SW Component Type it gos i 49 Application SW Component Type ttj Parameter SW Component Type pi C Ctrl C 4 U Indi gi H fa Composition SW Component Type fe Sensor Actuator SW Component Type ro l 4 x gt Sender Receiver Interface wg NV Block SW Component Type p Delete Shift Del i P Client Server Interface Wa Service Proxy SW Component Type F Rename F2 3 bi do Mode Switch Interface W Service SW Component Type l link 181 SWC Implementation i Complex Device Driver SW Component Type he Validate ww Compu Method a9 ECU Abstraction SW Component Type J gt f 3 48 Help ai Unit oi SWC Implementation b sa E Application Primitive Data Type _ P Alt Ente a Calibration Parameter Value Set fe b gt TE roperties t Enter m Implementation Data Type E Data Type Mapping Set b JT IndicatorLogic_ConstantSpeci ZF Physical Dimension w Data Type Mapping Se 5 End To End Protection Set gt a gt a E IndicatorLogic_DataTypeMap
17. Desk EB tresos Studio TargetLink Workflow Descriptions ER New Importer Exporter All Models Selection of parameters that apply to all imported models Input files C EB tresos workspaceFEV dSPACE_EB Tutorial_SystemExtract arx gi Meta model version V Auto detect for each file Validation V Validate against XML schema Import customization None System Systems IndicatorSystem IndicatorSystem_1 ECU instance Figure 25 Importer configuration selection of system and Ecu instance In the configuration tab System Model Import the import options have to be set Figure 26 ER New Importer Exporter System Model Import Parameters for importing the System Description into the System Model V Enable system model import System Model N Handle existing model Overwrite existing model with content from selected files D Merge content of selected files into existing model Merge algorithm for selected files merge into existing model Use improved merge algorithm based on AUTOSAR stereotype atpSplitable and UUID matching O Use legacy merge algorithm Add software component ECU extract No ECU extract Add software components beneath a toplevel composition Add software components data and service port mappings referenced by a system and ECU instance Compositions RootSwComposition RootSwComposition EcuSwComposition F
18. PACE_EB a ECU WINDOWS WIN32X86 gt ft EB Base Bundle 22 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Figure 35 Verify the configuration After successful verification the code can be generated for the basic software modules To do so click the generate button in the tools bar Figure 36 The generated code can be found in the folder lt tresos gt workspace dSPACE_EB output generated File Edit Search Project Window Help RTE Project Explorer 2 E aan a eB dSPACE_EB a ECU WINDOWS WIN32X86 gt B EB Base Bundle Figure 36 Generate code for the basic software modules 2 3 6 Add the communication parts to the basic software To add the communication modules and to import the communication data switch to the workflow CAN stack or FlexRay stack as shown in Figure 37 Then follow the workflow instructions for CAN or FlexRay in the same way as we did in the previous chapters for the workflow Setup an initial pro ject a eS fi studio Workflow CAN Stack 5 ca Sidebar F S e ny o e Ep7 Start workflow AutoCore Workflow CAN Stack Start workflow AutoCore Workflow Rte Start workflow AutoCore Workflow FlexRay Stack All workflows Figure 37 Workflows for communication 2 3 Export service component interfaces As described in section 2 2 2 1 the software component description of the basic software can be gen erated Figure 38 illustr
19. Prototype Create according to Typed by Created for Application Implementation Mapto Constant epee Constant a a Figure 50 Overview over Constant Specification Mapping For mapping application constants to implementation constants in SystemDesk you need to do the following For each application constant create a new constant specification and open its Properties dialog Then click the icon in the field Value specification TT Constant Specification Constant pecification General Special Data Advanced Short name ConstantSpecification Desc r Value specifi ox canei E Es e h Figure 51 Empty Constant Specification SystemDesk now opens a dialog for you to select a data type according to which the internal structure of the constant will be created This is where you define whether the constant specification is an appli cation or an implementation constant Select the implementation data type to which the application data type of the application constant is mapped 35 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Select TypeTref EY General Special Data Advanced i Short na boolean 4 ImplementationDataTypes m boolean Desc float32 float64 sintl6 sint32 sint8 i Category VALUE uinti6 uint32 i T uint8 Compu boolean 4 I SharedElements 4 J
20. SystemDesk EB tresos Studio TargetLink Workflow Descriptions SystemDesk EB tresos Stu dio TargetLink Workflow Descriptions Usable with Versions dSPACE SystemDesk 4 1 EB tresos Studio 13 or 14 TargetLink 3 4 or TargetLink 3 5 with patches February 2014 1 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Contents OPS TNS carats seh E acta eg ace eeu E E tome Senet ooacteuntuaae 2 D TATROGUGUON iiinn aian aaa aiaa e N a aE N 3 2 SystemDesk and EB tresos Stuio ccccssssseeeccssesseeeeeeensseeeeeeenseeeeeeoenseeeeeeoesseeeeseoenseeseseoenseeessonenss 4 ZW OVENI ONW iena E a E E a T E NEN 4 2 2 Development of the Architecture cccccsecccceseecceseeeceeececceuseeccsaeeecseueeeessseeessageeessageeessseseeeess 4 2 2 1 Step 1 Importing the System or Communication description ccccceeeeeeeeeeeeeeaeeeeeeeeaaeees 5 2 2 2 Step 2 Modeling the Software Architecture ccccccesseceeeessseeeeeeseseeeeensaseeeesseaneeeeenseases 5 2 2 3 Step 3 optional Modeling the SYSteM ccccsessececcessseeeeeeeeeeseeeesaeeeeceeeseeaeeeeeseeeneeeeseaas 10 2 2 4 Step 4 Exporting a System Extract ccccceccceseeeeesccsseeececcceeeceesseaeeceessceseeeenssoseeeeeeses 11 2 3 Configuration and Generation Of Basic SOPWALE cccccccccseeeeeeeeeeeeeeeeeeeeeeeeeeessaeeeeeeeesaeeeeeeeeas 12 23 NOV CIN 5 fesse fast ea aaa nad Sead soba aioe dah ee wee dls et ora a ea
21. TIB He fe 10 0ms fa 0 0 ms Mapped RTE and BSW events Task fOs Os RteTime_Task Figure 34 Mapping of events to a task Now map the two non periodic events DataReceivedEvent to the RteEvent_Task The event TssCyclic20ms is not yet mapped This event is of category CAT2 which means it may not terminate Therefore this event is mapped to an own task RteCat2_ Task The RTE editor can be closed now 2 3 4 7 Calculate Os and Com service needs It is recommended that you run the Service Needs Calculator again to add the Os and Com objects required by the RTE module to the Os configuration Since this requires a consistent RTE configura tion this step is recommended after you have completed the configuration of the RTE Therefore dou ble click the action step Calculate Os and Com service needs 2 3 4 8 Update service component and BSWM descriptions The last steps have changed the ECU configuration on which the BSWMD depends Thus it is rec ommended to update the basic software module description again Therefore double click the action step Update service component and BSWM descriptions 2 3 9 Verify the configuration The configuration of the basic software modules is now completed To verify the configuration and check for configuration errors press the button verify selected project Figure 35 j Ee resos Mm File Edit Search Project Window Help RTE ral tel ETTE l Project Explorer 2 A O Y a dS
22. The code files are also automatically contained in the container 29 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Moreover TargetLink generates an SWC implementation element for each software component which specifies the code files and implementation details EB tresos Studio also needs this element in your software architecture If you do not return the software architecture to SystemDesk you need to model it by hand For exporting a container for one SWC from TargetLink choose Export Container from the context menu of a software component You can import it in SystemDesk via the context menu of your project im Project Manager A x os RootSwC omposition l 4 Sot Ga vey 4 g TutorialProject gt E AUTOSAR ASpi New Package re gt E AUTOSAR Platf afk b E Communication Container Management e EL Import Container gt aj Compositions Import gt fy Ecus Eaa i Multiple Container Import d gt a SharedElements Multiple Container Export d d fe Swes gt aj BulbActuato Renae E2 Create Automatic File Assignment 4 u IndicatorLoc Assign Dependent AR Elements p E Applicat og Validate b a Compuh B Start Container Manager k uw gt a Constan ep Lr re E maeh saal Figure 46 Importing a container in SystemDesk 4 Build the ECU target Software The basic software generated in chapter 2 3 and the application software according to chapter 3 5 can now be compiled and linked
23. TurnSwitchSensor WarmLightsSensor New SWC T New System T a x Interpolation Routine Mapping Set Port Interface Mapping Set Figure 47 Creating a new data type mapping set In its Properties dialog you can create new mappings on the Data Type Mapping page Each mapping refers to one ADT and one IDT which must be compatible i e the category and the size 33 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions w Data Type Mapping Set IndicatorLogic_DataTypeMapping5et General Data Type Maps Mode Request Type Maps Special Data Advanced Application Data Type Ref Implementation Data Type Ret t adit tss sint xX adt_wis boolean x adt_bulb boolean x adtis uint x adt_max_count f uint x New Delete valid o Ga Figure 48 Mapping application data types to implementation data types or base types Once you have created one or more data type mapping sets you need to create a reference from each internal behavior to the mapping s which shall be used in this context You can do this on the Advanced page of the internal behavior s Properties dialog in the field DataT ypeMappingRefs You can reference the same mapping set from several internal behaviors or you can create an own map ping set for each internal behavior F SWC Internal Behavior IB_IndicatorLogic RTE Events Interrunnable Variables Port API Options Per Instance Memory Included Data
24. apping set IndicatorLogic_DataTypeMappingSet Typedef group IDTGroup_IndicatorLogic T Data type mapping set group IndicatorLogic TargetLink lists all the application data types that are referenced at data prototypes of the software component and are not mapped to a typedef Select one or more application data type s from the list and specify a DD Typedeft object for the selected application data type s ApplicationDataType ADT Typedef Kind Primitive AND Filter Name IDT_adt_wis P adt wils Base type Int16 Scaling Max dSPACE Exclude cases i Appiy Figure 45 Mapping ADTs to IDTs Note that each atomic software component needs a reference to a data type mapping set If you use TargetLink to generate them you will receive an own mapping set for each software component If you want to use the same mapping set for several software components you should create it in Sys temDesk and reference it from each software component You can then generate or map the IDTs in TargetLink using the wizard 3 4 3 Generation of a Constant Specification Mapping As described in section 2 2 2 3 constants specifying physical values need to be transformed into in ternal values to be used in the code for the software components and for RTE generation For this EB tresos Studio expects a mapping of such application constants to implementation constants via a con stant specification mapping set TargetLink generates such a
25. argetLink model for a software component significantly because the TargetLink user does not need to deal with all AUTOSAR details but can focus on filling in the frame model with the actual control algorithm To generate an AUTOSAR frame model select the respective software component object in the TargetLink Data Dictionary and choose the AUTOSAR Tools Generate Frame Model context menu entry TargetLink will then create a new model from scratch which contains blocks for the runnables AUTOSAR ports data access points etc for that particular software component The user can now fill in the content of the runnables with TargetLink blocks drag already prepared subsystems from a Simulink library into the runnables or e g use TargetLink Custom Code blocks to call already existing non AUTOSAR legacy C code functions In any case getting to a first design of the SWC in TargetLink is made rather easy 2 7 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions WW AutosarFrameModel Subsystem IndicatorLogic gt e 28 File Edit View Simulation Format Tools TargetLink Help Dae e amp g T gt 10 0 Normal IndicatorLogic aeo icatorLogic BRE IndicatorLogic 7 PP_left RP_tss e EP ale tss_status right elnstantiation PP_right ingSetRef Name rUuid z o B 2 Nd WE AutosarFrameModel Uy File Edit View Simulati
26. ates how to generate the SW CD d igri generate_asr32_swed N generate_project_data generate_swed verity _swed contract generate_asr40_swed werlfy_asr32_swed vwerity_asrd0_swed Figure 38 Generate SW CD of service modules The output files can be found in the folder lt tresos gt workspace dSPACE_EB output generated swcd The interfaces can be found in the file s lt module gt _swc_interface arxml In the current example no basic software services are configured Therefore these files are not generated 23 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions To be able to generate a SW CD of a basic software module this module has to be configured in EB tresos Studio Especially the parameter Enable Rte Usage has to be enabled to switch on the port generation The generation of the SW CD is even possible if there are errors in the configuration pro ject The generated interfaces are imported into SystemDesk to ensure that the application SW C uses interfaces which are compatible to the basic software So the overall workflow is as follows e Pre configure the basic software in EB tresos Studio and generate the SW CD of the basic software services e Import these service interfaces into SystemDesk and create a complete system description e Import the system description into EB tresos Studio and finalize the configuration of the RTE and the basic software 3 Function Development
27. atorLogic gt ApplicationDataT gt CompuMethods gt amp Constants gt 011 IMPL_IndicatorLo 4 9 IndicatorLogic z7 IB_IndicatorLd i IndicatorLogic h kd p b amp left New Delete gt amp right Delete b amp tss A gt amp wlis Cancel Ef Help ok canca E JI IndicatorLogic_COnscam speeq gt IndicatorLogic_DataTypeMap gt TurnSwitchSensor gt WarnLightsSensor gt Systems Project Ma ZR Tool System Ma Ready Batch Mode OFF Figure 10 Describing code files If you use TargetLink for code generation you do not need to model the SWC implementations by hand TargetLink creates them automatically You only need to reimport the arxml description of the software component in SystemDesk after code generation see chapter 3 2 2 2 5 Validation and the STRICT schema While modeling the software architecture you should use SystemDesk s validation mechanism The validation will assist you in identifying some possible sources of error at this early stage You can use the default validation for checking general consistency constraints and rules defined by AUTOSAR or 9 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions you can use the predefined validation rule set EB tresos Compatibility Check When activated Sys temDesk a
28. ble 3 Fora concrete example s see an application demo hints below the text Application demos concrete examples SW component SV C_CyclicCounter is connected to Det hence add one item in Det Accessing Software Components tab Figure 28 Instructions to configure the basic software modules 2 3 4 1 Configure Det Module Since there is no software component that reports to the Det module this step can be skipped 2 3 4 2 Configure Os Module The system extract contains software components and their runnable entities These runnable entities must be mapped to Os tasks The tasks have to be created in the Os configuration Double click on the action step Configure Os module in the workflows view to open the editor for the Os configuration and add the tasks RteTime_Task RteEvent_Task and RteCat2_ Task Figure 29 For more infor mation refer to the help view within the workflows view or to the user manual of EB tresos AutoCore Os Name fe Os General OsAlarm OsAppMode OsSpinlock OsApplication OsCounter OsEvent Osloc Oslsr OsTask gt OsResource OsScheduleTable Os E OsTask F Index e Name OsTaskActivation OsTaskPriority E OsTaskSchedule Fe OsStacksize 0 Init_Task gt i B 4 NON 1 1 SchMDiagStateTask_200ms 1 50 B FULL 1 2 amp RteTime Task F iB 5 E FULL ia 1024 3 RteEvent_Task iB 5 FULL 1024 4 2 RteCat Task 1 5 Gp FULL ka 1 Figure 29 New tasks within the Os task
29. configuration 19 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions 2 3 4 3 Configure BswM Module No action is necessary to configure the BswM module 2 3 4 4 Calculate Dem NvM and EcuM service needs The basic software modules are not independent of each other These dependencies are resolved by the service needs calculator which for example automatically adds the init functions of the different basic software modules to the EcuM EcuM initializes the Ecu or adds the required Dem events to the Dem configuration To run the service needs calculator double click the action step in the workflows view The service needs are now calculated and the configurations of the affected modules are auto matically updated 2 3 4 5 Update service component and BSWM descriptions The Service Component and BSWM Description Updater generates and imports the basic software module description BSWMD of all modules The update of the BSWMD is a prerequisite for the configuration of the main function to task mapping and of the configuration of the BSW exclusive area in the RTE Moreover the Service Component and BSWM Description Updater also generates and imports the service component descriptions for ser vice modules e g Det After this step the service components are available and can be connected to the application software components To run the Service Component and BSWM Description Updater double click the action step Updat
30. cts Required Generator Tools Compilers Special Data Advanced Short name IMPL_IndicatorLogic Desc Behavior ret IB_IndicatorLogic Programming language C Used code generator TargetLink Required RTE vendor SW version 1 0 0 Resource consumption ResourceConsumption Figure 9 SWC implementation Properties Dialog For describing the code files you need to create a code descriptor on the Code Descriptors Page of the SWC Implementation Properties dialog Then each file is described by one artifact descriptor Four properties are used for describing the code file short label category domain and revision labels TutorialProject Tutorial sdp SystemDesk lo e amp File Edit View Diagram Tools Window Help oe tresos Compatibility Chec E i GP EB Compatibility Check a Project Manager 391 SWC Implementation IMPL_IndicatorLogic Sort da i General Code Descriptors Required Artifacts Generated Artifacts Required Generator Tools Compilers Special Data Advanced 4 TutorialProject AUTOSAR_AlSpecificatio AUTOSAR Platform Communication Short Name gt SourceCode Desc Code SourceCode Compositions Ecus C SharedElements General Artifact Descriptor Special Data Advanced 4 E Swcs Short Label IndicatorLogic c Domain gt BulbActuator 4 Indic
31. dditionally checks special issues regarding the exchange with EB tresos Studio For exam ple it is important to see already in SystemDesk whether your project is complete or which model parts are still missing The AUTOSAR strict schema defines many elements which need to be present in a complete project The validation according to the EB tresos Compatibility Check validates the project according to the strict schema and additionally checks for some further mandatory elements Like this you can detect already in SystemDesk whether your project is complete and can be pro cessed in EB tresos Studio However validation in SystemDesk can identify most but not all potential problems that might be reported by EB tresos Studio in a later step Also note that the validation checks for conformance to the strict schema according to AUTOSAR R4 1 1 If you export your model in a different schema version it can happen that some elements are mandatory in this version which are optional in AR 4 1 1 and therefore the validation does not indicate these missing elements You can activate the EB tresos Compatibility Check in SystemDesk s toolbar After that you can vali date elements from their context menu in the Project Manager or directly from their Properties dialog ew Diagram Tools Window Help Git EB tresos Compatibility Check Default lanager TargetLink 3 4 Compatibility Check 4 G TargetLink 3 5 Compatibility Check lalProject EB tresos Compa
32. e service component and BSWM descriptions in the Workflows view 2 3 4 6 Configure RTE module The configuration of the RTE is done with a special RTE editor To launch this editor double click the action step Configure Rte module within the workflow and then select Rte Editor Figure 30 BE select Editor o Available editors Editor label gt Module label Generic Editor Rte V6 1 11 AS4 0 3 Rte Editor Rte V6 1 11 AS4 0 3 Figure 30 Launching the RTE Editor To generate RTE code as well as the BSW scheduler code the item Rte Generator Output in the tab General has to be set to Full Figure 31 HA Rte Editor 3 2 Rte Editor General _ Implementation Selec Partitioning Optimizations Event Mapping Data Mapping 7 EE RteGenentorOupt eO OSEK OS compatibility mode Rte Only Bsw Scheduler Only Os Os Rte_Counter Os counter Figure 31 Rte Generator Output Settings and Os counter settings in the Rte Editor 20 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions The RTE needs a reference to an Os counter The basic template which is used in this example al ready provides the software counter Ate_Counter Verify that this counter is selected in the General tab of the Rte editor see also Figure 31 Now the RTE Events have to be mapped to the Os tasks To do the mapping open the tab Event Mapping in the Rte Editor In the upper table t
33. e in SystemDesk This document gives information about mandatory el ements but it does not explain them You can find a description and an explanation of the attrib utes in the AUTOSAR templates A short explanation is also available as a tooltip in the ad vanced tab of each dialog Note that a checkbox has three possible values in SystemDesk If such an attribute is mandatory it must be true or false Not defined Ce Fae This table lists the mandatory attributes for frequently used elements Element Mandatory attributes Application Primitive Data Type SW data def props SW calibration access Application Array Data Type Element type ref Max number of elements Application Record Data Type At least one record element Implementation data type Dependent on category For category VALUE Base type SWC Internal Behavior Supports multiple instantiations Handle termination and restart At least one runnable entity 31 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions SWC Implementation SWC internal behavior SW version Vendor ID Resource consumption Programming language Runnable Entity Can be invoked concurrently Minimum start interval Symbol Sender Receiver Interface At least one variable data prototype Is service Client Server Interface At least one operation Is service Mode declaration group At least one mode Initial mode ref Mode switch interface Mode group Is se
34. e oh 12 2 3 2 Creating a new ECU configuration Project cccccccccsseeeeeeeeeeeeeeeeeeaeeeeeeeeeeeaeeeeeesaeeeeeeeeeas 13 2 3 3 IMPOMING Ihe SYSTEM EXtCaG sed ost cae58 5 5 tase a e a a E a 15 2 3 4 Configure AUTOSAR modules cccccccseeeeececceeeeeeeeeeeceeeeeeeeeeeeseeeeeeeesssaaseeeeesesseeaaseeeeeeees 18 2 3 5 Verify the configuration ccccccseseecccesececceseeecsaeeecceuseeessaueeessaseeeeseuseeessageeessaeeessenseneees 22 2 3 6 Add the communication parts to the basic SOPWALE ccccceeeecceecseeeeeeeesueeeeeeeesaeeeeeeeeeas 23 2 3 Export service COMPONENT interfaces cc ceeeccccseeeeeeceeeeeecaeeeeeeeeeeeeeeaeeeesseeeeeesaeeeesseeeeeeas 23 3 FUNCUON D veloppment isser aa iaaa 24 3 MOVE EW asea aaa a a a eee 24 3 2 Exporting a software component from SysteMDEesk ccccceeececcseeececaeeeeeeseeeeeeseeeeesseeeesaeeeees 25 3 3 Importing a software component in TargetLink cccccseccceesseeeeeceeeeeecseeeeeeseeseeeseeeeesseneeessaeees 26 3 4 AUTOSAR support in TargetlLik sccectccwctenncanckeetecws Mharevecentcesnecsicdentecer erin eteeesnetiheetoe Mc 27 34 1 Frame Model Generatii snini A a a AE 27 3 4 2 Generation of Application or Implementation Data TYP S cccccccceececseeeeeseeeeeeeeeeeeeees 28 3 4 3 Generation of a Constant Specification Mapping cccecccccseseeeeceseeeeceeeeceeseeeeesaeeeeeas 29 3 5 Delivering the architecture and the code files
35. e your ECU using VEOS In this case the software component has to be returned as an arxml file to the software architecture in SystemDesk Whether transferring the archi tecture or not the code files have to be handed over to the EB tresos AutoCore Build Environment for building the ECU code In the following the single steps are described in more detail Detailed information about the data ex change between SystemDesk and TargetLink can be found in the Container Management Document 24 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Service A Software architecture Software Software Interfaces and system component component arxml SystemExtract arxml arxml arxml Basic software Application code files code files EB tresos AutoCore EB tresos AutoCore build environment ECU Figure 39 Overview of the interfaces between TargetLink SystemDesk and EB tresos Studio 3 2 Exporting a software component from SystemDesk The first step is to export the software component from SystemDesk for which the behavior shall be modeled in TargetLink Before you do this it is advisable to use SystemDesk s validation SystemDesk 4 1 supports the complete AUTOSAR schema TargetLink on the other hand has some limitations regarding specific AUTOSAR features Therefore before exporting software components from Sys temDesk you should validate your project for com
36. ementation constants which represent the corresponding internal values SystemDesk automatically creates application constants for values of application data types For example initial values for data elements typed by an applica tion data type are application constants The mapping can be performed in SystemDesk see section 5 3 for a detailed instruction or in TargetLink see section 3 4 3 FT Constant Specification Mapping Set IndicatorLogic_ConstantSpecificationMappingSet General Special Data Advanced Name Introduction LongName 4 Mappings Ey B Ek 4 AR Constant pecification Mapping tx TT ApplConstantRef IV_tss_value a x w J TT ImplConstantRef IV _tss_value_IDT 3 xO 5 T Time Date gt AR ConstantSpecificationMapping gt AR ConstantspecificationMapping b A ConstantSpecificationMapping BoCenete et ee efi tien ha eee b A W Show 5 and T properties Help Cancel Ei Figure 8 Constant specification mapping 2 2 2 4 SWC Implementation The element SWC implementation describes the implementation details of one internal behavior For each internal behavior you need at least one SWC implementation to be able to generate the RTE in EB tresos Studio You can create it from the context menu of an internal behavior 8 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Dl SWC Implementation IMPL_IndicatorLogic General Code Descriptors Required Artifacts Generated Artifa
37. es Dialog E Data Type Mapping Set DataTypeMapping ype Mapping Mode Request Type Mappings Special Data Application Data Type Ret Implementation Data Type Ret dt_bulb idt_bulb dt_is idt_is dt_tss idt_tss dt_tss_io idt_tss_io dt_wis idt_wils Delete Figure 7 Mapping of application to implementation data types 7 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions You need to create at least one reference to a data type mapping set from each atomic software com ponent All ADTs which are used in a software component need to be mapped to IDTs in one of the data type mapping sets which are referenced by it You can use the same mapping for several soft ware components or you can create a different mapping for each SWC If you use TargetLink you can also use the Implementation Data Type Creation Wizard for creating the mappings Details about how to model the data type mapping in SystemDesk are described in section 5 2 The usage of TargetLink s ImplementationDataT ype Creation Wizard is explained in sec tion 3 4 2 If you use application data types you might additionally need to create one or more constant specifica tion mappings This is the case if you have application constants in your project Application constants describe a physical value but for RTE generation the corresponding internal values are required For this EB tresos Studio expects a mapping of application constants to impl
38. et may be used in one or more inter nal behaviors The only constraint is that for each internal behavior each application constant may only be mapped once to an implementation constant such that the mapping is unambiguous This means that you can decide whether you want to create only one mapping set and reference it from all software components whether you want to create one specific mapping set for each software compo nent or whether you even want to split the mapping sets It is for example possible to create one mapping set for all constants which are shared between several SWCs and an additional mapping set for each SWC containing the constants only used in this context You can create a new mapping set via New New SWC T Constant Specification Mapping Set in the context menu of a package In its Properties dialog go to the Advanced page In the Mappings list create a new ConstantSpecificationMapping by clicking There you can reference the application and the implementation constant M Constant Specification Mapping Set IndicatorLogic_ConstantSpecificationMappingSet General Special Data Advanced Name Value b AR Desc MultiLanquageOverviewParagraph Introduction LongName Mappings ARA ConstantSpecificationMapping ARA ConstantSpecificationMapping ARA ConstantSpecificationMapping TT ApplConstantRef IW wls_status TT ImplConstantRef Iv _wls_status_IDT 3 7 xO 5 T Time Date gt ARA ConstantSpecificationMapping b AR Con
39. ew data dictionary according to the AUTOSAR template When you have opened the data dictionary select File Import From Container and select the con tainer with the software component you have exported from SystemDesk Confirm the settings and TargetLink will import the software component 26 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Templates f amp RTOS Modules AR Autosar Ey Config E amp Interfaces a Mode DeclarationGroups E F SotwareComponents El Swes Aes IndicatorLogic gt sroup Info Els 3 IndicatorLogic cj Ports a a n E Jie WisPreprocessing Eb fe Logic D wie Toggle a RteEvents E Related Variables fH T Application Data Types i Si DataTypeMappingSets FA a idiotic Units fA CodegenOptionSets EE Subsystems Figure 43 Excerpt from a data dictionary with an imported SWC 3 4 AUTOSAR support in TargetLink TargetLink offers several functionalities which simplify the behavior modeling according to AUTOSAR The following sections describe the most important functionalities A more detailed description can be found in the TargetLink AUTOSAR Modeling Guide 3 4 1 Frame Model Generation TargetLink offers a functionality to generate an AUTOSAR frame model skeleton model based on the AUTOSAR related specifications of a software component in the TargetLink Data Dictionary DD The AUTOSAR frame model generation simplifies designing a Simulink T
40. he events their executable entities SWC instances and timing requirements are listed Figure 32 Os Os Rte Editor 23 4b Rte Editor 6 warningls detected General Implementation Selection Partitioning Optimizations Event Mapping v Unmapped RTE and BSW events Display RTE and Bsw events with required mapping only E Unmapped RTE and BSW events E Event Executable ent Instance Category x Ra E TssCyclic20ms RteTimingEvent TssRunnable EcuExtra E CAT2 x E E WlsReceivedEvent DataReceivedEvent Ei WisRunnable EcuExtra CATLB x i TssCycliclOms RteTimingEvent Ei TssPreprocessing EcuEsxtra CATIA x E WisReceivedEvent DataReceivedEvent E WisPreprocessing E EcuExtra CATIB Lx 1 LegicCycliclOms RteTimingEvent Logic EcuEstra E CATLA x e ToggleCycliclOms RteTimingEvent Toggle E EcuExtra E CATIE x E Figure 32 List of events that have to be mapped Data Mapping Exclusive Areas Measurement amp Calibration NVF Period l Offset 20 0ms fe 0 0 ms fed 10 0ms fe 0 0 ms fed 10 0ms H 0 0 ms 10 0ms jz 0 0ms ED ED EP EP Ga E In the middle of this tab a task can be selected on which events may be mapped The lower table lists the events that have already been mapped to the selected task To map the events listed in Figure 32 select the previously configured task RteTime_Task Figure 33 After that select
41. ic left signal Left 3 Right gt bd W Project Ma X Tool System Ma lt m Ready Batch Mode OFF Figure 13 Modeling the System 2 2 4 Step 4 Exporting a System Extract There are several possibilities how to export your architecture for EB tresos Studio It is only important that the exported arxml file contains all parts of the system which are associated with your ECU This comprises the complete software architecture and the AR element representing the system with areference to your ECU areference to your top level composition with your software architecture a mapping of your software components to the ECU a mapping of data elements to bus messages The simplest way to export it is to create a system extract You can do this via the context menu of the system Before exporting you can choose the ECU s which shall be contained in the system extract The resulting file can then be imported in EB tresos Studio 9 System Manager i x z a IndicatorSystem 4 RootSwComposition ae TurnSwitchSenso a WarLightsSensc ae FrontRightActuat Export AUTOSAR aF FrontLeftActuato AUTOSAR System Extract Locate in Project Manager ag RootSwComposition iy IndicatorCompos IndicatarLagi a Ge Pci Me rears fdr Figure 14 Creating a system extract 11 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions S Sy
42. igure 26 Importer configuration system model settings Note that the ECU configuration import is disabled for this workflow step How to include the commu nication data is described in chapter 2 3 6 configuration tab ECU Configuration Import Figure 27 17 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions ne ECU Configuration Import Parameters for importing the System Description into the ECU Configuration Enable ECU Configuration import EG guration No config available in projec No config available in project No config available in project No config available in project No config available in project o config ava ble in project o config ava ole in project lo config ava ole in project m o config available in project lo config ava ple in project 1 O O a a ay Q a a gt oS co or paa m o ry r lo config ava able in project a o No config ava e in project o config ava Jle in project No config available in project No config available in project a q O o o o o o config available in project Instance suffix for Frames PDUs and Signals Create default buffer assignment lt Back Next gt Cancel Figure 27 Importer configuration disable the ECU configuration import Run the importer to import the data of the system extract into the internal system data base of EB tresos Studio After the import you shou
43. iption i Import system description gt eee Configure AUTOSAR modules gt aa Build your application Finish li Figure 23 Instructions to import the system extract into the project The settings that have to be made for the importer are displayed in Figure 24 Figure 27 You can provide an arbitrary name for the importer In Figure 24 the name has been chosen equally to the file name of the import file EB Create manage and run im and exporters Create manage and run im and exporters Create an importer to import data into your proje Sa EB New Importer Exporter New Importer Exporter Please provide the base data for your new im or exporter g The Name is a unique identifier for the im and exporter to distinguish the source of the parameter Name Tutorial_SystemExtract Importer Exporter System Description Importer Autosar 2 1 3 0 3 1 3 2 4 0 4 1 Imports files in the Autosar system description format Description Import only Figure 24 Importer configuration for the import of the system extract In the configuration tab All Models location of the input file has to be specified In our case it is the system extract which has been exported out of SystemDesk It is recommendable to first copy this into the project folder in the workspace because this file is always project specific Then select the system and an ECU instance Figure 25 16 38 System
44. its com specs For each connection between two ports transmitting a variable parameter data prototype the initial value s must be defined in either the provide or the require port If an initial value is defined in both ports the initial value of the require port is used 6 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions ea RPort Prototype bulb General Special Data Advanced E signal Nonqueued Receiver Com Spec Alive timeout Max Delta Counter Init Max No New Or Repeate Sync counter init Handle out of range Default External replacement ret Handle out of range status undefined Handle timeout type None Enable Update m Handle newer received C Uses end to end protection Ce E Figure 6 Defining initial values in the com spec of a port 2 2 2 3 Application Data Types and Application Constants With release 4 AUTOSAR distinguishes application data types ADTs and implementation data types IDTs ADTs describe data as physical values from an application view whereas IDTs represent the same data as internal values and specify the implementation details IDTs are needed for code gener ation in TargetLink and also for RTE generation It is not mandatory to use ADTs but if you do they need to be mapped to IDTs For this you need one or more data type mapping sets which can be created in SystemDesk via the context menu of a package The data types can be mapped in its Properti
45. ld receive no errors and no warnings The import of the system extract is now completed 2 3 4 Configure AUTOSAR modules The configuration of the AUTOSAR basic software modules applies for the modules which are listed in chapter 2 3 2 The workflows view again displays the necessary steps Figure 28 To each configura tion step the help view below the instruction list provides useful information 18 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions ES Workflow execution AutoCore Workflow Rte 53 i Sidebar E a 2 Fe 7 eo2 Setup initial project gt eee Create your project gt aa Import software component description or system description a eee Configure AUTOSAR modules lE Configure Det module Configure Os module M Configure VO drivers Configure the BswM module fe Calculate Dem NwM and EcuM service needs E Update service component and BSWM descriptions E Configure Rte module fm Calculate Os and Com service needs E Update service component and BSWM descriptions gt eee Build your application E Finish If your software components do not report errors to the Def module you can skip this step 1 Double click this action step in the Workflows view The Det editor opens up 2 Open the tab Def Accessing Software Components Select the option Enable Rte Usage For each software component that shall be connected to the Def add an entry to the Det Accessing Software Components ta
46. mapping automatically if the mapping does not already exist For each application constant it uses the compu method scaling attached to its data type to compute the in ternal value saves it as an implementation constant and maps both constants in a constant specifica tion mapping set If no compu method exists an identical mapping is assumed Like for data type mappings TargetLink creates one constant specification mapping set for each soft ware component If you want to use the same mapping for several software components you can create the mapping set and reference it from the SWCs in SystemDesk and then let TargetLink auto matically create the implementation constants and the mappings 3 5 Delivering the architecture and the code files When you have finished the implementation and code generation you can hand over the generated code files to the EB tresos AutoCore build environment for the final build Additionally you can hand back the arxml description of the software component and the code files to SystemDesk It makes especially sense to do this if you want to use SystemDesk and VEOS for simulating your ECU or if you have extended the software architecture for example by one of the following e Implementation data types and a data type mapping e A constant specification mapping e Parts of the internal behavior of a SWC You can again use the container manager to return the changes in the software architecture to Sys temDesk
47. ndicatorComposition 4 RootSwComposition 4 W RootSwComposition gt Sf RootSwComposition gt fee FrontLeftActuator FrontRightActuator IndicatorComposition gt fe TurnSwitchSensor gt fe WarnLightsSensor IndicatorComposition v CompositionSwComponent W Le bulb WarnLightsSensor FrontRightActuator b Ecus SensorActuatorSwComponent SensorActuatorSwCoamponent gt Qj SharedElements z Z gt a Swes gt Systems isi i l lt IM i Project Ma Tool System Ma Mm t Ready Batch Mode OFF Figure 4 Project with a complete top level composition 5 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions 2 2 2 1 Service Interfaces In AUTOSAR there are some basic software modules that have an interface to the application com ponents for example Dem and EcuM Such modules are also called service components because they make specific services available to the application components The actual specification of the service components is always project dependent First you have to configure a module of this kind in EB tresos Studio then you can generate the service component description and finally you can con nect the ports of the service components to the ports of the application components All these steps can be performed in EB tresos Studio see section 2 3 6 You must ensure that the ports of the application components a
48. on Format Tools TargetLink Help Deed b 10 0 Normal J m ri IRI TargetLink Main Dialog IRVWA_indicator_status fdicator_sta IRVRA_wis_status Ready 100 ode45 i pia L WE AutosarFrameModel Subsystem Subsystem gt 28 File Edit View Simulation Format Tools TargetLink Help Da D g Hg we gt 10 0 Normal i DWA _Jeft_signal z IRVRA_indicator_status DWA_right_signal Signal Toggle 100 ode45 A IndicatorLogic Ready 100 ode45 Figure 44 A generated frame model The frame generation functionality in TargetLink does not only support model generation from scratch but also the automatic update of an existing model of a SWC For that purpose select the respective SWC object in the Data Dictionary and choose the AUTOSAR Tools Update AUTOSAR Model context menu entry TargetLink will then not only update the model but also generate an update report con taining hyperlinks to navigate to the individual AUTOSAR related blocks and the respective DD ob jects Moreover the AUTOSAR frame model functionality in TargetLink provides a huge number of hooks to adapt the frame generation to individual company specific needs 3 4 2 Generation of Application or Implementation Data Types If you use application data types in your software architecture you can use TargetLink to generate implementation data types IDTs and data type mapping sets These describe internal values and specify implementation details like a base
49. otes issued for EB tresos Studio 38 38
50. patibility with TargetLink The validation indicates many of TargetLink s limitations directly in SystemDesk so that you can adapt your project according ly For using the TargetLink validation select the applicable validation rule set in the tool bar and then validate your project jew Diagram Tools Window Help ih a Gs TargetLink 3 5 Compatibility Check 5 TE Default anager TargetLink 3 4 Compatibility Check t 4 s TargetLink 3 9 Compatibility Check rialProyect EB tresos Compatibility Check UTOSAR_AlSpecification Figure 40 Selecting a TargetLink validation rule set Then you can do the export from SystemDesk TargetLink focusses mostly on single atomic software components Therefore you should export each SWC from SystemDesk separately The process of im and export is simplified by the SWC container management functionality which bundles all neces sary files and takes care of synchronizing them according to a specified workflow For exporting a software component as container from SystemDesk you first need to specify which element is export ed to which arxml file in the Container File Explorer 25 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions EX Container File Explorer 1 x FiQaacsisinies ee EE ELLE LLL LLL b gt Unassigned Elements b gt ah AUTOSAR Platform gt AUTOSAR_AlSpecification A o SharedElements 4 E3 SharedElements 4 ApplicationDataTypes
51. re compatible with the ports of the service components as otherwise RTE generation is not possible This means that the interface de scriptions of the services are required during the creation of the software architecture in SystemDesk EB tresos Studio therefore lets you export all the interface descriptions of the service components in the basic software For further details on the service components and their export in EB tresos Studio refer to section 2 3 6 These interface descriptions can now be imported in SystemDesk and then be used for the ports of the application components 2 2 2 2 Initial Values For generating the RTE it is advisable that you define an initial value for each variable data prototype and parameter data prototype Examples for variable data prototypes are interrunnable variables or data elements in sender receiver interfaces If the data prototype is accessed but it does not have a value yet the initial value is used instead For most kinds of variable data prototypes the initial values can be defined in their Properties Dialog General SW Data Def Props All Special Data Advanced Short name indicator status Desc Blink status Data type adt_is SW impl poll Standard Figure 5 Defining initial values in the variable data prototype s Properties Dialog Exceptions are variable parameter data prototypes defined in interfaces Initial values for these are defined separately for each port in
52. reate ECU configuration project in EB tresos Studio 2 Configure AUTOSAR basic software EB tresos AutoCore Generic a Import system extract b Complete configuration of basic software with support of wizards and assistance dia logs 3 Generate basic software and build target code Create ECU project Configure Basic SW Build ECU targetcode BJ Setup project J import EcuU Extract swc D Verify configuration J Select target platform E Complete Basicsw Generate Basic SW code E Select BSW modules configuration Compile Basic SW modules Ez Configure importers Build executable incl SWCs Figure 16 Workflow in EB tresos Studio The following subchapters contain a detailed description how to carry out the different steps To simpli fy the configuration of the basic software EB tresos Studio provides a special view the so called work flows view which contains a step by step instruction to guide you through the configuration see Figure 17 The workflows view also contains helpful information to each step For more details on the work flows view please refer to the user documentation of EB tresos Studio 12 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions File Edit Search Project Wendow Help BTE a Z C Project Explorer 2 amp n o 0s i O F Workflow execubon AutoC ore Workflow Rt a te aSPACE EB i 4 ECU MINDOWS WIN32X86 OsTask eci E E 4 Setup initial project Bose V505 ASARI Name
53. rvice Variable data prototype pa Data type rameter data prototype Argument data prototype Data type Direction Data constraint Only for AUTOSAR R4 0 not anymore with AUTOSAR R4 1 If physical constraints are specified reference to a unit Advanced page DataConsitrRules DataConstrRule PhysCon strs UnitRef If the constraint is for an enumeration compu method of catego ry texttable the constraints must be given as internal constraints in the form of values Provided Required Port Proto Interface type NonQueued Sender ComSpecs _ Init value Handle out of range Uses end to end protection NonQueued Receiver Alive timeout vomepecs Handle out of range Handle timeout type Enable update Handle never received Uses end to end protection 32 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Queued Sender ComSpecs Uses end to end protection Handle out of range Queued Receiver ComSpecs Queue length Uses end to end protection Handle out of range Mode Switch Sender ComSpecs Queue length Server ComSpecs Queue length Constant Specification Application constant UnitRef Advanced page ValueSpec SwValueCont UnitRef Wake up over bus supported Sleep mode supported At least one CommController Depending on the type of the CommCorntroller further attributes are required SystemDesk s strict schema validation can be used to find out which attributes System
54. stantSpecificationMapping AA ConstantSnerificationMannino W Show and T properties Help Cancel E Figure 55 Mapping application to implementation constants To reference the mapping set from an internal behavior open the internal behavior s Properties dialog and go to the advanced page again The mapping sets are referenced from ConstantValue MappingRefs For adding a new reference click TF SWC Internal Behavior IB_IndicatorLogic General Runnables RTE Events Interrunnable Variables Exclusive Areas Port API Options Per Instance Memory Included Data Type Sets Service Needs Parameters Special Data Advanced Name Value Annotations ArlypedPerlnstanceMemorys Category ConstantMemorys BB ConstantValueMappingRefs BBE Ek J IndicatorLogic_ConstantSpecificationMappingSet t 3 xED DataTypeMappingRefs Ey By EY E Desc RB Ek rar Events ExclusiveAreaNestingOrders ExclusiveAreas EY i M Show 5 and T properties Hep cance Figure 56 Referencing constant specification mappings from an internal behavior 37 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions 6 Restrictions For detailed information on known problems or function limitations in DSPACE SystemDesk refer to the release notes issued for SystemDesk For detailed information on known problems or function limitations in EB tresos Studio refer to the release n
55. stemDesk AUTOSAR System Extract Export Target file D Tutortal_CentralBodyEcu arxml Schema version AUTOSAR 4 1 1 ECUs to export CentralBodyEcu Ecus CentralBodyEcu CentralBodyEcu E FrontLeftindicatorEcu Ecus FrontLeftindicatorEcu FrontLefilndicatorEcu FrontRightIndicatorEcu Ecus FrontRightIndicatorEcu FrentRightIndicatorEcu Export not mapped software components a Figure 15 Selecting the ECUs for a system extract 2 3 Configuration and Generation of Basic Software This section describes those parts of the workflow in detail which have to be performed in EB tresos Studio The so called workflow guides you through this configuration job which includes the following main issues e creating anew ECU configuration project chapter 2 3 2 e importing the system extract created by SystemDesk chapter 2 3 3 e mapping of the application events onto Os tasks of the basic software chapter 2 3 4 6 e generating the basic software and the RTE 2 3 1 Overview The system extract which has been created with SystemDesk is the base for configuring the AU TOSAR Basic Software EB tresos AutoCore It contains information about the software components and their runnables ports interfaces and so on Following the AUTOSAR methodology this system extract is imported into EB tresos Studio The configuration of the EB tresos AutoCore in EB tresos Studio is done in 3 major steps These steps are see also Figure 16 1 C
56. the events with 10 0 ms period in the upper table und click the map button Figure 34 The selected events are now mapped to the task RteTime_Task Mapped RTE and BSW events A5 Os Init T Os Os Init_Task E q Os Os SchMDiagStateTask_200ms ae Os Os Rtelime_Task P fQs5 Os RteEvent_Task fOs Os RteCat2_Task Figure 33 Selection of the task to which events may be mappe d 21 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions Os Os A Rte Editor 2 b Rte Editor 6 warning s detected General Implementation Selection Partitioning Optimizations Event Mapping Data Mapping Exclusive Areas Measurement amp Calibration WWRAM Unmapped RTE and BSW events Display RTE and Bsw events with required mapping only x o Unmapped RTE and BSW events Event Executable ent E Instance E Category x R H Period H Offset TssCyclic20ms RteTimingEvent TssRunnable fEcuExtra CAT2 WH fe 20 0ms fa 0 0 ms WisReceivedEvent DataReceivedEvent WlsRunnable EcuExtra CATIB HWM E TssCycliclOms RteTimingEvent TssPreprocessing EcuExtra E CATIA ME 10 0ms fe 0 0 ms Bl WiRecerwedEwent DataRecerwedEwent Ej WisPreprocessing B fEcuExtra CATIB x ail l l E LegicCycliclOms RteTimingEvent Logic EcuExtra CATIA x e 10 0ms e 0 0 ms E ToggleCycliclOms RteTimingEvent Toggle EcuExtra E CA
57. tibility Check UTOSAR_AlSpecification Figure 11 Activating the EB tresos Compatibility Check validation rule set Port API Options Memor __ Included Data Type Sets Service Needs Parameters Special Data Advanced 9 IB_BulbActuator Runnables According to the General R bl RTEE ble Manabi ee STRICT version of the AUTOSAR schema this unnables wents Interrunnable Variables clusive Areas ee ee bET elements and a maximum number of Short name IB_BulbActuator elements The current number of elements is 0 Rule R103 Autosar Multiplicities failed Path to element Swes BulbActuator BulbActuator IB_BulbActuator Desr Handle termination and restart NoSupport N Supports multiple instantiations rror iy arnings l i BSsagqes 4 EJIE A 0 Warnings D 0 Messages 4 ok Cance E Figure 12 Validation of an Internal Behavior without a runnable 2 2 3 Step 3 optional Modeling the System Whether you need to model a system depends on what you have imported in the first step If you have imported a complete system including a mapping of data elements to system signals you do not need to do anything Otherwise it is recommended to model the system in SystemDesk SystemDesk offers the System Manager for this task The most important parts the system consists of are the root software composition the ECU s and the imported network topology a mapping of soft
58. tresos Studio In this application note the workflow Setup an initial project is used to explain how to get a valid ECU basic software configuration This workflow is available with your EB tresos Studio AutoCore installa tion The basic software used in this workflow contains the following modules see also Figure 18 e Basic Software Mode Manager BswM e Diagnostics event Manager Dem e Development error tracer Det e Ecu State Manager EcuM e Micro controller unit driver Mcu stub module if EB tresos WinCore is used e Operating system Os e Runtime Environment Rte Application Runtime Environment Akeiacdon Rte Layer Base Det Make Platform ECU Abstraction Layer Figure 18 Basic Software modules used in this example 2 3 2 Creating a new ECU configuration project The first step is the creation of anew ECU configuration project Just follow the instructions within the workflows view to initially setup your project section Create new project from template in Figure 19 13 38 SystemDesk EB tresos Studio TargetLink Workflow Descriptions p Uv Gloan Setup initial project a coo Create your project gt Create new project from template Rename project Load project i Adjust target and derivate settings fe Add modules Check available modules Import software component description or system description a Configure
59. ture you can create software components with internal behaviors and their interconnections For details about modeling the software architecture please refer to the SystemDesk Guide lf the imported file already contains a composition for your software architecture you should model your software architecture inside this composition Otherwise you need to create one composition which contains the complete architecture for your ECU with all software components and their inter connections In the following this composition will be called the top level composition When modeling your architecture you should make sure that it is correct and complete The following sections describe important aspects for modeling the software architecture The modeling guideline takes the later generation phase of the RTE and the basic software into ac count Therefore it is necessary to model the software architecture according to the AUTOSAR strict schema version see also section 2 2 2 5 TutorialProject Tutorial sdp SystemDesk File Edit View Diagram Tools Window Help aed Ge EB tresos Compatibility Check d x lt ae y2 w Project Manager q x of RootSwComposition x q Sort da li 7 4 i TutorialProject gt AUTOSAR_AlSpecification gt AUTOSAR Platform gt a Communication TurnSwitchSensor FrontLeftActuator SensorActuatorSwCamponent SensorActustorSwComponent p E 4 Compositions gt I
Download Pdf Manuals
Related Search
Related Contents
2. Übersichtszeichnung und Legenden DCS Dishwasher DD24SUT7 User's Manual Mode d`emploi turf truckster 時代を楽しむために。 - Mitsubishi ASX Клуб english @ safe 10/30 ei- operating instructions to Open Manual File - American Musical Supply Découvrir le programme de cette formation LG Viewty KU990 3" 112g Black Philips 459383186 Copyright © All rights reserved.
Failed to retrieve file