NefMoto

Technical => Reverse Engineering => Topic started by: ecuprog7 on February 24, 2026, 07:20:22 AM



Title: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: ecuprog7 on February 24, 2026, 07:20:22 AM
Hi
I´ve done some more work on the old 87C196KR. I made a parser to generate asm files from a binary of the M3.2, M3.8, M5.4, M5.9.
Project is with sybmols to Jumps and Calls so just make changes and hit compile, rl96 and compiler script will do the magic for segment references.
Segment Jumps are detected but backjumps can be wrong. Data parsing is not done by now.
Checksums are also not done. Any information about checksum calculation on these old ecus would be nice.
https://github.com/EcuProg7/M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project (https://github.com/EcuProg7/M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project)


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: _nameless on February 25, 2026, 08:25:20 PM
Forked
https://github.com/ugtuner05-sys/UGT-MOTRONIC-DISASSEMBLER/releases/tag/UGT


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: eliotroyano on March 18, 2026, 11:32:20 AM
Hi. Nice to see some work/projects with that old Motronics.....


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: overspeed on March 18, 2026, 12:02:05 PM
Would be REALLY nice if someone could make it speed density instead of MAF based.

it´s a  pain in the ass to find original MAF sensor nowdays


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: error1997 on March 18, 2026, 12:05:25 PM
Would be REALLY nice if someone could make it speed density instead of MAF based.

it´s a  pain in the ass to find original MAF sensor nowdays
I just put one HFM5, calibrate it, fine tune with 2-3 files and its done.


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: eliotroyano on March 18, 2026, 12:10:47 PM
Would be REALLY nice if someone could make it speed density instead of MAF based.
it´s a  pain in the ass to find original MAF sensor nowdays

Hi Junior, maybe I am dreaming but add wideband O2 support to that speed density idea and you have a nice, simple and robust ECU that could control big projects too.


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: overspeed on March 18, 2026, 12:23:59 PM
I just put one HFM5, calibrate it, fine tune with 2-3 files and its done.

Did it sometimes in the past, but even those MAF are getting difficult do find, and cost are rising in my country

Hi Junior, maybe I am dreaming but add wideband O2 support to that speed density idea and you have a nice, simple and robust ECU that could control big projects too.

Don´t think there is the necessary HW on those to run a Wideband sensor


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: eliotroyano on March 18, 2026, 12:28:01 PM
Did it sometimes in the past, but even those MAF are getting difficult do find, and cost are rising in my country
Don´t think there is the necessary HW on those to run a Wideband sensor

5V signal from a WB controller going into some ECU input.


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: marantzvieta on April 23, 2026, 06:53:03 AM
Hi
I´ve done some more work on the old 87C196KR. I made a parser to generate asm files from a binary of the M3.2, M3.8, M5.4, M5.9.
Project is with sybmols to Jumps and Calls so just make changes and hit compile, rl96 and compiler script will do the magic for segment references.
Segment Jumps are detected but backjumps can be wrong. Data parsing is not done by now.
Checksums are also not done. Any information about checksum calculation on these old ecus would be nice.
https://github.com/EcuProg7/M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project (https://github.com/EcuProg7/M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project)

Hi agian mate, I just got hold of a flash emulator to use with these ECUs as well as ME7s, as I have been tuning big turbos lately and it speeds up the process a ton.

I haven't had the time to dig into your work, like the Minimon Core you built previously, but if I can contribute testing with the emulator and catch up from there to help you develop, please let me know. I've been looking forward to develop more for the M3.8 platform.

Congrats on your work! Best regards.


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: marantzvieta on April 23, 2026, 02:46:24 PM
I have observed that, at least UGT's dissassembly tool does not analyze correctly the checksums for M3.8 bins.

I have no idea why but does not work with M3.8.2 nor M3.8.3 with good known files.

Could this be improved by disassemblying the WinOls checksum dll? (Which I have)

Best regards,


Title: Re: M3.2-M3.8-M5.4-M5.9-Binary-to-asm-Project
Post by: ecuprog7 on April 24, 2026, 04:00:18 AM
Hi, i´ve not done checksums by now, i found this ref:
https://github.com/olegm382/IronFelix/blob/master/Source/me3x_dll/module2.cpp (https://github.com/olegm382/IronFelix/blob/master/Source/me3x_dll/module2.cpp)
Any help on checksums would be nice.