RTA Knowledge Base

Used tool-chain

ISOLAR-ABv 5.0.1
RTA-RTEv 6.6.0
RTA-BSWv 3.2.0
RTA-OSv 5.6.2
RTA-SKRTA-SK for TC264

Introduction

Scope

This Application Note describes how to update an existing AUTOSAR project with an updated DBC file using the example of a new CAN frame being added to the system.

Assumptions

It is assumed you have an ISOLAR-AB project with COM communication over a CAN network, such as an RTA Starter Kit project.

The following ETAS tools were used for this Application Note.

  • ISOLAR-AB 5.0.1
  • RTA-BSW 3.2.0
  • RTA-RTE 6.6.0
  • RTA-OS 5.6.2
  • RTA-SK for TC264

Combinations of other tool versions may or may not work with this Application Note.

Importing the new CAN frame from an updated DBC file

Add an additional frame to an existing or a new .dbc file, for example:

Run the DBC importer tool, ensuring the 'Merge By Auto Update' option is enabled.

Updating the Configuration

Sender Receiver Interface

Create a new Sender Receiver Interface. It is recommended you place the new interface in an existing package.

Create a VariableDataPrototype DataElement within the new Sender Receiver Interface.

For simplicity, this Application Note references an ImplementationDataType. If required, create a new ApplicationDataType for the new data, and map it to the relevant ImplementationDataType as with any other ApplicationDataType.

Software Component Configuration

Create a PPort and a RPort on the sending and receiving SWCs for each end of the Inter-ECU communication, referencing the new Sender Receiver Interface.

Add the relevant DataAccess (E.g. DataSendPoint) to a runnable within the accessing SWC on the target ECU. Add to the DataAccess an Accessed Variable Reference, with a Variable in Atomic SWC Type Instance Ref targeting the created VariableDataPrototype. Use the 'Configure InstanceRef' tool as shown:

Run the Auto Assembly Connection Wizard from the top-level composition.

Hide existing P-Ports and R-Ports.

Select the suggested connection for the two new unconnected Ports.

System Configuration

Finally, open the System Data Mapping Editor for the top-level System and update the relevant SenderReceiverToSignalMapping.

Identify the new SenderReceiverToSignalMapping without a mapped SystemSignal, and update it with the relevant SystemSignal created by the DBC importer.

Updating the ECUExtract

Update the ECUExtract, using the Create ECUExtract tool for the target ECU. Ensure the 'Update existing ECUExtract' option is selected.

Updating Generated Code

Run the following tools from within ISOLAR-AB:

  1. RTA-BSW Configuration Generation
  2. RTA-BSW Code Generation
  3. RTE Generation

Beyond this Application Note

Beyond this point there will be target/tool-chain specific steps required, such as regenerating the MCAL with an updated CAN configuration. This is not in the scope of this Application Note.