=======================================================
Get the latest EXE here:
DefToIdc.exeGrab sources here:
https://github.com/aalesv/DefToIdc8=======================================================
This utility will only be useful to people who are reverse engineering their ECUs with IDA Pro. It uses ECU definitions xml file and logger definitions xml file to call IDA's MakeName function for all of the defined Tables, SSM & Extended parameters. This makes reverse engineering far easier.
This is fork of
XmlToIdc. It converts RomRaider ECU and logger definitions, EcuFlash and ScoobyRom definitions to IDC script. Also it has options to specify file names and dirs.
To build it from source you need to install .NET SDK 8. Also you'll need System.CommandLine
v2.0.0-beta3.22114.1 NuGet package. Get it (and other packages if required) from NuGet gallery. Run
build.bat from sources dir.
Code:
Usage:
DefToIdc [command] [options]
Options:
-a, --all-defs-dir <all-defs-dir> Directory where ECU defs, logger defs and .dtd file are placed.
-l, --logger-dir <logger-dir> Directory where logger defs and .dtd file are placed.
-e, --ecu-defs <ecu-defs> ECU definitions file name. [default: ecu_defs.xml]
-g, --logger-defs <logger-defs> Logger definitions file name. [default: logger.xml]
-d, --logger-dtd <logger-dtd> Logger dtd file name. [default: logger.dtd]
--keep-cal-id-symbol-case Keep CAL ID symbol case, do not transform to uppercase
--version Show version information
-?, -h, --help Show help and usage information
Commands:
t, tables <cal-id> Convert tables only.
s, stdparam <cpu> <target> <cal-id> <ssm-base> Convert standard parameters only.
e, extparam <cpu> <target> <ecu-id> Convert extended parameters only.
m, makeall <target> <cal-id> <ssm-base> Convert all - tables, standadrd parameters, extanded parameters.
ecuf, f <filename.xml> Convert EcuFlash xml definitions file.
c, scoobyrom <filename.xml> Convert ScoobyRom xml definitions file.
Version 1.2.10
Improved handling of “rom” and “xmlid” elements. Error messages have become more user-friendly. Added ability to convert ScoobyRom definitions.
Version 1.2.9.6
Improved inherited defs handling.
Version 1.2.9.4
Script improved: added wrapper to MakeNameEx to avoid "Can't rename tail byte" error.
Version 1.2.9.2
Fixed analyzer's warnings. Added error handling and human readable error messages. Refactoring.
Version 1.2.9.1
Option --keep-cal-id-symbol-case added. Added fix to “Can’t rename tail byte” error. Better inherited ROM tables handling.
Version 1.2.9
I took XmlToIdc ver 1.2.7 binary, decompiled it, added command line parser and recompiled it. No new features, no bug fixes. The only thing I did is I got rid of message boxes - all errors are printed to stderr.
Here's example of using it:
Code:
DefToIdc.exe makeall ecu AZ1J500V 0005C1B8 --ecu-defs D:\Subaru\Defs\RR_AZ1J500V_Rev3.xml --logger-dir "C:\Program Files (x86)\RomRaider" > AZ1J500V.idc