How-to guides · 2026-11-27

Difference between codeblocks, MSA15

Stefan Bogdanescu

Founder & Senior Architect

How to Identify and Match Codeblocks in MSA15 ECUs

When tuning an Audi A4 1.9 TDI (AHU) with an EDC15 or MSA15 ECU, you will encounter two distinct codeblocks within the flash file. These blocks correspond to the Manual and Automatic transmission modes. Understanding which block controls your specific drivetrain and how to align their map data is essential before writing a calibrated tune.

What You'll Need

  • A supported ECU flashing tool (e.g., OBDLink, VAGBox, or similar) capable of reading MSA15/EDC15 files.
  • The original stock or base tune file for your specific vehicle variant.
  • Basic knowledge of map structure and axis resolution in tuning software.

Step 1: Locate the Codeblocks in the Flash File

Open your ECU file in your preferred tuning software. You will see two separate sections (codeblocks) containing the engine maps. Do not assume the first block encountered is for Manual transmission; the order can vary depending on the ECU coding and manufacturer layout.

To determine which block belongs to which transmission type, look for specific 16-bit LoHi values within each codeblock. These values are typically formatted as 0000x or 0010x, where x is the last number of the ECU coding. For example, if your ECU coding ends in 5, you might see values like 00005 or 00105. Match these suffixes against the known ECU coding for your vehicle to identify the correct block.

Step 2: Verify Transmission Type via Torque Limiter

If the LoHi values are ambiguous or if you do not have the exact ECU coding reference, use the torque limiter map as a secondary verification method. The Manual and Automatic transmission blocks will differ in their torque limiter settings because of how each transmission handles engine load and shift points.

  • Manual Transmission: Typically has a more linear or stepped torque curve that allows for driver control over shift timing.
  • Automatic Transmission: Often features a smoother, more continuous torque curve optimized for gear shifts.

Inspect the torque limiter map in both blocks. The block with the torque profile matching your drivetrain’s operational characteristics is the active one for your vehicle. If you are unsure, compare against a known-good tune for your specific transmission type if available.

Step 3: Align Map Resolution and Data

The only map that typically differs between the two codeblocks is the "Driver's Wish" (or similar driver input) map. The resolution of this map varies significantly between the blocks:

  • One block provides higher resolution from 0 to approximately 2,000 RPM.
  • The other block provides higher resolution above 2,000 RPM.

This difference matters because low-RPM resolution is critical for idle stability and low-speed creep control, while high-RPM resolution affects top-end response and acceleration feel. If you are tuning both blocks to be identical (e.g., for a vehicle that might switch between Manual and Auto modes, or if you want uniform behavior), you must handle the axis values carefully.

Decision Point: Copying Maps Between Blocks

  • Option A: Copy Complete Maps. You can copy the entire map data from one block to another. This is straightforward but may result in suboptimal performance at certain RPM ranges due to the differing native resolution.
  • Option B: Interpolate Values. If you have access to both blocks, interpolate the values from the higher-resolution block into the lower-resolution block (or vice versa). This ensures that the tuned behavior matches across the entire RPM range without introducing artifacts from mismatched grid points.

When interpolating, ensure your software handles the axis alignment correctly. Do not assume that linear interpolation will preserve the exact tuning intent if the original maps were created with non-linear curves. Always verify the resulting map visually before writing to the ECU.

Verification Checks

  1. LoHi Value Match: Confirm that the 0000x/0010x values in your identified Manual block match the ECU coding suffix for your vehicle.
  2. Torque Limiter Consistency: Ensure the torque limiter map in your active block aligns with expected drivetrain behavior (Manual vs. Auto).
  3. Driver’s Wish Map Continuity: After copying or interpolating, inspect the Driver’s Wish map for any discontinuities or steps that could cause erratic throttle response at low or high RPMs.

Troubleshooting and Pitfalls

  • Ambiguous LoHi Values: If both blocks show similar 0000x/0010x values, rely on the torque limiter map for identification. Do not guess based on block order.
  • Resolution Mismatch Artifacts: When interpolating between blocks with different axis resolutions, small errors can accumulate if your software uses linear interpolation over a wide range. Use piecewise linear or cubic spline interpolation if available to maintain smooth transitions.
  • Inactive Block Tuning: If you only tune one block, the other may still affect behavior depending on the transmission mode (e.g., in an automatic transmission, the Manual block might be used for certain shift logic). Tune both blocks consistently to avoid unexpected shifts or power delivery changes.

Final Note

The primary limitation is that the "Driver’s Wish" map resolution difference means a direct copy will not yield identical performance across all RPM ranges without interpolation. Always verify the final tune by driving through the full RPM range, paying special attention to idle stability and high-RPM response, to ensure the interpolated or copied data behaves as intended in real-world conditions.