Results 1 to 5 of 5

Thread: Finding Addresses In Bin Files

  1. #1
    Member
    Join Date
    Mar 2022
    Posts
    56

    Default Finding Addresses In Bin Files

    Hello, I have some questions hopefully someone can help with. I'm somewhat new to tuning, and trying to learn all I can. I would like to be able to make my own cax files, but I can't figure out how to find address numbers in raw hex files. I've looked through some bin files in a hex editor program, but for the life of me I can't see how guys find them. Is there any software in particular that helps? I've even looked through Snipesy's E47 cruze cax files (BTW, thanks for those Snipesy, you're awesome). Any help is really appreciated. I'm trying to make LML files right now, but if I get successful with that I'll probably try other controllers too.

    IDK, maybe I'm in over my head. If someone would sell me cax files, I'd be open to that option too.

  2. #2
    Lifetime Member
    Join Date
    Jul 2003
    Posts
    1,897

    Default

    You have to know what you are wanting to find for starters. It is not something that you just go blindly looking for. Otherwise it will be a needle in a hay stack. If you want to be targetted you need to disassemble the file and then figure it out from there... It is a steep learning curve but very rewarding.
    "All that is needed for the triumph of evil is that good men do nothing..."

  3. #3
    Member
    Join Date
    Mar 2022
    Posts
    56

    Default

    Ok, thanks. That explains my problem. How do I go about disassembling my files? Sorry if I'm asking stupid questions, but I'm not sure how else to learn.

  4. #4
    Joe (Moderator) joecar's Avatar
    Join Date
    Apr 2003
    Posts
    28,403

    Default

    You have to know which CPU your ECM is using.
    Then you obtain a disassembler (which comes bundled with embedded code development tools, you will probably have to buy several of these tool bundles/suites).
    Then you convert the tune file into straight binary (i.e. decrypt and/or decompress it).
    Then you disassemble the the binary...
    and you can now look thru it (assuming you already know the assembly language and register layout for this CPU);
    you would locate the execution start (usually called main()),
    you would then follow the path execution would take try to locate where it appears index into a slab of memory
    (i.e. it multiples and adds to an address several times (to skip columns/rows) and then uses this address to access the data there)...
    you then look further around in this memory region to find other tables.
    Somewhere there may be visual tools that show the data in 2D/3D graphic form, this helps in finding tables,
    but you still need to know what data you are looking for, as highlander said above
    (e.g. if you're looking for VSS/TPS shift tables, you already know what these should look like, this helps you find them).

    If you've done that before (and are quite familiar with this family of ECM's), it still takes time and effort.
    If you already are an embedded software engineer, it still takes time and effort.
    If you haven't done this stuff before, it will take ALOT of time/effort.
    The level of difficulty is considered to be high, and you have to devote a lot of time to it.
    But, as highlander said, it is very rewarding...
    you get to learn and understand the data layout and how the CPU accesses that data, how the algorithms work, and you may even venture to modify the algorithms.

  5. #5
    Member
    Join Date
    Mar 2022
    Posts
    56

    Default

    Thanks a lot Joecar. I think that gives me all the info I need, now I just have to put the time in. I appreciate the time you took to help out a newbie like myself, even though there's nothing in it for you.

Similar Threads

  1. Replies: 18
    Last Post: April 20th, 2016, 04:22 AM
  2. Bin files and hex editors
    By turbo_bu in forum CAX Files
    Replies: 4
    Last Post: October 11th, 2013, 04:17 PM
  3. How to read BIN files from ECM?
    By engimuneer in forum General
    Replies: 7
    Last Post: November 20th, 2011, 03:53 PM
  4. bin files
    By limited cv8r in forum EFILive V4
    Replies: 1
    Last Post: August 6th, 2007, 08:25 AM
  5. Why can't I download bin. files???
    By Chris81 in forum General (Petrol, Gas, Ethanol)
    Replies: 6
    Last Post: December 22nd, 2005, 01:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •