RTA Knowledge Base

Introduction

Scope

This application note will show how to create a new Lin channel and a new Lin Cluster in the system. In this example, the Lin node will be imported in an existing ECU with at least one LIN node present.

Preconditions

  • ECU name in LDF is matching with the existing ECU in the System
  • BSW makes use of the RTA-BSW configurator generator
  • RTE, BSW and OS are generating with no issue

The ISOLAR-A LDF merger does not support the creation of multiple cluster using the LDF merger, is therefore required to manually merge the LDF as showed by this Article.

Import LDF

Import the LDF using the LDF importer, but in this case use a different ECU name and output file name; ensure to use a Cluster name different from the existing one

Select the frame to be imported as done in the previous import.

The LDF importer created a new ECU with a new LinMaster and LinCommunicationConnector, and a new Lin Network

System configuration

Rename the following item to avoid overlapping with the existing one (for instance add “_1”) - LinMaster - LinPhysicalChannel

Now drag and drop LinMaster and LinCommunicationConnector from the newly generated ECU to the existing one and remove the new ECU

Hint: in ISOALR-A drag and drops feature allow to automatically maintain AR packages reference. Using copy paste has not the same effect.

arxml merge

RTA-BSW requires that the system configuration is located in one file. Since the additional Lin node has been imported in a different file (default near LDF_SysDesc.arxml), is now necessary to merge the new file in the existing one. ISOLAR-A offers different ways to merge arxml (refer to ISOLAR-A documentation), one option is to open the file in the AUTOSAR Example Editor and drag and drop contents.

NB: The user shall ensure to remove duplicated definition and to maintain references valid.

BSW configuration

It is now possible to generate the BSW configuration; RTA-BSW will upgrade the configuration for the modules LinIf and LinSM

The following actions need to be added to the initialization of the ECU to complete the BSW integration:

  • ComM allow communication on newly imported Lin channel
  • ComM set FULL_COMM for newly imported Lin channel
  • The new Lin Schedule tables shall be activated

All these actions can be implemented by BswM adding them in the BswMActions and BswMActionLists

BSW generation

It’s now possible to generate the BSW code. RTA-BSW will update the COM stack modules with the new configuration.

RTE integration

Now in the RTE Editor go to Entity to Task Mapping window and map the new ComM MainFunction to a task

Now generate RTE.

MCAL integration

After the BSW and RTE configuration, it’s necessary to update the MCAL. Here a list of possible steps required (for additional information refer to the MCAL documentation):

  • The new Lin channel shall be configured in the Lin Driver
  • Port drive needs to be configured with the additional Pin IN/OUT