Hidden away in the RomRaider Logger is a module that will read and write (program) a CAN enable ECU ROM memory image in binary format.
This only works with a J2534 interface cable (such as the
Tactrix openport 2.0).
These commands are best issued from a command prompt window.
To check comms with the ECU:- Open a command prompt window
- Change to the directory where RomRaider is installed (by default: C:\Program Files (x86)\RomRaider\)
- Issue this command (assumes Java is on the path):
Code:
java -Djava.library.path=lib/windows -cp RomRaider.jar com.romraider.io.j2534.api.TestJ2534NCS <J2534_library>
where:
<J2534_library> is the library name for your J2534 cable, for example: op20pt32 or MONGI432 or /usr/local/lib/j2534.so
It will report back some ECU info and try a few different UDS modes to see what replies and what does not.
To Read the ECU:- Open a command prompt window
- Change to the directory where RomRaider is installed (by default: C:\Program Files (x86)\RomRaider\)
- Issue this command (assumes Java is on the path):
Code:
java -Djava.library.path=lib/windows -cp RomRaider.jar com.romraider.io.j2534.api.TestJ2534NCS <J2534_library> r <start_address> <length>
where:
<J2534_library> is the library name for your J2534 cable, for example: op20pt32 or MONGI432 or /usr/local/lib/j2534.so
<start_address> is the memory address (in hex or decimal) to start reading from, use 0 to start at the beginning
<length> is the length (in hex or decimal) of memory to read 524288 for a 512kB ROM, 1048576 for a 1024kB ROM, etc.
If you use hex values they must start with 0x
When the read is complete a file with the name of the <ecuid>_read.bin will be saved to your Windows %HOME% directory
To Write to the ECU:Make sure the car's battery is fully charged or you have a battery charger connected and running, you've been warned!
There is a Test mode that tries all the commands except the erase and write portions,
I suggest you use it.
To Test:
Code:
java -Djava.library.path=lib/windows -cp RomRaider.jar com.romraider.io.j2534.api.TestJ2534NCS <J2534_library> t <path/filename>
where:
<path/filename> is the full path to the binary file to test write, use quotes around it if it has spaces in the path or name.
To write, after a successful test:
Code:
java -Djava.library.path=lib/windows -cp RomRaider.jar com.romraider.io.j2534.api.TestJ2534NCS <J2534_library> P <path/filename>
where:
<path/filename> is the full path to the binary file to test write, use quotes around it if it has spaces in the path or name.
A sample batch file is below, which you can save into your RomRaider installation directory and then edit as you desire. The default is set to read a 1MB ROM from the ECU.