RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 2:11 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: UTILITY: DefToIdc generates IDC from ecu and logger defs
PostPosted: Mon Jan 29, 2024 8:39 am 
Offline
RomRaider Donator

Joined: Fri Aug 26, 2016 4:21 am
Posts: 153
=======================================================
Get the latest EXE here:
DefToIdc.exe

Grab 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

_________________
2Boost Subaru mod


Top
 Profile  
 
 Post subject: Re: UTILITY: DefToIdc generates IDC from ecu and logger defs
PostPosted: Fri Mar 22, 2024 9:05 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Does this work to convert 16bit ROM defs to IDC?


Top
 Profile  
 
 Post subject: Re: UTILITY: DefToIdc generates IDC from ecu and logger defs
PostPosted: Sat Mar 23, 2024 3:50 am 
Offline
RomRaider Donator

Joined: Fri Aug 26, 2016 4:21 am
Posts: 153
It' based on XmlToIdc, so yes. But honestly, I haven't checked thoroughly. Could you please take a look? I attached dissassemble and .idc script. Thank you!


Attachments:
File comment: A4TE001G dissassemble and .idc script
A4TE001G.zip [344.07 KiB]
Downloaded 20 times

_________________
2Boost Subaru mod
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl