PDA

View Full Version : Segment Swaps



mecanicman
09-10-2014, 09:03 PM
A former member of forum posted once upon a time about segement swaps and how he would post a how too for them. Never happened. But it did motivate me to figure it out on my own with some clues he dropped. I know a number of you are more advanced then me in the programming department and probably already have this knowledge. But if there is enough interest I will throw together a how too as once you have the required info its pretty quick and easy.

You would need a hex editor program that can select and copy blocks or large area of data, Hex Workshop is only one I have found that allows me to do this but there are likely others out there. It is available as 1 month free trial and not terribly expensive to buy.

You would need .bin format files with same o/s containing the segments you want to swap.

You would need the segment locations mapped out for starting and ending points, which I have mapped for 12212156 0411 pcm and 12579405 p59 pcm(although it appears the 1mb pcm are the same from what I have seen).

If you have the first 2 items, and are interested in a how to let me know and I will put it together.

ericjon262
09-11-2014, 01:32 AM
always interested in how to's!

mecanicman
09-11-2014, 02:51 AM
IF YOU CHOOSE TO FOLLOW THIS TUTORIAL, YOU DO SO AT YOU OWN RISK!!!!!!!!!! NOT DOING IT PROPERLY WILL LOCK UP YOUR PCM PERMANENTLY!!!!!!!!!!!!!!!!!!!!

My demo will be swapping a 4l80 segment into 2003 Silverado SS. As you can see I am using a compatible 2003 2500 file to get the 4l80 file from, o/s nubmer must match.

http://i1381.photobucket.com/albums/ah234/meknikman/Pic1_zps2aecfe3c.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic1_zps2aecfe3c.jpg.html)

http://i1381.photobucket.com/albums/ah234/meknikman/Pic2_zps04410e7b.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic2_zps04410e7b.jpg.html)

I will be using Hex Workshop, you can use something else but has to have ability to copy blocks or location to location data. I typically use Notepad++, but I was not able to get this to work with it. Load both files. Select your first file and use the goto command under edit tab, we need to go to 18f90. Click all the settings in the goto box the same way I have them.

http://i1381.photobucket.com/albums/ah234/meknikman/Pic3_zpsf80997ac.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic3_zpsf80997ac.jpg.html)

Now to select our segments, we are copying both the trans and trans diagnostic segments, under edit choose select block. You want to go to 1dbcf, make sure your options in select block are same as picture.

http://i1381.photobucket.com/albums/ah234/meknikman/Pic4_zps2f2c9f9d.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic4_zps2f2c9f9d.jpg.html)

You should now have a black highlighted area of your file. Switch the other file and repeat procedure. The addresses and settings should already be there. Now go Edit copy on the file that has the segments you want.

http://i1381.photobucket.com/albums/ah234/meknikman/Pic5_zps5537668d.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic5_zps5537668d.jpg.html)

And switch back to the file you want the segments in and go Edit Paste.

http://i1381.photobucket.com/albums/ah234/meknikman/Pic6_zps0c7c638a.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic6_zps0c7c638a.jpg.html)

Save this file under a new name and your done. The file passes HPT validation checks, here is pic showing that the file is indeed swaped.

http://i1381.photobucket.com/albums/ah234/meknikman/Pic7_zpscbada366.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic7_zpscbada366.jpg.html)

http://i1381.photobucket.com/albums/ah234/meknikman/Pic8_zps140c78b3.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic8_zps140c78b3.jpg.html)

And screen shot from efi live showing the checksums in order.

http://i1381.photobucket.com/albums/ah234/meknikman/Pic9_zps42508ba2.jpg (http://s1381.photobucket.com/user/meknikman/media/Pic9_zps42508ba2.jpg.html)

I have done 2 swaps like this that I have no problems with. Below are the segment locations for 0411 12212156 and p59 1mb 12579405. From looking I think the 1mb pcm seems to be the same, but the 0411 pcms seem to have some variance.

