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

DET Disabled for Production

DET (Default Error Tracer) is a debug-only mechanism. Every BSW module has a DevErrorDetect parameter — set to FALSE for all modules in the production build.

ModuleDevErrorDetect ParameterImpact of Leaving TRUE
COMComDevErrorDetect~3 KB extra Flash; runtime error checks that add ~0.5 µs per COM call
CanIfCanIfDevErrorDetect~2 KB extra Flash; HOH range checks per Rx frame
NvMNvMDevErrorDetect~4 KB extra Flash; API parameter validation per NvM call
DCMDcmDevErrorDetect~5 KB extra Flash; service table lookup validation

⚠️ Never Ship DET-Enabled

A DET-enabled production build has larger Flash footprint, higher CPU load, and Det_ReportError callouts that may alter timing. All OEM software integration specifications mandate DevErrorDetect=FALSE in production builds. This must be verified by the CI pipeline before release tagging.

DEM Production Settings

ParameterProduction ValueRationale
DtcFormatIdentifierISO14229-1Standard UDS DTC format required by OBD regulations
DemTypeOfFreezeFrameRecordNumerationDEM_FF_RECNUM_CALCULATEDAutomatic record numbering; no manual numbering errors
DemStorageTriggerDEM_TRIGGER_ON_CONFIRMEDStore freeze frame only when DTC confirmed, not on first failure
DemAgingCounterThreshold40Aging after 40 passed operation cycles — OBD standard minimum

NvM Final Configuration Checks

CheckVerification MethodPass Criteria
CRC enabled for all safety blocksReview NvMUseCrc + NvMBlockCrcType in configAll safety-relevant blocks: NVM_CRC32
REDUNDANT type for odometerReview NvMBlockManagementTypeNVM_BLOCK_REDUNDANT
WriteAll triggered at shutdownBswM rule review + power-cycle testAll blocks NVM_REQ_OK after power cycle
ReadAll before app startBswM rule review + startup traceRUN mode only after NVM_REQ_OK confirmed

Build Reproducibility

Shellrelease_checklist.sh
#!/bin/bash
# Production release gate checks
echo "=== AUTOSAR CP Production Checklist ==="

# 1. Verify DET disabled for all modules
grep "DevErrorDetect" GENDATA/*.h | grep "TRUE" &&   { echo "FAIL: DET still enabled"; exit 1; } || echo "PASS: DET disabled"

# 2. Verify GENDATA is not stale
./ci_stale_check.sh || exit 1

# 3. Verify NvM CRC enabled for safety blocks
grep "NVM_CRC32" GENDATA/NvM_Cfg.h | grep -q "ODOMETER" &&   echo "PASS: Odometer CRC32" || { echo "FAIL: Odometer CRC not CRC32"; exit 1; }

# 4. Build from clean checkout
git clean -fdx && cmake --build . && echo "PASS: Clean build successful"

echo "=== All checks passed — ready for release ===" 

Summary

A production AUTOSAR CP ECU build requires: DET disabled across all BSW modules; DEM configured to ISO 14229-1 standards; NvM REDUNDANT + CRC32 for all safety-critical blocks; GENDATA up to date; build reproducible from a clean checkout. Automate all these checks in the CI release gate to prevent manual oversight errors from reaching production.

🔬 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.

← PreviousPerformance Optimization Techniques