AUTOSAR Configuration Explained: ARXML, ECU Extracts and Code Generation

AUTOSAR development involves more than writing application code. Engineers must describe software components, interfaces, communication, ECU resources and Basic Software (BSW) settings in a structured way. AUTOSAR toolchains use these descriptions and configuration inputs to generate or configure software for a target ECU.

This article follows a practical Classic Platform configuration workflow: from system-level design and ARXML artifacts to ECU-specific configuration, BSW integration, RTE generation and target validation. It also explains common configuration failures and how to investigate them.

Scope and terminology: This article focuses mainly on AUTOSAR Classic Platform. Artifact names, extraction workflows, schemas, module parameters and generator outputs vary by AUTOSAR release, methodology and tool supplier. The examples are illustrative, not copy-and-paste configuration for a particular tool.

1. What does AUTOSAR configuration mean?

AUTOSAR configuration is the process of describing how application software, communication, ECU resources and BSW modules are assembled for a target ECU.

Depending on the project, configuration can cover:

  • Software components, ports, interfaces and data types.
  • Runnable entities, events and execution-related mappings.
  • Communication between software components and ECUs.
  • Signals, I-PDUs and network mappings.
  • ECU allocation and ECU-specific descriptions.
  • BSW module parameters and module connections.
  • Operating-system tasks, alarms and schedule-related settings.
  • Diagnostic services, data identifiers and diagnostic events.
  • Memory, hardware and microcontroller-specific settings.

Configuration is not normally contained in one universal file. A project uses related descriptions, configuration artifacts, tool projects and generated outputs. Different teams may own different parts of the model, and the toolchain may exchange them through defined integration steps.

A useful distinction is:

  • Description: captures the intended architecture or behavior, such as a software component interface.
  • Configuration: assigns and parameterizes that architecture for a particular ECU and implementation.
  • Generation: creates artifacts such as RTE code or BSW configuration outputs from the validated inputs.
  • Integration and verification: proves that the generated and handwritten software work together on the target.

2. What is ARXML?

ARXML means AUTOSAR XML. It is an XML-based format used to represent AUTOSAR models, descriptions and configuration data.

Depending on its artifact type, an ARXML file may describe:

  • Application software components and their interfaces.
  • Data types and implementation-related descriptions.
  • System signals and communication mappings.
  • System-level architecture and ECU allocation.
  • ECU-specific extracts or descriptions.
  • BSW module configuration values.
  • Hardware and software-related descriptions.

The exact content and permitted elements depend on the AUTOSAR release and the particular description or configuration artifact.

ARXML is structured model data, not ordinary application source code. A file may contain references to elements defined in other files. Consequently, a document can be well-formed XML and still be unusable because a reference is unresolved, a type is incompatible or a model relationship is invalid.

2.1 ARXML is not one monolithic configuration

A vehicle project may contain multiple ARXML files created by different engineering teams or tools. For example, system architecture, software-component descriptions, ECU-specific information and BSW module configuration may be maintained separately and exchanged at different integration stages.

The important requirement is consistency across the artifact set:

  • References must resolve to the intended elements.
  • Interfaces and data types must be compatible.
  • Communication mappings must agree across sender and receiver ECUs.
  • ECU allocation must match the target integration.
  • All files must use compatible AUTOSAR definitions and schemas.

2.2 A simplified ARXML structure

An ARXML document commonly contains an AUTOSAR root element, package hierarchy and model elements. The following is an intentionally abbreviated illustration, not a complete schema-valid SWC description:

<?xml version="1.0" encoding="UTF-8"?>
<AUTOSAR>
  <AR-PACKAGES>
    <AR-PACKAGE>
      <SHORT-NAME>VehicleSoftware</SHORT-NAME>
      <ELEMENTS>
        <!-- AUTOSAR model elements are defined here -->
      </ELEMENTS>
    </AR-PACKAGE>
  </AR-PACKAGES>
</AUTOSAR>

Important ideas:

  • AR-PACKAGE provides a namespace-like organizational hierarchy for model elements.
  • SHORT-NAME identifies an element within its package context.
  • Model elements have defined AUTOSAR metamodel types and permitted child elements.
  • References commonly use paths to identify elements elsewhere in the model.

Do not create production ARXML by copying this skeleton. Real documents require the correct schema-defined element types, namespaces, attributes and relationships for the selected release.

2.3 Understanding references

A configuration may refer to an interface, data type, signal, PDU or BSW module configuration defined elsewhere. A reference is not simply a filename; it identifies a model element according to the AUTOSAR model structure.

When a tool reports an unresolved reference, check:

  1. Whether the referenced element exists in the imported model.
  2. Whether its package path and short name match.
  3. Whether the file containing it is part of the active project.
  4. Whether the correct variant or ECU extract is loaded.
  5. Whether the reference points to an element of the expected type.
  6. Whether the files were generated from compatible model baselines.

Renaming or moving model elements can therefore have wider impact than changing a local XML tag.

3. A practical AUTOSAR Classic configuration workflow

A typical Classic Platform workflow can be represented as follows. Real projects iterate between stages and may divide responsibilities differently.

  1. Define system requirements and ECU functions.
  2. Design software components, ports, interfaces and data types.
  3. Define communication between components and ECUs.
  4. Allocate software components and communication responsibilities to ECUs.
  5. Create or derive ECU-relevant descriptions, such as ECU extracts where used.
  6. Configure BSW modules and ECU resources for each target.
  7. Validate model relationships and configuration consistency.
  8. Generate RTE and configured BSW artifacts supported by the toolchain.
  9. Integrate application code and generated code.
  10. Build, flash and test the ECU.
  11. Maintain configuration, tool versions and integration artifacts as the project evolves.
Rendering diagram...

Configuration and integration are rarely a one-way process. A test finding, requirement change or hardware update may require changes to the model, configuration and generated artifacts, followed by another validation and build cycle.

3.1 Who typically contributes?

Engineering roleTypical contribution
System architectSystem functions, interfaces, ECU allocation and network architecture
Application developerSWC behavior, ports, interfaces and runnable implementation
System / network engineerSignals, I-PDUs, communication mappings and network descriptions
BSW integratorBSW module configuration and module connections
ECU integratorECU extract, RTE/BSW integration, build and variant consistency
Verification engineerModel checks, communication tests, timing and target validation

These are common responsibility areas, not mandatory AUTOSAR job titles. A supplier or OEM may combine or split them.

4. Software component descriptions, ports and interfaces

A software component (SWC) description captures the component's architectural role and integration interfaces.

For example, a VehicleSpeed component may receive wheel-speed information, calculate or validate vehicle speed and provide a vehicle-speed data element to other components.

A component description can define:

  • The component type and its ports.
  • The interfaces associated with those ports.
  • Data elements or operations exchanged through the interfaces.
  • Runnable entities and relevant events.
  • References to data types and other model elements.

The component description does not necessarily contain the complete implementation algorithm. The implementation code provides the behavior and is developed against the expected interfaces and project conventions.

4.1 Sender-Receiver and Client-Server

Two common communication patterns are:

  • Sender-Receiver: a component provides data that another component receives. This is commonly used for values such as vehicle speed, temperature or status.
  • Client-Server: a client requests an operation provided by a server and receives a result or status.

For example, a speed provider may publish a speed value using Sender-Receiver communication. Another component may use Client-Server communication to request a configured calculation or service.

During integration, verify that the port prototypes, interface definitions, data types and connections are compatible. A connected port pair with mismatched data definitions can cause validation or generation errors.

4.2 Runnable and event mapping

A runnable is an executable unit of an SWC. It is activated through configured events such as timing events, data-received events or operation-invoked events. In a Classic ECU, the RTE and OS configuration determine how runnable execution is integrated into the ECU's runtime environment.

For a periodic runnable, check:

  • The intended activation period.
  • The event-to-runnable association.
  • The task mapping and task priority.
  • The runnable's execution time and deadline.
  • Data freshness and synchronization assumptions.
  • Whether multiple activations or re-entrancy are possible in the configured design.

A correct SWC interface does not prove that the runnable is scheduled correctly. Execution configuration is a separate integration concern.

5. System description and ECU extract