Segment Start/End 1MB PCM
Segment 1 – 500 – 7fff Operating System
Segment 2 – 8000 – 15dff Engine
Segment 3 – 15e00 – 18f8f Engine Diagnostics
Segment 4 – 18f90 – 1d26f Trans
Segment 5 – 1d270 – 1dbcf Trans Diagnostics
Segment 6 – 1dbd0 – 1f18f Fuel System
Segment 7 – 1f190 – 1fb4f System

512KB Binary Breakdown
0x00000 - 0x03FFF Segment 1 (Operating Sys) First Part
0x04000 - 0x07FFF - FF's
0x08000 - 0x12DFF Segment 2 (Engine)
0x12E00 - 0x169FF Segment 3 (Engine Diag)
0x16A00 - 0x1B9FF Segment 4 (Trans)
0x1BE00 - 0x1C2FF Segment 5 (Trans Diag)
0x1C300 - 0x1D07F Segment 6 (Fuel Sys)
0x1D080 - 0x1D9FF Segment 7 (System)

ShaunSummer
01-04-2017, 11:02 PM
im trying to do this exact segment swap that you did in my 2003 silverado ss. bought the truck with a blown trans and decided to just do a 80e. i ran into a issue though my stock ecm is locked so i cant pull the stock tune. was wondering if you might be willing to share the one you used for this demo. or maybe even the already segment swapped one?

mecanicman
01-05-2017, 09:40 PM
That was over 2 years ago, I didnt keep the files. The 03 ss file I used can be found here http://www.gearhead-efi.com/Fuel-Injection/showthread.php?1514-2003-TunerPro-Bin-Files and efi live can swap it for you.

chaingun427
09-13-2019, 07:14 AM
sorry to necro this thread but it's the only info i can find about segment swapping outside a commercial utility. I'm attempting to swap the code for a manual transmission to an auto calibration on an 0411, OS 12212156 . above notes that Trans section starts at 0x16a00, and including Trans Diag, ends at 0x1c2ff. in the calibration i have, i've got 00016a05 through 0001c2fd, is this the same code block, or do i not have something displaying correctly in Hex Workshop


i may be an idiot there, think i figured out what i was doing wrong, in any case, if i copy from 00016a00 through 0001c2ff, and load the binary in EFI live to verify the checksum, engine and trans diagnostics no longer match. is this normal? afraid to flash the binary like this and brick the pcm

SS2win
09-16-2019, 03:38 PM
chaingun427, I'm considering doing this with a 12216125 OS because I can't find an OEM with manual trans but why bother with 12212156? there are already stock cals out there you can seg swap from easy peasy under edit "copy entire segment".

chaingun427
09-16-2019, 03:51 PM
chaingun427, I'm considering doing this with a 12216125 OS because I can't find an OEM with manual trans but why bother with 12212156? there are already stock cals out there you can seg swap from easy peasy under edit "copy entire segment".

The tool I use to write my binaries, afaik, only supports writing the same os as the pcm already has. But I figured out another way. I have a 6.0 manual bin if you want it

SS2win
09-16-2019, 04:41 PM
for 12216125? yeah that would be great. not super excited to raw dawg segments when I have no idea know what I'll get ...

chaingun427
09-16-2019, 11:28 PM
This was done with commercial software so no worries, as soon as i get home i'll upload it

SS2win
09-17-2019, 03:47 AM
That's great. Thanks

GhostChevy
05-27-2024, 04:25 AM
Wassup guys. This thread intrigued me. Could I use a bin from an 02 2wd silverado m/t and swap to work with the Muncie I have. I'm completely new to this.I don't see why theoretically it wouldn't work out. I currently have a Lm7 and the pcm is a 411 with an 02 Tahoe bin. I just want to get back on the road with no issues and could use all the help I could get.

dave w
05-27-2024, 08:12 PM
Wassup guys. This thread intrigued me. Could I use a bin from an 02 2wd silverado m/t and swap to work with the Muncie I have. I'm completely new to this.I don't see why theoretically it wouldn't work out. I currently have a Lm7 and the pcm is a 411 with an 02 Tahoe bin. I just want to get back on the road with no issues and could use all the help I could get.

The LM7 does not have a manual transmission Operating System.

