Pages: 1 ... 3 4 [5]
Author Topic: AutoIT script to simplify ME7 binary loading  (Read 78863 times)
dgpb
Full Member
***

Karma: +3/-3
Offline Offline

Posts: 176


« Reply #60 on: July 16, 2016, 10:40:57 AM »

Hi mates

I'm having problems loading the bin by using the script.

It seems it works as the different selections are automatically made. But when it finishes the only text I see is a ton of "db" instead of assembly instructions.

I assume I'm doing something wrong or there's a compatibility problem due to the 64bit architecture (Installed the 32bit version but my pc is 64bit).

Is there a guide to manually configure bin loadings? I don't need it to be automatic, what's more, I wanna know what I'm doing.

Sorry if the solution is pretty obvious, I'm totally noob with IDApro.
« Last Edit: July 16, 2016, 10:45:03 AM by diegogpb » Logged
prj
Hero Member
*****

Karma: +903/-420
Offline Offline

Posts: 5789


« Reply #61 on: September 30, 2016, 01:35:40 AM »

Code:
def a2l(filename):
lastvarname = ""
lastaddress = ""
with open(filename) as fp:
for line in fp:
line = line.strip()
if line.startswith("/begin MEASUREMENT "):
lastvarname = line[19:]
if line.startswith("KP_BLOB "):
lastaddress = line.split(' ')[1]
print(lastvarname + ' at ' + lastaddress)
idc.MakeNameEx(int(lastaddress, 0), lastvarname, 1)
return
Logged

PM's will not be answered, so don't even try.
Log your car properly.
Iloprvof
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


« Reply #62 on: October 16, 2016, 02:08:27 PM »

thats great.

On a slightly related topic, do you know how I can make the UirtTransmit function available to the AutoIt compiler?
Logged
QuickS4
Full Member
***

Karma: +6/-6
Offline Offline

Posts: 72


« Reply #63 on: March 11, 2018, 03:43:05 PM »

Updated this script.
Now you can load a ME7Logger .ecu file and it will name all the variables for you...
I'm using "Loadbin_idaq" and when loading flash I get stuck at this point where its entering the loading segment "0x80000", what happens is it adds a "g" into that line, then halts.  I've looked at the script, tho it doesn't appear to be out of place. I'm not sure how to proceed.

Second part, when using the load .ecu, it runs, however gives me this Syntaxerror: invalid syntax.  I've attached photos of both issues.



Sent from my Pixel XL using Tapatalk

Logged
prj
Hero Member
*****

Karma: +903/-420
Offline Offline

Posts: 5789


« Reply #64 on: March 11, 2018, 04:35:58 PM »

Don't use this, deprecated. Look at my IDA python script collection instead.
Logged

PM's will not be answered, so don't even try.
Log your car properly.
QuickS4
Full Member
***

Karma: +6/-6
Offline Offline

Posts: 72


« Reply #65 on: March 11, 2018, 05:18:01 PM »

Don't use this, deprecated. Look at my IDA python script collection instead.
Alright I'll search for it. Unless you got a link. Lol

I figured out it needed another "enter" and such in the script. 

I'll just use the one you mentioned.

Sent from my Pixel XL using Tapatalk

Logged
QuickS4
Full Member
***

Karma: +6/-6
Offline Offline

Posts: 72


« Reply #66 on: March 11, 2018, 06:01:12 PM »

Hate having to ask this. Where can I find your collection?  I tried searching here for it, however I didn't find it. Either because I'm not searching the right keywords or because the search function doesn't like me. 



Sent from my Pixel XL using Tapatalk

Logged
prj
Hero Member
*****

Karma: +903/-420
Offline Offline

Posts: 5789


« Reply #67 on: March 12, 2018, 04:20:51 AM »

http://nefariousmotorsports.com/forum/index.php?topic=13749.0title=

Mods should sticky that and unsticky this old stuff instead.
Logged

PM's will not be answered, so don't even try.
Log your car properly.
QuickS4
Full Member
***

Karma: +6/-6
Offline Offline

Posts: 72


« Reply #68 on: March 13, 2018, 08:41:38 PM »

Thanks PRJ.  Can I paste this into your existing script I have, and place it under one of the button functions?  Would that suffice to run it?

Reading the script you linked, I can't quite understand it yet or run it.

The previous one, I was able to get the gist of it and correct some of the errors that would pop up on me. Made some changes like "Enter" where it would stall.  Otherwise the E0 error I haven't figured out yet. For segment setup.

Sent from my Pixel XL using Tapatalk
Logged
TijnCU
Hero Member
*****

Karma: +60/-4
Offline Offline

Posts: 690


flying brick


« Reply #69 on: March 14, 2018, 11:25:03 AM »

You should use IDApython for this code. It is a plugin that you can download.
Logged

QuickS4
Full Member
***

Karma: +6/-6
Offline Offline

Posts: 72


« Reply #70 on: March 17, 2018, 03:05:16 PM »

You should use IDApython for this code. It is a plugin that you can download.
Thank you Tijncu, I've not played with plugins yet in Ida. I'll have to see about how to implement that into Ida.

Sent from my Pixel XL using Tapatalk

Logged
kruftindustries
Full Member
***

Karma: +1/-1
Offline Offline

Posts: 50



« Reply #71 on: August 26, 2021, 03:53:03 PM »

This one will define and name map addresses from an un-encrypted XDF file. Has the part that loads the bin removed so you'll need to get that part from a previous post above.
Logged
Pages: 1 ... 3 4 [5]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.034 seconds with 17 queries. (Pretty URLs adds 0.001s, 0q)