The system-level design can describe multiple ECUs, their software components and the communication exchanged between them.

A system description may include:

  • Vehicle ECUs and their network connections.
  • Software components and their allocation.
  • Interfaces and data types.
  • Signals, I-PDUs and communication mappings.
  • Network topology and communication relationships.

An ECU extract is an ECU-relevant view or subset of system information used in the ECU configuration and integration workflow. It may be derived from a wider system description or maintained through the project's toolchain process.

5.1 Example: extracting information for a body ECU

Imagine a vehicle system model containing a body ECU, powertrain ECU and gateway ECU. The body ECU sends door status and receives vehicle speed. The ECU-specific configuration process needs the relevant software allocation, communication descriptions and references required to configure the body ECU.

Conceptually, the ECU-relevant information includes:

  1. Software components allocated to the body ECU.
  2. Required port and interface definitions.
  3. Signals and I-PDUs sent or received by the ECU.
  4. Network and communication references required by the ECU.
  5. Relevant ECU-specific configuration inputs.
Rendering diagram...

The diagram is conceptual. The exact content, extraction algorithm, artifact naming and ownership depend on the AUTOSAR release and project methodology.

Do not assume that every project creates an identically named or separately stored ECU extract. Follow the artifact definitions and workflow used by the project's AUTOSAR toolchain.

5.2 Why the ECU extract matters

An ECU-specific view helps the integration team work with the model elements relevant to its target. It can reduce unnecessary system-level information and establish the input boundary for ECU configuration.

However, it is not a substitute for validating the full system integration. A local ECU configuration may be internally consistent while the system-level sender/receiver mapping is wrong. Cross-ECU consistency must still be verified.

6. BSW module configuration: follow a CAN signal path

After software architecture and ECU responsibilities are defined, the relevant Basic Software modules must be configured for the target ECU.

Examples include:

  • CAN driver and CAN Interface configuration.
  • PDU Router paths.
  • COM signals and I-PDUs.
  • Diagnostic communication configuration in DCM.
  • Non-volatile memory configuration.
  • OS tasks, alarms and schedule-related settings.
  • ECU state management and watchdog-related configuration.
  • Microcontroller peripheral drivers and ECU-specific hardware settings.

A module's parameters must be consistent with the modules connected to it. A PduR route must refer to compatible source and destination PDUs. COM signal and I-PDU properties must agree with the network communication design. CanIf configuration must match the relevant controller, channel and hardware mapping.

6.1 Example: transmit vehicle speed over CAN

Assume an application SWC provides a vehicle-speed value that must be transmitted in a CAN I-PDU.

A simplified logical path is:

Application SWC → RTE → COM → PduR → CanIf → CAN Driver

The configuration review should follow the same path:

Layer / moduleConfiguration question
SWC / RTEIs the sender port connected to the intended interface and data element?
COMIs the signal mapped to the correct I-PDU, bit position and length?
COM transmissionIs the I-PDU transmission mode and trigger behavior correct?
PduRIs the COM I-PDU routed to the intended lower-layer destination?
CanIfDoes the transmit PDU map to the expected CAN identifier, controller and channel?
CAN DriverIs the configured hardware controller and baud-rate setup correct for the ECU?

The exact generated configuration objects and parameter names are supplier- and release-dependent. Use the tool's module view and generated reports rather than assuming that a parameter name from another toolchain will be identical.

6.2 Example: receive a CAN signal

A typical receive path is:

CAN Driver → CanIf → PduR → COM → RTE → Receiving SWC

For a received value that is incorrect, compare the raw payload and the configured signal definition before changing application code. Check start bit, bit length, byte order, signedness, scaling, offset, invalid value and I-PDU length.

6.3 Diagnostic configuration is a separate path

For CAN-based UDS diagnostics, a common receive path is:

CAN Driver / CanIf → CanTp → PduR → DCM

CanTp handles transport-protocol functions such as segmentation and reassembly; DCM processes diagnostic services. PduR routes the configured diagnostic PDUs between modules. Do not treat a diagnostic request as an ordinary COM signal.

7. RTE and BSW code generation

