Home Learning Paths ECU Lab Assessments Interview Preparation Arena Pricing Log In Sign Up

Supplier BSW Delivery Format

Delivery ComponentDescriptionIntegrator Action
Pre-compiled library (.a / .lib)Compiled BSW module binary for target MCULink into ECU build — no recompilation needed
BSWMD file (.arxml)Meta-model: all parameters, types, ranges, multiplicity rulesImport into DaVinci/ISOLAR — enables validation against supplier's rules
DaVinci plugin (.jar)GUI + validation + code generation logic for DaVinci ProInstall via DaVinci plugin manager
Header filesPublic API: Xxx.h, Xxx_Types.h, Rte_Xxx.h stubsInclude in application SWC build
Release notes + delta docChanged parameters, removed parameters, API changes per versionReview before every update — drives impact assessment

💡 Pre-Compiled Library Risk

Pre-compiled BSW libraries are compiled for a specific MCU variant, compiler version, and optimization level. Mismatching any of these (e.g., using a Cortex-M7 library on a Cortex-M4, or using -O2 against a -Os library) can cause ABI incompatibilities — wrong calling conventions for function arguments, misaligned stack frames, or undefined symbol sizes. Always verify the compiler + MCU + optimization level triple against the supplier's delivery specification before linking.

Conflict Resolution: MemMap.h Section Names

CMemMap_Compatibility_Shim.h
/* Vendor A BSW uses: START_SEC_CODE_FAST */
/* Vendor B BSW uses: START_SEC_FAST_CODE */
/* Both expand to the same linker section: .text_fast */

/* Shim header (included LAST in MemMap.h) */
#ifndef VENDOR_A_MEMMAP_SHIM_H
#define VENDOR_A_MEMMAP_SHIM_H

/* Remap Vendor B's section names to Vendor A's convention */
#define START_SEC_FAST_CODE     START_SEC_CODE_FAST
#define STOP_SEC_FAST_CODE      STOP_SEC_CODE_FAST

/* Remap Vendor B's Std_Types typedef conflicts */
/* Vendor A: typedef unsigned char uint8; */
/* Vendor B: typedef uint8_t uint8;        */
/* Both resolve to same underlying type on ARM — no runtime issue */
/* Suppress duplicate typedef warning: */
#ifdef VENDOR_B_UINT8_DEFINED
  /* Already defined by Vendor A — suppress Vendor B's definition */
  #define SUPPRESS_VENDOR_B_UINT8
#endif

#endif /* VENDOR_A_MEMMAP_SHIM_H */

⚠️ MemMap.h Compatibility is Project-Specific

MemMap.h section name conflicts are the most common multi-supplier integration issue. There is no AUTOSAR-standardised solution — each project must maintain its own compatibility shim. Document every shim entry with the supplier names and versions that created the conflict, so the shim can be cleaned up when a supplier updates their naming convention.

Supplier BSW Update: Impact Assessment Process

Pythonsupplier_impact_check.py
#!/usr/bin/env python3
# Assess impact of Vendor A BSW update v3.1 to v3.2
import davinci_api, subprocess, sys

# 1. Load new BSWMD into temporary DaVinci project
project = davinci_api.load_project("ECU.dpj")
project.update_bswmd("vendor_a_com_v3.2.arxml")

# 2. Re-validate — find new mandatory parameters and removed parameters
validation_result = project.validate()
new_errors = [e for e in validation_result.errors if e.is_new_in_v32]
removed_params = [p for p in validation_result.warnings if "removed" in p.message]

print(f"New mandatory params: {len(new_errors)}")
for e in new_errors:
    print(f"  {e.parameter}: {e.message}")

# 3. Regenerate code, check for changed output files
project.generate(output="GENDATA_new/")
changed = subprocess.run(
    ["diff", "-rq", "GENDATA/", "GENDATA_new/"], capture_output=True, text=True)
print(f"Changed generated files: {len(changed.stdout.splitlines())}")

# 4. Run MISRA check on changed files only
if changed.stdout:
    subprocess.run(["polyspace", "-sources", "GENDATA_new/",
                    "-misra", "C2012", "-incremental"])

