实例介绍
Targetlink 使用手册 Autosar support
Production Code Generation Software/ TargetLink Main features and benefits Feature Description Benefit Code efficiency m Efficient fixed-point or floating-point production code Your specifications- models and diagrams directly from MATLAB/Simulink/Stateflow are directly translated into efficient C code Code reliability Consistent, deterministic translations of models into Errors such as typing mistakes, oversights, stress-tested C code misunderstandings are avoided Human readability a Concise, yet readable code a Code reviews are easy to perform Automatic scaling Intelligent scaling based on worst-case propagation of Shortens the time-consuming and error-prone scaling signal ranges and simulation-based scaling process est mechanisms a Various test levels to test the procuction code against Ma functions are found at earliest stage the specitication (MIL, SIL, PIL) Code coverage analyses Dynamic analyses of program execution to find areas Untested code and untested model parts are detected that have not been run through Incremental code generation a Modular coce generation, i. e, for specific subsystems Faster code generation, preserving approved code Model referencing support a Developing models on a modular/component bas Dstributed development by large teams is much easier, and large models can be handled more efficiently Multirate code a Full support of multirate systems with intertask a You can already define tasks at block level communication TargetLink Data Dictionary Central container to handle variables, data structures, You can manage complex data to plan and structure scaling formulas, asks, functions Code generation straight from the Generation of code files and A2L files for Data a Simplified software integration and integration testing Data Dictionary Dictionary variables independently of their use in for code from multiple Targe: Link models/subsystems TargetLink models and legacy variables TargetLink Blockset a The free Targetlink Blockset Stand-Alone can be used Large workgroups can work with TarcetLink models without having the Base Suite installed without the need for additional TargetLink licenses Compliance with standards Compliance with relevant standards such as ASAM- Quality and interoperability guaranteed MCD 2MC(ASAP2), AUTOSAR, MISRA, and OSEK AUTOSAR support a Support for modeling and code generation for a TargetLink bridges the gap between model-based AUTOSAR software components(SWC), and generation design and AUTOSAR-compliant software develcpment of swc descriptions Support of OSEK/VDX-compliant Support for the standardized OSEK/DX interface and You can design multirate software that is compliant operating systems features with OSEK operating systems Calibration data generation a Calibration data exported as ASAM-MCD 2MC(ASAP2) A tomated and complete process with pertect file for calibration tools consistency between model ard calibration data Documentation Automatic model and code documentation a Your projects are transparen: and trackable AUTOSAR So tware component EXchanging AUTOSAR SWC containers between Safe and convenient round trips for AUTOSAR software (SWC) container exchang TargetLink and System Desk development a Access to System Desk simulation or proper software Integration testing Modular development u Innovative interface concept for ports, measurement Easily increase software reuse across different pro ects signals and calibration parameters 2013 Production Code Generation Software/TargetLink Order Information Classification Typ Order Number Targe Linκ Base suite Base suite a TBS Targe: Optimization Modules Freescale hcs 12/Cosmic TOM HCS12/Cosmic for certain processorsicompilers Freescale HCs 12/Metrowerks TOM HCS12/Metrcwerks (further details see p 6, p. 7) Freescale mpc5xx/wind river TOM MPCSXX/Diab Freescale mPc5xx/Green Hills B TOM MPC5XX/GREEN Freescale mpcs 5xx/wind rix TOM MPC55XX/ Diab Infineon C16x Tasking TOM_C16x/Tasking Infineon Tri Core Tasking TOM TriCore/Tasking Renesas M32R/GAIo TOM M32R/GAIO Renesas sh-2/Renesas TOM SHZ/SHO Other modules Target Simulation Module(tor all supported processors) TSM TargetLink Module for Operating Systems-OSEK U TMOS OSEK Targetlink AUTOSAR Module TA TargetLink Data Dictionary Manager(included with DSDD MANAGER TargetLink Base Suite) Relevant Software Software Incluced Stand-alone blockset for free model exchange a TargetLirk Blockset Stand-Alone Data dictionary a Targetlink Data Dictionary Integrated development environment MathWorks MATLABo/Simulink/Stateflow@ a Compiler for host simulation induded in MATLAB Operating system atib Optional Compilers for processor-in-the-loop tests a Target-specific compiler for processor-in-the-loop tests th Targe: Simulat on module 2013 Production Code Generation Software/ TargetLink NEW: TargetLink 3.4 Enhanced area Detailed Description Component-based, modular development New interface concept for d fferent code generation units Greatly simplified software reuse across different projects a Efficient interfaces at the borders of incrementally cenerated systems AUTOSAR support Support for AUTOSAR 4.0.3 and 3. 2. 2 Incremental code generation for AUTOSAR software components a Support for the AUTOSAR Compatibility Mode Update capability for AUTOSAR frame model generation a Simplified modeling of operation calls Data Management a Improved di f&merge capability for the Data Dictionary using synchronized tree views a Connect on to dSPaCe data management software SYNECT for parameters and signals u Proper handling of par tial Data Dictionary files a Simplified creation/editing/exchange of Data Dictionary include files a Display of non-editable properties in the Data Dictionary Manager Modeling a Custom Code templates for any Simu ink blocks a Size-independent Custom Code template files a Use of bitshifts of variable sizes in stateflow a Signal specifications for Constant blocks w thout variable creat on Code Efficiency a Structure assignments Elimination of auxiliary structure variables a Improved scope reduction for structures m More optimizations for AUTOSAR operation calls a Control over the creation of auxiliary variables for access functions Miscellaneous a Optional deactivation of TargerLink's compute-through-overflow technique in the context of safety-critical projects a Generation of virtual ECUs from largetLink for a direct connect on to VEOS, dSPACE's offline simulation platform TargetLink Product Support Center The TargetLink Product Support Center is the primary online resource for TargetLink users, providing information about releases, compatibility, application notes, additional utili- ties, TargetLink Known Problem Reports, etc. The address is www.dspace.com/tlpsc 2013 Production Code Generation Software/TargetLink How Do I Get the targetlink I Need? TargetLink Modules TargetLink is available as a base suite plus additional modules so that you can adapt it to your needs TargetLink Module Overview ANSI C ASAM-MCD 2M argetLink rent coder Autoscaling erato file generation Base suite m TargetLink Base Suite License Freescale Freescale Freese Intire Renesas Target Simulation MC56F83xx MPC55XX MPCs V850 SH-∠ Module Freescale escale Freescale Infineon Infineon R∈ Enema HCS12 MPC S12X TriCore XC200 M32R Target Optimization Freescale Fre Freescale Infineon t neon Renesas Renesas Modules HCS12 MPC5XX MPC55XK C16 Tricore M32R Automotive OSEK/VDX module AUTOSAR module Modules 1)Usable in stand-alone mode without license 2) The Data Dictionary Manager is also available as a stand-alone license, e.g., for use with the stand-alone blockset. 3seleCtionofmajormicrocontrollerfamilliessupportedForacompletelistpleaserefertowww.dspacecom/gototoil TargetLink Base Suite Highly efficient ANSI C code generation from Simulink/ Target Simulation Module(optional) Stateflow a Test your generated code on the target microcon a For all microcontrollers with ANSI C compiler troller(for supported processors and evaluation boards floating-point code or a mixture of both ep.7) TargetLink Data Dictionary (. 35) TargetLink blockset(p. 11) TargetLink AUTOSAR Module(optional) ■ Autoscaling(p.10 Support for the development of AUTOSAR software a Code coverage analysis(p. 21) components(SWC)(p. 28) Modular development and code generation(p. 22) TargetLink Module for Operating Systems(optional) Target Optimization Modules(optional) Support of OSEK/DX-compliant operating systems For target-specific, optimized code generation (p.33) a Uses compiler-specific language extensions and assembly macros(for supported processors see p. 7) 6 2013 Production Code Generation Software/ TargetLink Supported Processors and Evaluation Boards For processor-in-the-loop simulation, TargetLink supports the most common processors for embedded applications especially in the automotive field Compiler Supported by Target Evaluation boards Processor Famil Simulation module Supported by TargetLink Freescale 56F83xx Metrowerks Code Warr or compilers escale mc56F8367EVM Freescale Hcs12 Cosmic compilers and Metrowerks MCT HCS 12 T-Board and CodeWarrior compilers Freescale m68EvB912DP512 Freescale s12X Cosmic and metrowerks codeWarrior MCT S12X T-Board lers Freescale MPc5xx Green Hills and Wind River compilers Axiom CME-0555 and Axicm CMD-0565 Freescale MPC55x Green hills. Metrowerks CodeWarrior. AXIOM MPC5554DEMO and GNU and Wind River compilers Freescale mPc5561eve Freescale MPC56CxB Green Hills and Wind River compilers Freescale MPC5604BEVB Infineon C1 6x Tasking compilers +Me eCAN c167 CR Infineon tricore asking and gNu compilers Infineon TriBoard Tc176 TC1767, and TriBoard TC1796 Infineon xc2000 Tasking compilers SK-EE XC2287 Renesas v850 Green Hills and Renesas compilers Renesas 850FX3 CAN-I7 Renesas ab o5o Fx470F4012 Renesas m32R GAlO and Renesas compilers Renesas m3a2 154 Renesas sh-2 renesas compilers Renesas cdk7058 and SDK72513 1) Only Wind River compiler supported Only for TC1796 Some of the evaluation boards need to be modified (loader, For more information on software compatibility with external RAM, etc. ) Please order them through dspaCe to target compilers and evaluation boards, please refer to ensure a correct board setup www.dspace.com/goto?tlpil TargetLink Engineering Services Our engineering portfolio includes special TargetLink Model analysis and advice customer services, for example a Support for developing and integrating AUTOSAR Hands-on support during introduction of targetlink compliant software components a Support during evaluations and pilot projects Support for integrating the generated code in the ECU's Customer-specific TargetLink training software environment a Integrating TargetLink into your development Tool chain development and maintenance processes Process consulting 2013 Production Code Generation Software/TargetLink How Do I Work with TargetLink Typical Steps in Generating Production Code This diagram illustrates the workflow fror Modeling Approach model design to code implementation Prepare Simulink It also shows that code verification based Create Targe. Link Mcdel Model for Multi-Rate simulation is an iterative proces from Scratch Target ink Modeling The workflow is described in greater detail on the following page Model simulation and Code Specification Model Exchange via TargetLink Blockset a .Behavior Validity Checks r Cocc Gcnc-ation Settings Model exchange Scaling in Workgroups g Production codc Host simulati tYpical Tas< Host-PC o Scaling/Discretization Analy Saturation and Overflow Dctection> Softwvare-in-the-Loops TargetLink Data Dictionary Definitions/ Declarations Production code ■ Data structures 6 Target Simulatio Evaluation board e ypical Tasc Code Informat on Memory Measurernent O- Target Code Verif cation Processor-in-the-Loop Calibrati Autcmatic Model Generating and Code ASAM-MCD 2MC aUToSAR Software tcgrating gcncrated Code on ECu Generated Code IL File Gereration for OSEK RTOS Written Code Code ng Sy ECU valid only for fixed poit software 2013 Production Code Generation Software/ TargetLink Workflow Control Design and Function Prototyping Using the TargetLink Block Library Control design starts with creating a control model in the To implement the control algorithms in C code, you need the integrated design environment MATLAB/Simulink/Stateflow. TargetLink block library. TargetLink blocks contain additional Before production code generation with TargetLink, you data for code generation, such as the scaling information can use dSPACe prototyping systems to carry out conve- for fixed-point variables, variable classes, variable names, nient function prototyping and validation of your new ECu etc. a utility automatically replaces your Simulink controller control algorithms model with blocks from the TargetLink block library. The process is reversible without any data losses. If you use the free targetLink blockset Stand-Alone during control design 国台↓中中 |a0Nmn屏的出鼻国国 conversion Is not necessary Fault-Tolerant Fuel Control System 图c商息图 dSPACE ②日41|+D12+mm习出园国学 Fault-Tolerant Fuel Control System La0(+o Model-in-the-Loop Simulation on Host PC 非仪 wd0圆 Model-in-the-loop simulation(floating-point) serves as a vel_Jae reference for subsequent steps and provides the minima and maxima of variables as a basis for subsequent fixed-point scaling if required 2013 Production Code Generation Software/TargetLink Automatic or Manual Scaling If you want to generate fixed-point code, the scaling has to 回@雪9p be specified. You can use manual scaling, simulation-based ion smulationRTOS autoscaling or worst-case autoscaling. You can choose from Code generation unts a broad range of scaling options(p. 19)for each TargetLink a piatt block individually G TLredeAnedcodeGeneratlnUlt Code generation target settings Code generation The TargetLink Base Suite generates highly efficient ANSI C code for a controller model at the click of a button code Buil PL ivar sIL Ete PL dSPACE Verification on Host PC via Verification on Target Processor via Software-in-the-Loop Simulation Processor-in-the-Loop Simulation By means of software-in-the-loop simulation on a host PC, Using the optional Target Simulation Module(p. 6-7), you can compare the behavior of the generated code with you can execute processor-in-the-loop simulation to verify the reference data obtained in model-in-the-loop simulation. the generated code on an evaluation board equipped with TargetLink offers an graphical user interface, where you can the same target processor as your final ECU. Successful verifi select the signal histories of blocks for detailed analysis ation of processor-in-the-loop simulation with model-in -the- loop simulation and software-in-the-loop simulation ensures the software quality of the generated code. TargetLink also fc Ect vis provides information on the code size, the required rAM/ 0#Q4图如Mw口CP圆或自? ROM, and the stack consumption as it evolves over time Nrel Idle The execution time can be displayed as well A44 Sn Mou: MocH-reo Lss v s2)p.rn10132l c引 10 2013 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论