PCMHammer P04

User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: PCMHammer P04

Post by Gampy »

I guess this is as good as place as any ...

The Repository is broken ... And has been since commit; 292f44f7 - 2023-08-26, Branden Butella : General cleanup of constants for communication (#331)
I merged this without doing proper validation and or testing, so it's my fault it's broke ... I also let the PcmHammer.csproj slide, unusual for me, must have been juiced up on Morphine or something, no excuses, I flopped it all the way around!

bubba2533, if you would look into this and resolve the issue it would be greatly appreciated.
The issue is causing ERR_BUFFER_EMPTY errors on reads ...

Thank you!

-Enjoy
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
bubba2533
Posts: 499
Joined: Wed Apr 11, 2018 8:50 am
cars: 03 Chevy S10 Turbo V6

Re: PCMHammer P04

Post by bubba2533 »

Didn't see this yesterday, but I put up a PR to fix it. Tested it this time to make sure it worked.

https://github.com/LegacyNsfw/PcmHacks/pull/334

Code: Select all

[11:21:17:743]  PCM Hammer (9/24/2023, 11:21 AM)
[11:21:17:750]  Sunday, September 24 2023 @11:21:17:74
[11:21:17:756]  Initializing J2534 Device
[11:21:17:781]  Loaded DLL
[11:21:18:424]  Connected to the device.
[11:21:18:456]  Battery Voltage is: 12.771
[11:21:18:617]  Thanks for using PCM Hammer.
[11:21:22:561]  WARNING: This version uses the new Assembly Kernels, USE AT YOUR OWN RISK!
[11:21:25:340]  Will save to C:\Users\brand\Desktop\Test.bin
[11:21:26:535]  Querying operating system of current PCM.
[11:21:26:594]  OSID: 12587603
[11:21:26:748]  Unlock succeeded.
[11:21:26:764]  Attempting switch to VPW 4x
[11:21:26:794]  Module 0x10 (engine controller) has agreed to enter high-speed mode.
[11:21:33:710]  Kernel upload 100% complete.
[11:21:33:737]  Kernel Version: 82400201
[11:21:33:741]  Kernel uploaded to PCM succesfully. Requesting data...
[11:21:33:768]  Flash chip: AMD AM29F800BB, 1mb
[11:26:14:306]  Read complete.
[11:26:14:312]  All read-request messages succeeded on the first try. You have an excellent connection to the PCM.
[11:26:14:320]  Please help by sharing your results in the PCM Hammer thread at pcmhacking.net.
[11:26:14:325]  Starting verification...
[11:26:14:345]  Calculating CRCs from file.
[11:26:14:378]  Requesting CRCs from PCM.
[11:26:14:384]  	Range		File CRC		PCM CRC	Verdict	Purpose
[11:26:15:440]  0F0000-0FFFFF	8D0F8F91	8D0F8F91	Same	OperatingSystem
[11:26:16:508]  0E0000-0EFFFF	CC9900D3	CC9900D3	Same	OperatingSystem
[11:26:17:583]  0D0000-0DFFFF	2D14F7AA	2D14F7AA	Same	OperatingSystem
[11:26:18:655]  0C0000-0CFFFF	A50F3C90	A50F3C90	Same	OperatingSystem
[11:26:19:730]  0B0000-0BFFFF	A50F3C90	A50F3C90	Same	OperatingSystem
[11:26:20:787]  0A0000-0AFFFF	A50F3C90	A50F3C90	Same	OperatingSystem
[11:26:27:128]  090000-09FFFF	7DA5C19F	7DA5C19F	Same	OperatingSystem
[11:26:32:695]  080000-08FFFF	338FB416	338FB416	Same	OperatingSystem
[11:26:33:753]  070000-07FFFF	E0330E2D	E0330E2D	Same	OperatingSystem
[11:26:34:839]  060000-06FFFF	D2B04EC0	D2B04EC0	Same	OperatingSystem
[11:26:35:920]  050000-05FFFF	36511E94	36511E94	Same	OperatingSystem
[11:26:37:023]  040000-04FFFF	F6B0E81A	F6B0E81A	Same	OperatingSystem
[11:26:38:096]  030000-03FFFF	D933EE76	D933EE76	Same	OperatingSystem
[11:26:39:193]  020000-02FFFF	0528CC21	0528CC21	Same	OperatingSystem
[11:26:40:255]  010000-01FFFF	8D45F834	8D45F834	Same	Calibration
[11:26:40:826]  008000-00FFFF	6F956E01	6F956E01	Same	Calibration
[11:26:40:994]  006000-007FFF	B90CF7C7	B90CF7C7	Same	Parameter
[11:26:41:149]  004000-005FFF	85B5BB36	85B5BB36	Same	Parameter
[11:26:41:444]  000000-003FFF	4A51AEB1	4A51AEB1	Same	Boot
[11:26:41:458]  The contents of the file match the contents of the PCM.
[11:26:41:631]  Clearing trouble codes.
[11:26:43:087]  Clearing trouble codes.
[11:26:44:209]  Elapsed time 00:05:17.4576160
[11:26:44:222]  Saving contents to C:\Users\brand\Desktop\Test.bin

LS1 Boost OS V3 Here. For feature suggestions post in here Development Thread. Support future development ->Patreon.
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: PCMHammer P04

Post by Gampy »

Awesome, merged!

-Enjoy
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: PCMHammer P04

Post by Gampy »

Woo Freaking Hoo, I finally did it!
PCMHammer - Public AKernel TEST 824.0.20231006@1300.zip
Browse to where you saved it during download, drag n drop it where you want to unzip it on the fly, adjust destination directory name accordingly in the Select Destination Dialog, when done, browse to Destination directory, find PCMHammer.exe and double click on it.
(2.15 MiB) Downloaded 169 times
I finally got the Assembly Kernel I developed (with a little help from Antus) working on all targeted PCM's, and this includes the following PCM's,
P01
P04 (512k) AMD
P04 (512k) Intel
P08
P10
P12
P12b
P59 AMD
P59 Intel
E54
And it seems to be rock solid on them all!

And it's time for wider testing and use, time for it to be in the hands of the general public, all my private testers are having ZERO issues and are tired of me asking them to just keep grinding test runs, they are squawking loud a clear that it is working rock solid and it's time to move on.

PLEASE PASS THE WORD! WE NEED LOTS OF TESTING!

All you private testers you can speak up now if you want ... Up to you!

I apologize for not getting this out yesterday as I had stated I would, I am hella sick and puking my guts out, still am but I need to get this out there and being tested by the wider public.

And no I did not leave Kur4o hanging, I PM'd him a test version immediately after saying I was going to post a public test!
Kur4o has always been there for me, I had to reciprocate and be there for him!
Kur4o, Thank you for being there when I needed!

I do have total faith that it will do no harm, however I must remind you that things can go wrong when doing this sort of thing, however, I have done everything in my power to ensure no harm will come to your hardware!
But please don't use this on anything that is really precious to you ... Like your only set of wheels, or your last PCM.

P08's, we do not know all the P08 OsID's, if you hookup to a P08 and it reports it as a P01_P59, that is because it is an unknown to PCMHammer OsID, just post up the OsID and I (or someone) will add it and post a new package ... P01_P59 is the default PCM's.

TESTERS TESTERS TESTERS WE ALL NEED TESTERS! PLEASE DO SOME TESTING!
If you are in the US and have a failure, please let me know, I might be able to help you recover, unfortunately I can only offer this to those here in the states.

MAKE SURE YOU HAVE A GOOD READ BEFORE WRITING! I cannot help with out a good read to recover with!

You wonder what the Assembly Kernel does for the project, well, the C Kernel from Release 21.2 is 7,890 bytes in size, this Assembly Kernel is 1,954 bytes in size and I have NOT been trying to make it small, I know it could lose a couple hundred bytes still yet, but as long as it is under 2048 bytes it is golden!
It would be nice if it was under 1024 bytes, but that is not likely, close though, I think I had it down to 1092 bytes at one point, but it doesn't matter because PCMHammer now uses a Loader Kernel to load the Working Kernel onboard the PCM, this Loader Kernel is only 604 bytes and can be shrunk a few bytes if necessary, but 604 fits all VCI's out there so far in one packet (upload), once the Loader is onboard, we use it to bring on the larger worker Kernel.

-Enjoy
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
Cincinnatus
Posts: 305
Joined: Fri Jul 30, 2021 5:49 pm
cars: 97 Corvette
92 Camaro
2005 Silverado
2001 Savana 2500
1998 c3500hd
1998 tahoe

Re: PCMHammer P04

Post by Cincinnatus »

Awesome work Gampy!
rjdrew1986
Posts: 27
Joined: Thu Apr 13, 2023 6:52 am

Re: PCMHammer P04

Post by rjdrew1986 »

My participation is limited to helping test the [P04 (512k) AMD] [P04 (512k) Intel] and [P08] performing writes which involved a change of BIN and OSID with each write. I can't tell you how many writes but there were many. From my perspective, the writes appear to be very solid & consistently work again & again. I exclusively drive 3800 FWD cars, so the P04 is especially important to me. Kur4o has done such a wonderful job with his Universal Patcher program, you were able to map many P04 tables that I never knew existed. It's really nice be able to read, edit & write P04 Bins.

Gampy, thank you for what you've done. We owe so much to the programmers in this wonderful forum. You guys give so much of yourselves and share a lot of knowledge along the way. Thank you.
TE27Levin
Posts: 39
Joined: Tue Dec 03, 2019 4:26 am
cars: 04 escalade

Re: PCMHammer P04

Post by TE27Levin »

I got it Mr. Gampy
User avatar
antus
Site Admin
Posts: 8273
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: PCMHammer P04

Post by antus »

Excellent! I am a bit limited for time today, I'll come back and edit this post as I do some more testing. So far tested:

P01 Intel, XProGT, clone write. OK
P04 AMD, MDI + XProGT, clone write. OK
P04 Intel, XProGT, clone write. OK
P08 Intel, XProGT, calibration write. OK
P59 AMD, XProGT, clone write. OK
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
In-Tech
Posts: 792
Joined: Mon Mar 09, 2020 4:35 pm
Location: California

Re: PCMHammer P04

Post by In-Tech »

Hiya,
I wish there were pictures of the PCM's you guys are talking about. I probably have most all laying around and I'll buy what I don't have, to test and try to help :) Obviously I know how to check for AMD/Intel :thumbup:
User avatar
antus
Site Admin
Posts: 8273
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: PCMHammer P04

Post by antus »

They mostly look like LS1 computers, or the slightly later style similar to E38 with 3 connectors on the flat side of a square pcm. Short version of it, is they are all VPW protocol, from between about 1998 to 2007. P04 are v6, P08 are i4, P01/P59 are V8, P12, P12b, P10 are i6. Correct me if i'm wrong. If its the ls1 computer style, then its the same bench connector on all of them (p01/p04/p08/p59) so you can plug them in and do a get properties to see what pcmhammer identifies them as.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Post Reply