The RTE is generated from software-component descriptions, connections, ECU allocation and relevant configuration inputs. BSW configuration tools may also generate module-specific source files, headers and configuration data.

Depending on the toolchain and module implementation, generated artifacts may include:

  • RTE header and source files.
  • BSW module configuration source and header files.
  • Generated configuration data and tables.
  • OS configuration artifacts.
  • Integration-related reports and metadata.

The precise output depends on the AUTOSAR release, toolchain, module implementation and configuration.

7.1 What can cause RTE generation errors?

Typical causes include:

  • An unconnected required port.
  • Incompatible sender and receiver interface definitions.
  • A missing or unresolved data-type reference.
  • A runnable without a valid event association.
  • An invalid or incomplete ECU allocation.
  • A mismatch between component descriptions and the ECU's configured view.
  • A configuration combination unsupported by the selected generator.

A useful debugging sequence is:

  1. Read the first meaningful error, not only the final generation failure.
  2. Identify the referenced component, port, interface or data type.
  3. Open the model element in the tool and confirm its package path.
  4. Check the connection and ECU allocation.
  5. Validate the model again.
  6. Regenerate only after the source model is corrected and validated.

7.2 What can cause BSW generation errors?

Common causes include missing mandatory parameters, invalid parameter values, incompatible module references, unsupported combinations and inconsistencies between connected modules.

For example, if a PduR route references a destination PDU that is not present in the active CanIf configuration, the model may fail validation or generation. The correct fix is to reconcile the configuration inputs, not to patch generated C code.

7.3 Treat generated code as an output

Generated code should normally be treated as an output of the configuration process. When a generated interface or configuration is wrong, correct the model or configuration input and regenerate the affected artifacts.

Direct edits to generated files may be overwritten during the next generation run and can make builds difficult to reproduce. Some suppliers provide documented user-code sections, callouts or controlled extension mechanisms. Follow those documented mechanisms rather than editing generated output arbitrarily.

8. Practical configuration change: adding a CAN I-PDU

Suppose a new 8-byte CAN I-PDU is added to an ECU. A controlled change should identify the impact across the system and ECU configuration.

  1. Network definition: define the frame, CAN identifier, sender, receivers and cycle behavior in the project's network description.
  2. Signal definition: define each signal's start bit, length, byte order, signedness, scaling, offset and invalid value.
  3. System mapping: connect the relevant software data to the communication signal and map the communication to the intended network.
  4. ECU allocation: confirm which ECU transmits and which ECUs receive the PDU.
  5. ECU configuration: update the relevant communication configuration for each affected ECU.
  6. COM configuration: verify signal mapping, I-PDU length, update behavior and transmission mode.
  7. PduR and CanIf: verify the required routing and lower-layer PDU mappings.
  8. Generation: regenerate all affected artifacts using the agreed toolchain baseline.
  9. Integration: compile and integrate the changed configuration with application and BSW code.
  10. Verification: test raw payload, decoded values, timing, timeout and variant behavior.

Change-impact checklist

QuestionWhy it matters
Which ECUs send or receive the PDU?Determines the scope of ECU configuration changes
Which SWCs consume or produce the data?Identifies RTE and interface impact
Did the signal layout or I-PDU length change?May affect COM configuration and application interpretation
Are network descriptions and ECU configurations from the same baseline?Prevents stale or inconsistent mappings
Which generated artifacts depend on the changed model?Ensures all affected code is regenerated
Which tests prove the change?Provides evidence beyond successful generation

A successful generation step does not replace compilation, integration testing or validation on the target ECU.

9. Configuration validation: more than XML syntax

A useful validation strategy checks artifacts at multiple levels.

Validation levelWhat it checksExample finding
XML well-formednessXML syntax and nestingBroken tag or malformed document
Schema validationConformance to selected AUTOSAR schemaUnsupported element or attribute
Semantic validationModel relationships and referencesUnresolved reference or incompatible type
Configuration validationModule settings and implementation constraintsMissing parameter or unsupported combination
Generation validationWhether generators can create consistent outputsRTE or BSW generation failure
Build validationWhether generated and handwritten code compile and linkMissing symbol or type mismatch
Target validationActual ECU behaviorIncorrect signal, timing or diagnostic response

