218
TargetLinkProduction Code Generation Software /
2011
TargetLink®
Automatic production code generator
Highlights
n High-quality production code generation directly
from Simulink®/Statefl ow®
n Built-in simulation and testing
n AUTOSAR support
n Certifi ed for IEC 61508 and ISO 26262
n NEW: TargetLink 3.2 (p. 221)
n NEW: TargetLink Product Support Center (p. 221)
Application Area
Model-based design has become the established develop-
ment method across many industries. And production code
generation is the logical step for turning models into effi cient,
production ready code. TargetLink is a software system that
generates production code (C code) straight from the MAT-
LAB®/Simulink/Statefl ow graphical development environment.
Code generation options range from plain ANSI C code to
optimized fi xed- or fl oating-point code for certain proces-
sors. Versatile code confi guration options ensure that the
production code copes with processor constraints.
Key Benefi ts
Converting graphical models directly into production code
ensures perfect consistency between model and code at all
times. Since the same model will always result in the same
proven code, TargetLink’s code generation is deterministic
and thus guarantees the highest software quality. Every
step can be tested against the specifi cation via the built-in
simulation features. This allows early verifi cation and trans-
lates directly into cost reduction, for example, by avoiding
expensive ECU software defects.
Effi cient Coding
Effi ciency is the key to production-quality code. Effi cient
code means that a minimum of execution time and resources
is required to run the code on a cost-effi cient embedded
processor. Code generated by TargetLink is proven to be
as effi cient as handwritten code. Other factors also make
TargetLink such a useful tool: code readability, traceable
model/code dependency, and last but not least, the ability
to generate optimized code for specifi c target microcon-
trollers.
Seamless Tool Chain
TargetLink seamlessly connects function development
and code generation for the control unit or prototyp-
ing hardware. Moreover, it closes the gap between the
design and verifi cation phases by automatic means. This
provides transparent and defi ned development processes
for conventional and AUTOSAR ECUs. Calibration fi les,
AUTOSAR software component descriptions, and compre-
hensive documentation are generated in addition to the
production code.
Catalog 2011 • dSPACE GmbH • Rathenaustraße 26 • 33102 Paderborn • Germany • info@dspace.de • www.dspace.com
TargetLink
219
Production Code Generation Software /
2011
In
tr
od
uc
tio
n
Ap
pl
ic
at
io
n
Fi
el
ds
Sy
st
em
A
rc
hi
te
ct
ur
e
Ra
pi
d
Co
nt
ro
l P
ro
to
ty
pi
ng
EC
U
A
ut
oc
od
in
g
HI
L
Te
st
in
g
En
gi
ne
er
in
g
So
ftw
ar
e
Ha
rd
w
ar
e
Main Features and Benefits
Feature Description Benefit
Code efficiency
n Efficient fixed-point or floating-point production code
directly from MATLAB/Simulink/Stateflow
n Your specifications – models and diagrams –
are directly translated into efficient C code
Code reliability n Consistent, deterministic translations of models into
stress-tested C code
n Errors such as typing mistakes, oversights,
misunderstandings are avoided
Target optimizations n Code optimization for individual processors/compilers n Highly efficient, target-optimized code
Human readability n Concise, yet readable code n Code reviews are easy to perform
Automatic scaling n Intelligent scaling based on worst-case propagation of
signal ranges and simulation-based scaling
n Shortens the time-consuming and error-prone scaling
process
Test mechanisms n Various test levels to test the production code against
the specification (MIL, SIL, PIL)
n Malfunctions are found at earliest stage
Code coverage analyses n Dynamic analyses of program execution to find areas
that have not been run through
n Untested code and untested model parts are detected
Incremental code generation n Modular code generation, i.e., for specific subsystems n Faster code generation, preserving approved code
Model referencing support n Developing models on a modular/component basis n Model referencing greatly facilitates distributed
development by large teams and makes handling large
models more efficient.
Multirate code n Full support of multirate systems with intertask
communication
n You can already define tasks at block level
dSPACE Data Dictionary n Central container to handle variables, data structures,
scaling formulas, tasks, functions
n You can manage complex data to plan and structure
your projects
Code generation straight from the
Data Dictionary
n Generation of code files and A2L files for Data
Dictionary variables independently of their use in
TargetLink models
n Simplified software integration and integration testing
for code from multiple TargetLink models/subsystems
and legacy variables
TargetLink Blockset n A free TargetLink blockset that can be used without
having the Base Suite installed
n Large workgroups can work with TargetLink models
without the need for additional TargetLink licenses
Compliance with standards n Compliance with relevant standards such as ASAM-
MCD 2MC (ASAP2), AUTOSAR, MISRA, and OSEK
n Quality and interoperability guaranteed
AUTOSAR support n Support for modeling and code generation for
AUTOSAR software components (SWC), and generation
of SWC descriptions
n TargetLink bridges the gap between model-based
design and AUTOSAR-compliant software development
Support of OSEK/VDX-compliant
operating systems
n Support for the standardized OSEK/VDX interface and
features
n You can design multirate software that is compliant
with OSEK operating systems
Calibration data generation n Calibration data exported as ASAM-MCD 2MC (ASAP2)
file for calibration tools
n Automated and complete process with perfect
consistency between model and calibration data
Documentation n Automatic model and code documentation n Your projects are transparent and trackable
NEW: AUTOSAR software
component (SWC) container
exchange
n Exchanging AUTOSAR SWC containers between
TargetLink and SystemDesk® (p. 112)
n Safe and convenient round trips for AUTOSAR software
development
n Access to SystemDesk simulation for proper software
integration testing
Catalog 2011 • dSPACE GmbH • Rathenaustraße 26 • 33102 Paderborn • Germany • info@dspace.de • www.dspace.com
220
TargetLinkProduction Code Generation Software /
2011
Order Information
Classification Type Order Number
TargetLink Base Suite Base Suite n TBS
Target Optimization Modules
for certain processors/compilers
(further details see p. 222, p. 223)
Freescale HCS12/Cosmic n TOM_HCS12/Cosmic
Freescale HCS12/Metrowerks n TOM_HCS12/Metrowerks
Freescale MPC5xx/Wind River n TOM_MPC5xx/Diab
Freescale MPC5xx/Green Hills n TOM_MPC5xx/GREEN
Freescale MPC55xx/Wind River n TOM_MPC55xx/Diab
Infineon C16x Tasking n TOM_C16x/Tasking
Infineon TriCore Tasking n TOM_TriCore/Tasking
Renesas M32R/GAIO n TOM_M32R/GAIO
Renesas SH-2/Renesas n TOM_SH2/SHC
Other modules Target Simulation Module (for all supported processors) n TSM
TargetLink Module for Operating Systems – OSEK n TMOS_OSEK
TargetLink AUTOSAR Module n TAS
dSPACE Data Dictionary Manager (included with
TargetLink Base Suite)
n DSDD_MANAGER
Relevant Software
Software
Included Stand-alone blockset for free model exchange n TargetLink blockset
Data dictionary n dSPACE Data Dictionary
Required Integrated development environment n MATLAB®/Simulink®/Stateflow® from The MathWorks
n Compiler for host simulation included in MATLAB
Operating system n www.dspace.com/goto?os_compatibility
Optional Compilers for processor-in-the-loop tests n Target-specific compiler for processor-in-the-loop tests
with Target Simulation Module
Catalog 2011 • dSPACE GmbH • Rathenaustraße 26 • 33102 Paderborn • Germany • info@dspace.de • www.dspace.com
TargetLink
221
Production Code Generation Software /
2011
In
tr
od
uc
tio
n
Ap
pl
ic
at
io
n
Fi
el
ds
Sy
st
em
A
rc
hi
te
ct
ur
e
Ra
pi
d
Co
nt
ro
l P
ro
to
ty
pi
ng
EC
U
A
ut
oc
od
in
g
HI
L
Te
st
in
g
En
gi
ne
er
in
g
So
ftw
ar
e
Ha
rd
w
ar
e
NEW: TargetLink 3.2
Improvement Detailed Description
Improved AUTOSAR support n Implicit sender/receiver communication for arrays and structures
n Support for AUTOSAR compiler abstraction
n Improvements in AUTOSAR frame model generation
n Support for multiple AUTOSAR revisions of AUTOSAR 3.1 and AUTOSAR 3.0
n Support of wait points
n Larger AUTOSAR subset supported during ARXML import/export
Improved TargetLink/SystemDesk interoperability n SWC container exchange for closer integration of SystemDesk and TargetLink than only
ARXML exchange
n Safe AUTOSAR round trips with minimum user interaction
n Direct connection to SystemDesk simulation for software integration testing
Online parameter update for SIL/PIL simulation n Rerunning tests with different calibration parameter values without regenerating and
compiling the code
n M API function for reading and writing from/to memory during SIL/PIL simulation
Direct link to debugger of Microsoft® Visual Studio® n Conveniently stepping through TargetLink-generated code during software-in-the-loop
simulations using a conventional debugger
Extended target simulation support n TSM for Freescale MPC560x and Wind River and Greenhills Compiler
32-bit floating-point library functions n Code generation option to generate calls to 32-bit floating-point library functions
Improved traceability of Data Dictionary objects n Finding locations with references to a given Data Dictionary object in the Data Dictionary as
well as in models
Improved search functionality in the Data Dictionary n Searching for objects, properties, and property values by wildcards and regular expressions
n Search result pane with hyperlinks for easy navigation
Improved Data Dictionary user script plug-in mechanism n M-script plugin mechanism for menus, context menus, and properties
n Additional panes for outputs generated from user scripts
TargetLink Preferences dialog n TargetLink Preferences dialog for project- and installation-specific settings
n Importing and exporting preferences for easy exchange between different users/computers/
installations
Working with Simulink block dialogs for controller design n User preference for selecting Simulink or TargetLink block dialogs for control design
Flexible synchronization between Simulink and TargetLink
types and scaling data
n User preferences for general synchronization settings
n Explicit synchronization for individual blocks via context menu
Dedicated dialogs for Stateflow objects n Code generation settings for Stateflow data via dedicated TargetLink dialogs
NEW: TargetLink Product Support Center
The TargetLink Product Support Center is the primary online
resource for TargetLink developers and provides informa-
tion about TargetLink releases, compatibility information,
application notes, additional utilities, TargetLink Known
Problem Reports, etc. The entry gate is
www.dspace.com/goto?TargetLinkProductSupportCenter
Catalog 2011 • dSPACE GmbH • Rathenaustraße 26 • 33102 Paderborn • Germany • info@dspace.de • www.dspace.com
222
TargetLinkProduction Code Generation Software /
2011
How Do I Get the TargetLink I Need?
TargetLink Modules
TargetLink is available as a base suite plus addi tional modules,
so that you can adapt it to requirements.
1) Usable in stand-alone mode without license.
2) Data Dictionary Manager also available as a standalone license e.g to be used with the stand-alone blockset.
Target Optimization
Modules
Renesas
SH-2
Renesas
M32R
Infineon
TriCore
Infineon
C16x
Freescale
MPC55xx
Freescale
MPC5xx
Freescale
HCS12
TargetLink
Base Suite
TargetLink Base Suite License
ANSI C
coder
TargetLink
Blockset
1)
Data
Dictionary
2)
Document
Generator
Autoscaling
Automotive-
Specific
Modules
OSEK/VDX module AUTOSAR module
TargetLink Module Overview
Target Simulation
Module Freescale
HCS12
Freescale
MPC5xx
Freescale
MPC55xx
Freescale
S12X
Infineon
C16x
Infineon
XC2000
Renesas
V850
Infineon
TriCore
Freescale
MPC560xB
Renesas
M32R
Renesas
SH-2
Freescale
MC56F83xx
ASAM-MCD 2MC
file generation
Target Simulation Module (optional)
n Test your generated code on the target microcon-
troller (for supported processors and evaluation boards
see p. 223)
Target Optimization Modules (optional)
n For target-specific, optimized code generation
n Uses compiler-specific language extensions and assembly
macros (for supported processors see p. 223)
TargetLink Module for Operating Systems (optional)
n Support of OSEK/VDX-compliant operating systems
(p. 249)
TargetLink AUTOSAR Module (optional)
n Support for the development of AUTOSAR Software
Components (SWC) (p. 244)
TargetLink Base Suite
n Highly efficient ANSI C code generation from Simulink/
Stateflow
n For all microcontrollers with ANSI C compiler
n Fixed-point code, floating-point code or a mixture of both
n dSPACE Data Dictionary (p. 251)
n TargetLink blockset (p. 227)
n Autoscaling (p. 235)
n Code coverage analysis (p. 237)
n Modular Development and Code Generation (p. 238)
Catalog 2011 • dSPACE GmbH • Rathenaustraße 26 • 33102 Paderborn • Germany • info@dspace.de • www.dspace.com
TargetLink
223
Production Code Generation Software /
2011
In
tr
od
uc
tio
n
Ap
pl
ic
at
io
n
Fi
el
ds
Sy
st
em
A
rc
hi
te
ct
ur
e
Ra
pi
d
Co
nt
ro
l P
ro
to
ty
pi
ng
EC
U
A
ut
oc
od
in
g
HI
L
Te
st
in
g
En
gi
ne
er
in
g
So
ftw
ar
e
Ha
rd
w
ar
e
Supported Processors and Evaluation Boards
TargetLink supports the most common processors for
embedded applications, especially in the automotive field.
If a processor is missing, its support is perhaps scheduled
Processor Family
ANSI C Code
Support
Compiler Supported by
Target Optimization Module
Compiler Supported by Target
Simulation Module
Evaluation Boards
Supported by TargetLink
Any microprocessor with
an ANSI C compiler
– – –
Freescale 56F83xx – Metrowerks CodeWarrior compilers Freescale MC56F8367EVM
Freescale HCS12 Cosmic compilers and Metrowerks
CodeWarrior compilers
Cosmic compilers and Metrowerks
CodeWarrior compilers
MCT HCS12 T-Board and
Freescale M68EVB912DP256
Freescale S12X – Cosmic and Metrowerks CodeWarrior
compilers
MCT S12X T-Board
Freescale MPC5xx Green Hills and Wind River
compilers
Green Hills and Wind River compilers Axiom CME-0555 and Axiom
CMD-05651)
Freescale MPC55xx Wind River compilers Green Hills, Metrowerks CodeWarrior,
GNU and Wind River compilers
AXIOM MPC5554DEMO and
Freescale MPC5561EVB
MicroTec and Wind River compilers dSPACE DS1603
Freescale MPC560xB – Green Hills and Wind River compilers Freescale MPC5604BEVB
Infineon C16x Tasking compilers Tasking compilers i+ME eCAN C167 CR
Infineon TriCore Tasking compilers Tasking and GNU2) compilers Infineon TriBoard TC1766,
TC1767, and TriBoard TC1796
Infineon XC2000 – Tasking compilers SK-EB XC2287
Renesas V850 – Green Hills and Renesas compilers Renesas V850FX3 CAN-IT
Renesas M32R GAIO compilers GAIO and Renesas compilers Renesas M3A2154
Renesas SH-2 Renesas compilers3) Renesas compilers Renesas CDK7058, and
SDK72513
1) Only Wind River compiler supported. 2) Only for TC1796. 3) Only for SH-2e cores (CDK7058).
for the next version or can be provided as an engineering
service.
For more information on software compatibility with
target compilers and evaluation boards, please refer to:
www.dspace.com/goto?compatibility
n Model analysis and advice
n Support for developing and integrating AUTOSAR-com-
pliant software components
n Support for integrating the generated code in the ECU’s
software environment
n Tool chain development and maintenance
n Process consulting
Some of the evaluation boards need to be modi fied (loader,
external RAM, etc.). Please order them through dSPACE to
ensure a correct board setup.
TargetLink Engineering Services
Our engineering portfolio included special TargetLink
custo mer services, for example:
n Hands-on support during introduction of TargetLink
n Support during evaluations and pilot projects
n Customer-specific TargetLink training
n Integrating TargetLink into your development
processes
Catalog 2011 • dSPACE GmbH • Rathenaustraße 26 • 33102 Paderborn • Germany • info@dspace.de • www.dspace.com
224
TargetLinkProduction Code Generation Software /
2011
How Do I Work with TargetLink?
Typical Steps in Generating Production Code
This diagram illustrates the workfl ow
between model design and code
implementation. It also shows that code
verifi cation based on simulation is an
iterative process. The workfl ow is shown
in greater detail on the following pages.
Catalog 2011 • dSPACE GmbH • Rathenaustraße 26 • 33102 Paderborn • Germany • info@dspace.de • www.dspace.com
TargetLink
225
Production Code Generation Software /
2011
In
tr
od
uc
tio
n
Ap
pl
ic
at
io
n
Fi
el
ds
Sy
st
em
A
rc
hi
te
ct
ur
e
Ra
pi
d
Co
nt
ro
l P
ro
to
ty
pi
ng
EC
U
A
ut
oc
od
in
g
HI
L
Te
st
in
g
En
gi
ne
er
in
g
So
ftw
ar
e
Ha
rd
w
ar
e
Workflow
Control Design and Function Prototyping
Control design starts with creating a control model in the
integrated design environment MATLAB/Simulink/Stateflow.
Before production code generation with TargetLink, you
could use dSPACE prototyping systems to carry out conve-
nient function prototyping and validation of your new ECU
control algorithms.
Using the TargetLink Block Library
To implement the control algorithms in C code, you need the
TargetLink block library. TargetLink blocks contain additional
data for code generation, such as the scaling information for
fixed-point variables, variable classes, variable names etc. A
utility automatically replaces your Simulink controller model
with blocks from the TargetLink block library. The process
is reversible without any data losses. If you already use the
free TargetLink Blockset during control design, conversion
is not necessary.
Model-in-the-Loop Simulation on Host PC
Model-in-the-loop simulation (floating-point) serves as a
reference for the following steps and provides the minima
and maxima of variables as a basis for subsequent fixed-
point scaling if desired.
Catalog 2011 • dSPACE GmbH • Rathenaustraße 26 • 33102 Paderborn • Germany • info@dspace.de • www.dspace.com
226
TargetLinkProduction Code Generation Software /
2011
Code Generation
The TargetLink Base Suite generates highly efficient ANSI
C code for a controller model at the click of a button. This
code efficiency can be increased even further by generating
code for a specific compiler/processor combination using a
Target Optimization Module (p. 223, p. 241).
Verification on Host PC via
Software-in-the-Loop Simulation
By means of software-in-the-loop simulation on a host PC,
you can compare the behavior of the generated code with
the reference data achieved in model-in-the-loop simulati-
on. TargetLink offers an intelligent graphical user interface,
where you can select signal histories of blocks for detailed
analysis.
Verification on Target Processor via
Processor-in-the-Loop Simulation
Using the optional Target Simulation Module (p. 222, p. 223),
you can execute processor-in-the-loop simulation to verify
the generated code on an evaluation board equipped with
the same target processor as your final ECU. Successful verifi-
cation 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
provides information
本文档为【TargetLink2011】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。