Reflashing Subaru SH7058 ECUs using the Renesas boot mode
If a Subaru ECU becomes unresponsive due to an incorrect or incomplete reflash, it is possible erase and reflash the SH7058 CPU using the built in boot mode by utilizing some special hardware and EcuFlash. This page describes the procedure step-by-step. It is only recommended that you do this if you have reasonable electronics experience and can follow instructions and schematics carefully. Otherwise, permanent damage to the ECU can result.
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, or there are many FTDI based evaluation and prototyping modules which can be used. 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 to prevent the CPU from resetting.
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.
Turn on SH Boot Mode in EcuFlash
Go to File -> Options -> Flashing -> Flash Recovery Mode and check the box. Remember to uncheck this after you are done so that you can read and flash ECUs normally.
This will tell EcuFlash to use the SH boot mode method instead of the standard kernel based reflash method.
Load the ROM
Flash the ROM to the ECU
This is a slow process as compared to a standard reflash!
Turn off the SH Boot Mode in EcuFlash
Go to File -> Options -> Flashing -> Flash Recovery Mode and uncheck the box.