How-to guides · 2026-11-27

peugeot 307 hdi

Stefan Bogdanescu

Founder & Senior Architect

How to Read and Map a Peugeot 307 HDI ECU with Kess/Ktag and WinOLS

You will learn how to extract the raw firmware data from a Peugeot 307 HDI engine control unit (ECU) using Kess and Ktag, identify the correct map file for tuning tools like WinOLS or ECM Titanium, and verify that your extracted data is complete before attempting modifications such as disabling the EGR.

What you'll need

  • Kess interface: A hardware tool capable of reading/writing ECUs via the OBD-II port.
  • Ktag: The companion software for Kess, used for flash reads and packet extraction.
  • WinOLS or ECM Titanium: Mapping software that supports the specific ECU variant found in your vehicle.
  • Jumper wire (optional): If you need to bypass the EGR valve during initial testing or mapping.
  • Laptop: With USB connectivity to the Kess unit and sufficient storage for firmware files.

Step 1: Extract the raw flash data using Ktag

Before you can map or modify anything in WinOLS, you need the specific binary file for your exact ECU variant. The process starts with a direct read from the ECU hardware.

  1. Connect the Kess interface to the OBD-II port of the Peugeot 307.
  2. Open Ktag and identify the HDI ECU in the list of available modules.
  3. Perform a flash read. This reads the entire memory block, including the main application code and calibration data.
    • Why this matters: Some tools allow "packet" extraction, but for mapping, you often need the full flash or specific sections (like the map file). A full flash read ensures you have all necessary data segments.
  4. Save the resulting binary file to your computer. Note the filename and size.

Inspection point: Confirm that the Ktag successfully identified the ECU name and version. If it only finds the "ECU name" but cannot load it into WinOLS, the issue is likely a mismatch between the file format (e.g., .bin vs. .map) or the specific ECU generation not being supported by your software version.

Step 2: Identify the correct map file for mapping software

WinOLS and ECM Titanium do not always recognize raw flash dumps directly. They require specific calibration files, often referred to as "maps" or "Ols/ECM files."

  1. Open WinOLS (or your preferred tool).
  2. Import the flash data you extracted in Step 1.
    • If the tool allows importing raw .bin files, do so first.
  3. Look for the Map section or Calibration Data.
    • In many HDI ECUs (e.g., 9H6, 9C6), the map data is embedded within the flash but requires specific parsing.
  4. Check if the tool displays the ECU name and version correctly.
    • Common issue: If you see the ECU name but no maps appear, the software may not support that specific ECU variant, or the file needs to be converted.
  5. Alternative approach: Search for existing map files online using your exact ECU name and version (e.g., "9H6 HDI WinOLS map"). Compare these files with your extracted data to ensure you have the correct baseline before tuning.

Decision point: If WinOLS fails to parse the flash, try importing a known-good .map file for your ECU variant from a trusted source. This helps verify if the issue is with your extraction or the software's support.

Step 3: Verify functionality and test modifications (e.g., EGR off)

Once you have a valid map loaded in WinOLS, you can make adjustments and write them back to the ECU.

  1. Baseline check: Before making changes, verify that the current parameters match your vehicle's expected behavior.
  2. Apply modification: For example, if you want to disable the EGR, locate the EGR valve control map or duty cycle setting in WinOLS. Set it to a value that effectively closes the valve (e.g., 0% duty cycle).
    • Note: Some ECUs have separate maps for different operating conditions (cold start, cruise, etc.). Ensure you modify all relevant sections.
  3. Write to ECU: Use Kess/Ktag to write the modified map back to the ECU.
  4. Test drive and inspect:
    • Start the engine and monitor idle behavior.
    • Check for smooth acceleration and no hesitation.
    • Monitor diagnostic codes (DTCs) to ensure no new faults appear due to EGR bypass (e.g., O2 sensor discrepancies or exhaust gas recirculation-related codes).

Verification checks:

  • No DTCs: After a full test cycle, scan for stored or pending fault codes.
  • Smooth operation: The engine should run smoothly without surging or stumbling.
  • Data consistency: Re-read the ECU to confirm the written map matches your intended changes.

Troubleshooting and pitfalls

  • "ECU name found but no maps": This usually indicates that your mapping software does not support the specific ECU variant. Check for software updates or look for alternative tools that support HDI ECUs (e.g., LMG, SBC).
  • Ktag fails to read flash: Ensure the Kess is properly connected and recognized by Ktag. Try a different OBD-II port or cable if possible. Some vehicles require specific authentication steps in Ktag before reading.
  • EGR off causes rough idle: If disabling EGR leads to poor idle quality, consider adjusting the idle air control or using a more gradual reduction rather than a complete bypass. Also, verify that the EGR valve itself is functioning properly (if not disabled).

Final note

The success of your mapping depends heavily on having the correct baseline map for your specific ECU variant. If you cannot find pre-made maps for your ECU name/version, start with a clean flash read and use tools like LMG or SBC to parse the data before attempting to write back modifications. Always keep a backup of the original map file before making changes.