For a better experience on dSPACE.com, enable JavaScript in your browser. Thank you!

Production Code for Battery Management Systems

Automatic code generation for electric drive applications with TargetLink

Application Areas

  • High-quality production code generation for battery management systems
  • Developing safety-related software according to ISO 26262
  • Early simulation and verification in MIL, SIL, and PIL mode

Key Points

  • Quick transmission of controller models to production-code
  • Simplified testing process
  • Certified for ISO 26262, IEC 61508, and derived standards
  • TargetLink reference workflow document for developing safety-related software
  • High-performance, native AUTOSAR support

TargetLink offers a dedicated TargetLink Block Library for designing discrete-time controllers. TargetLink blocks significantly enhance the functionality of the supported Simulink blocks, e.g., with additional capabilities for fixed-point simulation, data logging, and overflow detection. The extended block dialogs allow you to enter all the implementation-specific information necessary for code generation. Moreover, a special routine automatically prepares Simulink models for code generation with TargetLink.
To manage all the relevant data in one central location, TargetLink provides the TargetLink Data Dictionary. This file-based data container holds all the information for the model design, code generation, and implementation on an ECU. Data Dictionary objects can be referenced from TargetLink models, e.g., via the TargetLink block dialogs. For modular development, TargetLink lets you easily handle large models and software integration with dedicated mechanisms, such as incremental code generation and model referencing. Incremental code generation is available for Simulink subsystems that contain a TargetLink function block, for example. Each member of a development team can individually work on a subsystem and generate code for this subsystem only. TargetLink performs the necessary consistency checks when building the overall application.

One of the advantages of model-based development is that you can use simulation for early verification. TargetLink not only generates code for production ECUs, it also greatly simplifies the testing process. Tests are performed in the same simulation environment that was used to specify the underlying simulation model. TargetLink supports the following actions:

  • Validating battery algorithms by model-in-the-loop (MIL) simulation
  • Validating software by comparing model-in-the-loop and software-in-the-loop (SIL) simulations
  • Validating processor utilization and speed by processor-in-the-loop (PIL) simulation 

TargetLink is certified by TÜV SÜD (German international certification authority) for use in the development of safety-related systems. TÜV confirmed that TargetLink is suitable for software development according to ISO 26262, IEC 61508, and derived standards (such as EN 50128, which governs safety-related software on the railways). The certification was granted for several areas:

  • Software development process and software modification process of TargetLink
  • Problem handling procedures
  • Fitness for purpose in safety-related development according to IEC 61508 and ISO 26262

More Information Success Stories