(04-10-2025, 11:11 PM)DeereTech Wrote: Can you tell more about what you are trying to archieve? Its always cool when people with real coding skills try out new things 
All modern phoenix controller can only be read out partial - no matter if filesize is 512kb or 4096kb. Empty space is just filled up.
I can provide you both Boot-mode full readout, and BDM for older phoenix controllers and also payload files if needed.
Be avare that in payload files - the system code is also already compiled!
Real coding skill ? I may have a different opinion lol ! The idea is to offer a transparent view into the rules of each DTCs, basically having a visual flow that tell "This pressure reading sensor give
true, knowing that the engine speed sensor indicate
0, and ignition is
ON, therefore,
engine oil pressure detected with engine not running" instead of having "Code caused by: Engine oil pressure detected with engine not running. The oil pressure switch is closed when key is in ON position and no engine speed is registered. Open circuit or short to ground fault is indicated." The two means the same thing but I believe the first is more honest and allow you to understand more deeply what actually is taking place but its also a reason to do some reversing I'm not going to lie lol.
Well, Pilsneer gave me three unencrypted PLDs as well as binary dumps of what seems to be partial read out with blank data (FF) surrounding the main content but to be honest I haven't achieved anything yet, the PLDs mainly contains binary stuff encoded as text (motorola S record) with either what looks like arrays (so maps etc) and high entropy blob that I guess the FOCUS dlls play a role in decyphering/decompressing that, but so far I only tried binwalk on it and its giving me false positives so if you have full readoud, I would take them but I may be lacking the skill currently to open them lol. I thought it would be as easy as opening IDA and selecting the memory regions but guess not lol.
Also what do you mean by "the system code is already compiled" ? Are you referring to how a PLD is encrypted (when having a .PLD extension) ?
Because once decrypted (in my case they were not) they contains "opcodes" which are coupled to an xml that contains the definition (I guess) of each of them such as :
Code:
!// Set fuel growth operation time to zero if not restored
FuelGrowthMarkerTotalOperationTime:<restore_nowarn>0</restore>
!// Set total cold start aid used to zero if not restored
TotalColdStartAidUsed:<restore_nowarn>0</restore>
which are in the xml defined as :
Code:
<parameter name="FuelGrowthMarkerTotalOperationTime">
<feature feature="" name="" group="Fuel System"/>
<source file="" variable=""/>
<description></description>
<memory address="4245184" size="4" byteorder="MSB"/>
<access read="1" write="3"/>
<scalar format="Fixed" signed="false">
<formula units="sec" scale="Scale(x, 0)" unscale="Unscale(x, 0)"/>
<limits name="hard" min="0" max="4.294967295e+009"/>
<limits name="soft" min="0" max="4.294967295e+009"/>
<display resolution="1" base="10" places="0"/>
</scalar>
</parameter>
<parameter name="TotalColdStartAidUsed">
<feature feature="" name="" group="Application Outputs"/>
<source file="" variable=""/>
<description></description>
<memory address="4244992" size="4" byteorder="MSB"/>
<access read="1" write="3"/>
<scalar format="Fixed" signed="false">
<formula units="ml" scale="Scale(x, 10)" unscale="Unscale(x, 10)"/>
<limits name="hard" min="0" max="4194303.9990229998"/>
<limits name="soft" min="0" max="1000"/>
<display resolution="0.0009769999887794261" base="10" places="4"/>
</scalar>
</parameter>
My guess it that the PLDs contains a base firmware that then gets patched according to the profile of the machine it will run on, that include maps and sensors formatting from what I can tell.
Continuing on opcodes I have so much questions regarding them such as, why do they exist in the first place as anyone can change the speed from 40 to 50 for example lol but more than that, there is a mention of a password inside, and a dll (ECULP\EcuLpAppComponent5.dll) seems to use it along a "UnlockEcu" method somehow which, could open the door to live tuning or at least live memory editing in the same way as the opcodes/xml combo if my assumptions are correct ? Are there any talks about that ?