Dev Blog
Forum
Wiki
About
NefMoto
>
Technical
>
Reverse Engineering
>
error_flags setting workaround
Pages: [
1
]
« previous
next »
Author
Topic: error_flags setting workaround (Read 5202 times)
fknbrkn
Hero Member
Karma: +210/-24
Offline
Posts: 1507
mk4 1.8T AUM
error_flags setting workaround
« on: November 15, 2016, 02:27:18 PM »
hi
there is a little guide how to find a routine which activated error flags.
for example we interested in e_dk flag.
1. find
e_dk
in the ecu file (0x
383952
in my case)
same in IDA. you can see there is a few xrefs for reading this ram value but no one for a write. and there is a problem.
2. go upward to the first defined word, the undefined word above is start of the table.
this word used in
dtc_set routine
as the base for offset.
0x
383920
in my file (
= 0xB920
)
3. there is some math to find a routine where is the error_flag is set
in our case with
e_dk
it is
383952h
-
383920h
= 32h
divide it by 2 (32h/2 = 19h)
4. now search for #19h in IDA
multiple results can be found ofcourse.
we interested only in this
mov r12, #19h
go there and if your code looks like this
mov [-r0], r4
mov r12, #19h
calls 84h,
sub_12345
than its yours.
5. for sure, jump to the
sub_12345
and there should be some strings like
mov r5, #
0B920
h
yay
«
Last Edit: November 15, 2016, 02:50:22 PM by fukenbroken
»
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Introductions
=> General Discussion
-----------------------------
Noob Zone
-----------------------------
=> Noob Questions
=> Noob Guides and FAQs
-----------------------------
Technical
-----------------------------
=> NefMoto Software
=> Tuning
===> Documents & Helpers & How To's
===> Community Projects
=> Diagnostics
=> Flashing and Chipping
=> Cluster and Immobilizer
===> ECU EEPROM images
===> Original Cluster dumps
===> Original Cluster dump requests
=> Data Logging
=> Reverse Engineering
=> Communication Protocols
-----------------------------
ECU Files
-----------------------------
=> ECU Definition Files
===> ECU Definition File Requests
=> Original ECU Files
===> Original ECU File Requests
=> Checksum Update Requests
-----------------------------
Vehicles
-----------------------------
=> Vehicle Tech
=> Project Cars
-----------------------------
Regional
-----------------------------
=> Canadian Regional Discussion
=> US Regional Discussion
-----------------------------
Classifieds
-----------------------------
=> For Sale
=> Wanted
=> Services
-----------------------------
Miscellaneous
-----------------------------
=> Off Topic
=> Forum Tech Support
=> Bizarro Messages Posted by Bots and Spammers
Navigation
Home
Help
Login
Register
Personal Tools
April 13, 2025, 09:20:12 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced Search
Loading...