How-to guides · 2026-11-27

Mercedes EDC16CP31 DTC off : How to do it ?

Stefan Bogdanescu

Founder & Senior Architect

How to Clear DTCs on Mercedes EDC16CP31 ECUs (Om642 Engine)

This tutorial explains how to identify and modify the specific map values within an EDC16CP31 engine control unit (ECU) to suppress diagnostic trouble codes (DTCs). The process involves cross-referencing Xentry fault codes with Bosch DTC paths using WinOLS or similar flash tools, specifically targeting the "Fehlerklasse" (Error Class) maps. While this method mirrors VAG application logic, EDC16CP31 units may require additional verification due to how they store and display error classes.

What You'll Need

  • Flash Tool: WinOLS or equivalent capable of reading/writing ECU maps for EDC16CP31 (Om642).
  • Diagnostic Interface: Xentry/Star diagnostics (or compatible) to read current DTCs and fault descriptions.
  • ECU Unit: An extracted or connected EDC16CP31 unit for the Om642 engine.
  • Backup File: A clean, original map file prior to modification.

Step 1: Identify the Fault Path from Xentry

Begin by reading the active DTCs on the vehicle using Xentry/Star diagnostics. Focus on the specific fault code number (e.g., 2601) and its description (e.g., "Air mass meter sensor, The air mass is too low").

The key to locating the correct map is converting this decimal fault code into its hexadecimal representation for search purposes. For example:

  • Fault Code: 2601 (Decimal)
  • Hexadecimal Equivalent: A49 (Note: The text mentions "8 bits" but 2601 requires 12 bits; ensure your tool accepts the full hex value or search by the decimal ID if supported).

Use this identifier to search within your ECU file for maps containing the string Dfp_. In many cases, the map name will follow a pattern like: Kundenspezifischer Fehlercode fuer Fehlerpfad Dfp_[PathName]

For the example above (2601), you would look for a map containing Dfp_AFSCD_SRCCorrAirmB2 (or similar, depending on the exact fault path). The goal is to isolate the specific Fehlerpfad (Fault Path) name that links the Mercedes-specific code to the Bosch internal structure.

Step 2: Locate and Modify the Fehlerklasse Map

Once you have identified the specific fault path name (e.g., Dfp_AFSCD_SRCCorrAirmB2), search for the corresponding error class map. This map is typically named: Fehlerklasse fuer Fehlerpfad Dfp_[PathName]

In the example, you are looking for: Fehlerklasse fuer Fehlerpfad Dfp_AFSCD_SRCCorrAirmB2

Open this map in your flash tool. You will see a value stored within it (e.g., 4). This value represents the Error Class or severity level of the fault as defined by Bosch.

To attempt to clear or suppress the DTC:

  1. Copy the original value (e.g., 4) for backup.
  2. Change the value to 0.
  3. Save the modified map and flash it back into the ECU.

Why this matters: Setting the error class to 0 effectively tells the ECU that the fault is not present or is of the lowest priority, which should prevent the DTC from being stored in the history or displayed as active in most diagnostic systems.

Step 3: Verify and Trouleshoot Persistence

After flashing the modified map, reconnect your diagnostic tool and clear existing DTCs (if possible via Xentry). Drive the vehicle under normal conditions to generate the fault scenario, then re-check the DTC list.

If the DTC remains visible despite setting the Fehlerklasse map to 0, consider the following:

Potential Issue Explanation Action
Incorrect Map Identified The path name might not match exactly, or there may be multiple maps influencing the same fault. Re-examine Xentry output. Verify if another map (e.g., "CARB spezifischer Fehlercode") also needs adjustment. Ensure you are editing the correct Fehlerpfad string.
Map Structure Variation Some EDC16CP31 units may store error classes differently or use multiple bytes. Check if the value is stored in a different byte offset within the map. Use hex editor view in WinOLS to inspect raw data around the identified address.
DTC Memory Retention The DTC might be stored in long-term memory and not cleared by flash alone. Perform a full DTC clear via Xentry after flashing. If it persists, check if the ECU requires a specific initialization routine or key cycling to update internal counters.
Bosch vs. Mercedes Mapping The relationship between Mercedes-specific codes (Kundenspezifischer) and Bosch classes might not be 1:1 in all cases. Cross-reference with service manuals for Om642/EDC16CP31. Verify if additional maps (e.g., "Fehlerpfad" definitions) need to be zeroed out alongside the Fehlerklasse map.

Verification Checks and Pitfalls

  • Backup Before Writing: Always save the original ECU file before making changes. A single incorrect byte offset can corrupt adjacent maps, affecting engine performance or starting behavior.
  • Hexadecimal Conversion Accuracy: Ensure your decimal-to-hex conversion is correct. For instance, 2601 decimal is A49 hex. If your tool searches by string, use the exact path name from Xentry rather than relying solely on numeric conversion.
  • DTC Clearing Procedure: Flashing a new map does not automatically clear existing DTCs in all cases. Use Xentry to explicitly clear codes after flashing and before verifying persistence.
  • Engine Performance Impact: Setting error classes to 0 can sometimes mask underlying sensor issues. Monitor fuel trims, idle quality, and acceleration response to ensure the engine still runs smoothly with the suppressed fault.

Final Note: Residual DTC Persistence

If the DTC persists after modifying the Fehlerklasse map to 0, it may indicate that the EDC16CP31 implementation stores additional metadata (such as fault occurrence counters or time-based persistence flags) in separate maps not directly tied to the error class value. In such cases, inspecting adjacent maps for counters, thresholds, or status bits may be necessary. Additionally, verify that your diagnostic tool is reading from the correct memory area (short-term vs. long-term DTC storage). If manual map editing proves unreliable, consider using a specialized EDC16CP31 tuning suite that handles DTC suppression through dedicated registers rather than raw map byte manipulation.