SHBootMode

From OpenECU

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
Reflashing Subaru SH705x ECUs using the Renesas boot mode
+
==Reflashing Subaru SH705x ECUs using the Renesas boot mode==
-
Summary
+
===Summary===
If a Subaru ECU becomes unresponsive due to an incorrect or incomplete reflash, it is possible erase and reflash the SH705x CPU using the built in boot mode by utilizing some special hardware and EcuFlash. This page describes the procedure step-by-step.
If a Subaru ECU becomes unresponsive due to an incorrect or incomplete reflash, it is possible erase and reflash the SH705x CPU using the built in boot mode by utilizing some special hardware and EcuFlash. This page describes the procedure step-by-step.
-
* Build the hardware
+
===Build the hardware===
You need to build a serial interface with which to talk to the CPU. The schematic for this interface is shown below. EcuFlash only supports FTDI based USB to serial interfaces. The schematic below shows what the interface must look like. You could build this by taking apart a FTDI-based USB to serial device and making the needed modifications. Basically, this is a simple TTL-level serial interface where the raw TXD and RXD signals are taken from the FTDI chip. There is also a 555 timer based circuit to provide the watchdog signal while in the boot mode.
You need to build a serial interface with which to talk to the CPU. The schematic for this interface is shown below. EcuFlash only supports FTDI based USB to serial interfaces. The schematic below shows what the interface must look like. You could build this by taking apart a FTDI-based USB to serial device and making the needed modifications. Basically, this is a simple TTL-level serial interface where the raw TXD and RXD signals are taken from the FTDI chip. There is also a 555 timer based circuit to provide the watchdog signal while in the boot mode.
-
* Connect the hardware to the ECU
+
===Connect the hardware to the ECU===
Make the connections diagrammed in the schematic. If the test points listed in the schematic (Pxxx) are not on your ECU PCB, you should be able to find the needed pads by tracing them from the CPU pins (also listed in the schematic).
Make the connections diagrammed in the schematic. If the test points listed in the schematic (Pxxx) are not on your ECU PCB, you should be able to find the needed pads by tracing them from the CPU pins (also listed in the schematic).
-
* Power the ECU
+
===Power the ECU===
You will also need to provide the ECU with +12V and ground on the power supply pins.
You will also need to provide the ECU with +12V and ground on the power supply pins.
-
* Obtain the ROM you wish to reflash the ECU with
+
===Obtain the ROM===
Since the boot mode is a write-only operation, you will need the complete ROM you intend to reflash the ECU with. Make note of the XML ID of this ROM as you will need to modify its XML metadata in the next step.
Since the boot mode is a write-only operation, you will need the complete ROM you intend to reflash the ECU with. Make note of the XML ID of this ROM as you will need to modify its XML metadata in the next step.
-
* Modify the XML
+
===Modify the XML===
Locate the XML file for the ROM you wish to use in your rommetadata directory. Temporarily change this line in your XML metadata file for the ROM you are using from:
Locate the XML file for the ROM you wish to use in your rommetadata directory. Temporarily change this line in your XML metadata file for the ROM you are using from:
   
   
Line 25: Line 25:
   
   
   <flashmethod>shbootmode</flashmethod>
   <flashmethod>shbootmode</flashmethod>
-
 
+
 
This will tell EcuFlash to use the SH boot mode method instead of the standard kernel based reflash method.
This will tell EcuFlash to use the SH boot mode method instead of the standard kernel based reflash method.
-
* Start EcuFlash
+
===Start EcuFlash===
You must start / restart EcuFlash to read the XML changes
You must start / restart EcuFlash to read the XML changes
-
* Load the ROM
+
===Load the ROM===
-
* Flash the ROM to the ECU
+
 
 +
===Flash the ROM to the ECU===
This is a slow process as compared to a standard reflash!
This is a slow process as compared to a standard reflash!

Revision as of 21:12, 5 June 2007

Contents

Reflashing Subaru SH705x ECUs using the Renesas boot mode

Summary

If a Subaru ECU becomes unresponsive due to an incorrect or incomplete reflash, it is possible erase and reflash the SH705x CPU using the built in boot mode by utilizing some special hardware and EcuFlash. This page describes the procedure step-by-step.

Build the hardware

You need to build a serial interface with which to talk to the CPU. The schematic for this interface is shown below. EcuFlash only supports FTDI based USB to serial interfaces. The schematic below shows what the interface must look like. You could build this by taking apart a FTDI-based USB to serial device and making the needed modifications. Basically, this is a simple TTL-level serial interface where the raw TXD and RXD signals are taken from the FTDI chip. There is also a 555 timer based circuit to provide the watchdog signal while in the boot mode.

Connect the hardware to the ECU

Make the connections diagrammed in the schematic. If the test points listed in the schematic (Pxxx) are not on your ECU PCB, you should be able to find the needed pads by tracing them from the CPU pins (also listed in the schematic).

Power the ECU

You will also need to provide the ECU with +12V and ground on the power supply pins.

Obtain the ROM

Since the boot mode is a write-only operation, you will need the complete ROM you intend to reflash the ECU with. Make note of the XML ID of this ROM as you will need to modify its XML metadata in the next step.

Modify the XML

Locate the XML file for the ROM you wish to use in your rommetadata directory. Temporarily change this line in your XML metadata file for the ROM you are using from:

 <flashmethod>sti05</flashmethod>

to:

 <flashmethod>shbootmode</flashmethod>

This will tell EcuFlash to use the SH boot mode method instead of the standard kernel based reflash method.

Start EcuFlash

You must start / restart EcuFlash to read the XML changes

Load the ROM

Flash the ROM to the ECU

This is a slow process as compared to a standard reflash!

Personal tools