PCM FLASH 224K TO QH 256K

All hardware related, disassembly / programming and code discussions belong here.
mechanicalmatch
Posts: 88
Joined: 2021 Apr 15, 10:56
Location: Spring Texas
Vehicle Information: 00 F150 4.6L Extended cab
CVAF1
4R70 3.08

PCM FLASH 224K TO QH 256K

Unread post by mechanicalmatch »

I am trying to convert a PCM flash read (224k) and convert it to 256k and swap the bank order to the correct order. The hex editor I am using is HXD.https://mh-nexus.de/en/hxd/
I want to learn this and dont really want someone to do it for me but help me understand what I am doing wrong.

I am using http://www.efidynotuning.com/dis.htm for reference

here is the read before any changes are made.
pcmflash_read.bin
(224 KiB) Downloaded 216 times
I load my 224k file into HXD. I am able to determine the bank order is in fact 1,8,0,9. The way I did it is by looking up the beginning byte for each bank, writing down the offset I found them at onto a piece of paper. Once I find all 4, I order them by the offset I found them at to determine the bank order.

One issue I am running into here is the ASCII string that is listed in the table does not match the ASCII characters in the "decoded text" of the hex editor. I had to search the hex bytes to find them.

Next I reference -
<<<----- How to Swap Bank Order ------>>>
PCMflash / Kess 224k [1-8-0-9] Files to 256k [0-1-8-9] QH

-add null filler infront each bank 0x8192 bytes at
0, 10000, 20000, 30000

So I "insert bytes" , bytecount 8192, hex boxed ticked, fill pattern Hex values ticked, "ff" in the value field.

I add them at offset 0,10000,20000,30000
FILLER ADDED.bin
(353.57 KiB) Downloaded 204 times
Next I "insert bytes", bytecount 65536, dec box ticked, (or i could do 0x10000 hex box ticked) fill pattern hex values ticked, "ff" in the value field.
i look at the file size and it did in fact add 65536 bytes
65536BYTES ADDED.BIN
(417.57 KiB) Downloaded 219 times
next cut 0x30000 to 3ffff
cut 0x30000 to 3ffff paste at 0x0.bin
(417.57 KiB) Downloaded 214 times
Next it says clear all null filler by setting it to 0xff
How do I do that?

Did I do it correct so far? Any words of advice here?
decipha
Posts: 4956
Joined: 2021 Feb 15, 12:23
Location: Metairie, LA
Vehicle Information: Work Truck
'19 F-150 3.3L

Re: PCM FLASH 224K TO QH 256K

Unread post by decipha »

you added the filler wrong

will be 256k with filler, i suspect when you click hex youd need to insert 0x2000 hex which is 8192 bytes.

if you cut 30-3f how do you have the same file size ? obviously its not cutting and is instead copying

no need in setting it to ff aince you did that when you added it
the hex editor i use doesnt allow you to define it instead any filler you add is 00
mechanicalmatch
Posts: 88
Joined: 2021 Apr 15, 10:56
Location: Spring Texas
Vehicle Information: 00 F150 4.6L Extended cab
CVAF1
4R70 3.08

Re: PCM FLASH 224K TO QH 256K

Unread post by mechanicalmatch »

-cut 0x30000 to 3ffff
-paste at 0x0

if we cut from 0x30 to 0x3f then paste at 0x0 file size would be the same. should i actually be just cutting and not pasting that to 0x0 and there is something else i should be pasting at 0x0?
decipha
Posts: 4956
Joined: 2021 Feb 15, 12:23
Location: Metairie, LA
Vehicle Information: Work Truck
'19 F-150 3.3L

Re: PCM FLASH 224K TO QH 256K

Unread post by decipha »

no it cant, cutting is deleting
Post Reply