Schema-valid ARXML is not necessarily a valid ECU configuration. Cross-reference resolution, release compatibility, supplier constraints and system-level consistency still need checking.

9.1 Practical validation sequence

  1. Confirm that the project uses the intended AUTOSAR release and schema.
  2. Import all required ARXML files and verify that the model loads without unresolved references.
  3. Run model or semantic validation.
  4. Run ECU and BSW configuration validation.
  5. Review warnings as well as errors; some warnings indicate incomplete or unintended configuration.
  6. Generate the RTE and relevant BSW artifacts.
  7. Review generation reports and output changes.
  8. Compile and link the ECU software.
  9. Run unit and integration tests.
  10. Verify communication and diagnostic behavior on the target or an appropriate test environment.

Use the validation levels supported by the toolchain. The order may differ in a project-specific workflow.

10. Common configuration failures and debugging approach

Case A: unresolved ARXML reference

Symptom: The tool reports that an interface, data type, component or PDU reference cannot be resolved.

Check:

  • Is the file containing the referenced element imported?
  • Does the package path and short name match?
  • Has the element been renamed or moved?
  • Is the correct variant or ECU extract active?
  • Are the files based on compatible model versions?

Corrective approach: restore the intended model dependency or update the reference through the AUTOSAR modeling tool. Avoid editing reference strings blindly without checking the model relationship.

Case B: RTE generation fails

Symptom: RTE generation stops with an error involving a port, interface, data element, runnable or event.

Check:

  • Port compatibility and connection.
  • Interface and data-type references.
  • ECU allocation.
  • Runnable-to-event association.
  • Required configuration for the selected generator.

Corrective approach: resolve the first model-level error, validate the component and ECU view, then regenerate. Do not patch generated RTE files to bypass a model error.

Case C: CAN frame is present but the application value is wrong

Symptom: A bus trace shows the expected CAN identifier, but the SWC reads an incorrect value.

Check:

  • Raw payload bytes.
  • COM signal start bit and length.
  • Byte order, signedness, scaling and offset.
  • I-PDU length and signal mapping.
  • Network database versus generated configuration version.
  • RTE connection to the intended receiving data element.

Corrective approach: compare the network definition and generated COM configuration first. Only then investigate application logic.

Case D: PDU does not reach the expected module

Symptom: A transmit or receive PDU is visible at one module boundary but not the next.

Check:

  • Source and destination PDU references.
  • PduR routing path and direction.
  • Active ECU variant and configuration.
  • Connected module configuration and initialization.
  • Relevant transmit confirmation or receive indication path.

Corrective approach: trace the PDU across module boundaries and compare the configured route with the actual generated configuration. Do not assume that a valid PDU definition automatically creates a route.

Case E: build uses stale generated files

Symptom: The model has been updated, but the compiled software behaves as if the old configuration is still present.

Check:

  • Generator input timestamps and selected project baseline.
  • Whether the relevant generators were rerun.
  • Whether build scripts reference the expected generated output directory.
  • Whether stale files from another ECU variant are included.
  • Whether incremental build dependencies are correct.

Corrective approach: confirm the active configuration baseline, regenerate affected outputs and perform the project's clean or controlled rebuild procedure. Preserve logs so the build can be reproduced.

11. Configuration management and reproducible generation

AUTOSAR configuration is an engineering artifact and should be managed with the same discipline as source code.

Good practices include:

  • Version-control ARXML and related configuration files.
  • Define ownership of system, ECU and BSW configuration.
  • Use consistent naming conventions and documented artifact boundaries.
  • Maintain traceability from requirements to model and configuration.
  • Pin the AUTOSAR release, schema and relevant tool versions.
  • Record generator versions, options, logs and warnings.
  • Review configuration changes and generated-code differences.
  • Make clean builds reproducible from a known baseline.
  • Keep ECU variants explicit and controlled.
  • Automate validation where practical.

A configuration change can affect generated code, communication behavior, memory use, timing and integration. It should not be treated as harmless metadata.

Variant management

An ECU family may have multiple variants with different network features, hardware resources or optional functions. The project must make clear which configuration applies to each variant and how generated artifacts are selected.