For engines with Operating Systems that actually have automatic or manual transmissions like the 4.8 and 6.0 using a segment swap doesn't work. The parameters for Declaration Fuel Cutoff (DFCO) Automatic vs. Manual are different enough to cause unwanted drivability headaches, because a clutch / flywheel assembly will have a very different "Coast" than an oil filled torque converter. The segment swap will "Wholesale" swap all the DFCO parameters from the LM7 / Automatic .bin into a Manual .bin Operating System.

Often a good plan for using a LM7 / Manual transmission drivetrain is to start with either a 4.8 or 6.0 manual Operating System and hand pick the essential LM7 engine parameters (displacement, fuel tables, and spark tables) into the manual Operating System.

GhostChevy
05-28-2024, 12:50 AM
Thank you so much. That makes complete sense. That being said, are you saying i could use my spare ecm with an 02 tahoe bin and xdf and get the bin for a 6.0/ 4.8 manual,rewrite it, then edit and I would be good to go? I just want to be absolutely sure I'm on the right track. I have and obdx pro gt adapter with and android tablet and I'm in process of the learning curve part of the journey. The next question I would have is if the bin has to match or can it be overwritten with another. Thanks again brotha for your wisdom in advance.

dave w
05-28-2024, 05:50 AM
Thank you so much. That makes complete sense. That being said, are you saying i could use my spare ecm with an 02 tahoe bin and xdf and get the bin for a 6.0/ 4.8 manual,rewrite it, then edit and I would be good to go? I just want to be absolutely sure I'm on the right track. I have and obdx pro gt adapter with and android tablet and I'm in process of the learning curve part of the journey. The next question I would have is if the bin has to match or can it be overwritten with another. Thanks again brotha for your wisdom in advance.

The attached .bin file is 4.8 Liter with Manual Transmission.
Operating System: 12212156
MG5 TRANSMISSION,MANUAL 5-SPEED(GETRAG)
LR4 ENGINE GAS, 8 CYL, 4.8L, MFI

Other .bin files available here: http://www.gearhead-efi.com/Fuel-Injection/showthread.php?1513-2002-TunerPro-Bin-Files
The attached is from Post #9
Post #11 has a 6.0 with Manual Transmission.
Post #52 might be an option, see rebuttable on Post #54.

GhostChevy
05-28-2024, 11:33 AM
Sweet!

dave w
05-28-2024, 05:02 PM
Thank you so much. That makes complete sense. That being said, are you saying i could use my spare ecm with an 02 tahoe bin and xdf and get the bin for a 6.0/ 4.8 manual,rewrite it, then edit and I would be good to go? I just want to be absolutely sure I'm on the right track. I have and obdx pro gt adapter with and android tablet and I'm in process of the learning curve part of the journey. The next question I would have is if the bin has to match or can it be overwritten with another. Thanks again brotha for your wisdom in advance.

I'm unable to provide answers for the flash questions. I use commercial flash tools (aka - pay-per-view flash tools). Pay-per-view flash tools can safely "rewrite" the Operating System.

Perhaps this thread will be helpful: http://www.gearhead-efi.com/Fuel-Injection/showthread.php?9616-New-LS1-Tuning-Tool-Universal-Patcher

GhostChevy
06-04-2024, 06:23 PM
Thank you so much for the help. I can't wait to drive my truck again ��

GhostChevy
06-09-2024, 02:02 AM
Hello again. Well, my problems don't stop, but I'm definitely determined to keep moving forward. Now my issue is that my tablet won't let me download Tuner Pro or Universal Patcher. It's all I have and I'm kinda bummed. However I'm able to download the bin to LS Droid via my phone and flash my ECU. I just need help getting the right OS with the parameters I need changed for my truck to run. Someone, anyone please help a brotha out. I don't have much but I'm willing to pay whatever I can for help.

kur4o
06-09-2024, 05:07 PM
You need windows PC to run the programs, Tablet is no good for tuning[zero support].

2xls1
06-09-2024, 08:10 PM
There are good $100 windows based laptops all the time on Craigslist. If you can't afford a $100 laptop you probably shouldn't be trying to tune your project.