Contract Testing: OEM BSW Interface Test Suite

Test CategoryTest DescriptionFailure Indicates
API boundary valuesCall Com_SendSignal with max signal ID + 1Supplier added range check regression
Null pointer calloutCall Com_TxConfirmation with NULL pduSupplier changed null check behaviour
Init sequenceCall Com_MainFunctionTx before Com_InitSupplier changed uninitialized state behaviour
Callback registrationRegister Tx confirmation, send PDU, verify callback firesSupplier changed callback invocation contract
DET check (dev build)Pass invalid ComIPduId to Com_TriggerIPDUSendSupplier changed DET error code or removed check

Summary

Supplier BSW integration requires three gatekeeping practices: impact assessment on every update (new mandatory parameters, removed parameters, changed generated code), a MemMap.h/Std_Types.h compatibility shim for multi-supplier projects, and an OEM contract test suite that runs against each supplier delivery to catch API regressions before they reach the integration build. A supplier update that passes all three gates can be integrated with high confidence.

🔬 Deep Dive — Core Concepts Expanded

This section builds on the foundational concepts covered above with additional technical depth, edge cases, and configuration nuances that separate competent engineers from experts. When working on production ECU projects, the details covered here are the ones most commonly responsible for integration delays and late-phase defects.

Key principles to reinforce:

  • Configuration over coding: In AUTOSAR and automotive middleware environments, correctness is largely determined by ARXML configuration, not application code. A correctly implemented algorithm can produce wrong results due to a single misconfigured parameter.
  • Traceability as a first-class concern: Every configuration decision should be traceable to a requirement, safety goal, or architecture decision. Undocumented configuration choices are a common source of regression defects when ECUs are updated.
  • Cross-module dependencies: In tightly integrated automotive software stacks, changing one module's configuration often requires corresponding updates in dependent modules. Always perform a dependency impact analysis before submitting configuration changes.

🏭 How This Topic Appears in Production Projects

  • Project integration phase: The concepts covered in this lesson are most commonly encountered during ECU integration testing — when multiple software components from different teams are combined for the first time. Issues that were invisible in unit tests frequently surface at this stage.
  • Supplier/OEM interface: This is a topic that frequently appears in technical discussions between Tier-1 ECU suppliers and OEM system integrators. Engineers who can speak fluently about these details earn credibility and are often brought into critical design review meetings.
  • Automotive tool ecosystem: Vector CANoe/CANalyzer, dSPACE tools, and ETAS INCA are the standard tools used to validate and measure the correct behaviour of the systems described in this lesson. Familiarity with these tools alongside the conceptual knowledge dramatically accelerates debugging in real projects.

⚠️ Common Mistakes and How to Avoid Them

  1. Assuming default configuration is correct: Automotive software tools ship with default configurations that are designed to compile and link, not to meet project-specific requirements. Every configuration parameter needs to be consciously set. 'It compiled' is not the same as 'it is correctly configured'.
  2. Skipping documentation of configuration rationale: In a 3-year ECU project with team turnover, undocumented configuration choices become tribal knowledge that disappears when engineers leave. Document why a parameter is set to a specific value, not just what it is set to.
  3. Testing only the happy path: Automotive ECUs must behave correctly under fault conditions, voltage variations, and communication errors. Always test the error handling paths as rigorously as the nominal operation. Many production escapes originate in untested error branches.
  4. Version mismatches between teams: In a multi-team project, the BSW team, SWC team, and system integration team may use different versions of the same ARXML file. Version management of all ARXML files in a shared repository is mandatory, not optional.

📊 Industry Note

Engineers who master both the theoretical concepts and the practical toolchain skills covered in this course are among the most sought-after professionals in the automotive software industry. The combination of AUTOSAR standards knowledge, safety engineering understanding, and hands-on configuration experience commands premium salaries at OEMs and Tier-1 suppliers globally.

← PreviousLarge-Scale ECU Variant ManagementNext →AUTOSAR CI/CD & DevOps