A variant error can produce a build that compiles successfully but contains the wrong communication mapping or feature configuration. Verify the selected variant at import, generation, build and test stages.

12. Common misconceptions

ARXML is the ECU application source code.
ARXML describes AUTOSAR models and configuration. Application behavior is implemented separately, although generated interfaces connect the implementation to the model.

One ARXML file contains the entire vehicle.
A project can contain many related ARXML files and other engineering artifacts.

Generated code should be edited directly.
Generated outputs should normally be changed through their source model or configuration inputs. Use documented extension mechanisms where the supplier supports them.

Configuration is only a BSW task.
AUTOSAR configuration spans system architecture, software components, communication, ECU allocation and BSW.

Schema validation proves the ECU is ready.
Schema validation checks structural conformance. Semantic checks, configuration validation, compilation and target integration testing are also required.

Successful generation proves correct ECU behavior.
Generation confirms that the tool produced outputs from the supplied configuration. It does not prove that application logic, timing, network behavior or hardware integration meet requirements.

13. Interview questions and answers

1. What does ARXML represent?
ARXML is the XML-based format used to represent AUTOSAR models, descriptions and configuration data.

2. Is ARXML the same as generated C code?
No. ARXML describes model and configuration information. Tools may generate C source, headers and configuration outputs from it.

3. What is an ECU extract?
It is an ECU-relevant view or subset of system information used in the ECU configuration and integration workflow. Its exact content and derivation depend on the project's methodology and toolchain.

4. What is the difference between a system description and ECU-specific information?
A system description can represent multiple ECUs and their interactions. ECU-specific information focuses on the model elements needed to configure and integrate a particular ECU.

5. What is the role of an SWC port?
A port connects a software component to an interface through which it exchanges data or requests operations.

6. What is the difference between Sender-Receiver and Client-Server communication?
Sender-Receiver is used to provide and consume data elements. Client-Server is used when a client invokes an operation provided by a server.

7. Why is RTE generation dependent on ECU configuration?
The RTE must realize the configured component connections and map application interfaces into the ECU's execution and BSW environment.

8. Why should generated files normally not be edited manually?
A later generation step may overwrite manual changes, and direct edits make the configuration difficult to reproduce and maintain.

9. Does schema-valid ARXML guarantee a working ECU?
No. Semantic and configuration validation, code generation, compilation, integration and target testing are also required.

10. What would you check if a CAN frame is correct on the bus but the SWC reads the wrong value?
Check the COM signal mapping, bit position, length, byte order, signedness, scaling, I-PDU mapping, RTE connection and consistency of the network database with generated configuration.

11. What would you investigate if PduR does not forward a PDU?
Check the configured source and destination PDUs, routing path, direction, active ECU variant, connected module configuration and generated routing output.

12. Why are tool and schema versions important?
AUTOSAR releases and supplier implementations can differ in schemas, model elements, parameters and generator behavior. Compatible versions are necessary for reproducible configuration and integration.

14. Key takeaways

  • AUTOSAR configuration describes how software components, interfaces, communication and BSW are assembled for an ECU.
  • ARXML is the structured XML-based representation used for AUTOSAR descriptions and configuration.
  • System descriptions and ECU-specific information support allocation and integration.
  • BSW configuration must be consistent across connected modules.
  • RTE and other generated artifacts depend on the model and configuration inputs.
  • A CAN communication change can affect network descriptions, SWC interfaces, COM, PduR, CanIf and generated outputs.
  • Schema validation alone does not prove that an ECU configuration is complete or correct.
  • Version control, controlled tool versions and repeatable generation are essential.

Related AUTOSAR topics

References and release guidance

AUTOSAR specifications and schemas are release-specific. A production project may use an earlier release or a supplier-supported baseline. Always use the release, schema, module specifications and toolchain agreed for the ECU project; do not assume that an example from one release is directly portable to another.

Engineering note: This article explains architecture and a typical configuration workflow. Exact artifact types, module behavior, configuration parameters, generated interfaces and supported combinations must be checked against the project's selected AUTOSAR release and the supplier's implementation documentation.