PCM Hammer P01 and P59 flash tool v015

They go by many names, P01, P59, VPW, '0411 etc. Also covering E38 and newer here.
User avatar
antus
Site Admin
Posts: 8250
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: PCM Hammer - new ls1 flash tool

Post by antus »

Yep. And you'll need to reverse engineer existing code to learn too. But first you need a platform that'll load the existing kernel then you'll need to confirm if it runs and if not see what addresses are different.
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
darkhorizon
Posts: 18
Joined: Sun Jan 06, 2019 8:41 am
cars: 1988 Pontiac Fiero

Re: PCM Hammer - new ls1 flash tool

Post by darkhorizon »

Current plan to load the existing involves modifying the existing to some degree. I think that the mode 33 requires that I offset the memory addresses so that there is room for the mode 33 in the first block.
User avatar
antus
Site Admin
Posts: 8250
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: PCM Hammer - new ls1 flash tool

Post by antus »

yep, if ram is not at FF8000 you'll need to move the load address.
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
JonnyB
Posts: 13
Joined: Sun Jan 06, 2019 12:00 am
cars: 83 Ford Ranger, a friend's 91 Mustang that I'll be ls swapping with him (more like for him) and my daily driver 03 Silverado 2500hd rust bucket, lastly an lm7, lq4, and ly6 on stands

Re: PCM Hammer - new ls1 flash tool

Post by JonnyB »

Hi everyone, and thank you to those developing this software! I've been following this thread since I discovered it about a month ago.

Since then, I made a nice little bench harness from parts Ive hoarded and info from Sloppy's site :) and have access to an mdi2 at work. Im completely new to aftermarket tuning whatsoever and my budget wont allow hptuners etc but I have an lm7 that I'd like to get running on more than starting fluid. :) I have a used 0411 pcm and just tried a read on it today with a fresh download of release 4 on my work computer. Upon clicking read full contents, it quickly makes its way to "...kernel uploaded to pcm sucessfully. Requesting data..." Thats when theres a seemingly long 35sec pause and it says "Something went wrong. Index was outside the bounds of the array. Clearing trouble codes. Elapsed time 00:00:35... Read failed. Error" The first error i see in the debug reads "ReadMsgs OBDError: ERR_BUFFER_EMPTY No payload following read request." Has anyone seen this? I hope its something Im just missing or doing wrong :)

Thanks in advance for any help!
darkhorizon
Posts: 18
Joined: Sun Jan 06, 2019 8:41 am
cars: 1988 Pontiac Fiero

Re: PCM Hammer - new ls1 flash tool

Post by darkhorizon »

Having what feels like endless problems with this bit of code in the AVT receive. I get blockcopy errors all the time so I added a little try catch around it, but it still doesnt do much to help me debug why im having issues with the block. Most of these seem random, but I cant imagine its healthy. this is on low speed, with 2k blocks, and for some reason 4k blocks completely bomb in this (truncates the packet by a fair amount, upgraded the timer to 5 seconds to see if it would help too). Any suggestions on what could be happening here that I'm missing? Potential changes to this to make it a little more reliable at pulling the correct receive information off the serial bus cashe?

edit to add: This is not the current LS1 kernel though, i have changed from the random kernel to another random kernel tonight and it has largely solved my issues here.

Code: Select all

            // build a complete packet
           
            byte[] receive = new byte[length];
            byte[] packet = new byte[length];
            int bytes;
            DateTime start = DateTime.Now;
            DateTime stop = start + TimeSpan.FromSeconds(5);
            for (int i = 0; i < length; )
            {
                if (DateTime.Now > stop) return Response.Create(ResponseStatus.Timeout, (Message)null);
                bytes = await this.Port.Receive(receive, 0, length);
                this.Logger.AddDebugMessage("Total Length=" + length + " RX: " + receive.ToHex());
                try
                {
                    Buffer.BlockCopy(receive, 0, packet, i, bytes);
                }
                catch
                {
                    this.Logger.AddDebugMessage("failed receive: " + receive.ToHex());
                    this.Logger.AddDebugMessage("failed packet: " + packet.ToHex());
                    this.Logger.AddDebugMessage("failed bytes: " + bytes.ToString());
                }
                i += bytes;
            }
            
Last edited by darkhorizon on Thu Feb 07, 2019 1:33 pm, edited 1 time in total.
User avatar
DavidBraley
Posts: 172
Joined: Thu Jun 07, 2018 8:15 am
cars: 1948 GMC
Location: Fort Collins, Colorado

Re: PCM Hammer - new ls1 flash tool

Post by DavidBraley »

JonnyB wrote:Hi everyone, and thank you to those developing this software! I've been following this thread since I discovered it about a month ago.

Since then, I made a nice little bench harness from parts Ive hoarded and info from Sloppy's site :) and have access to an mdi2 at work. Im completely new to aftermarket tuning whatsoever and my budget wont allow hptuners etc but I have an lm7 that I'd like to get running on more than starting fluid. :) I have a used 0411 pcm and just tried a read on it today with a fresh download of release 4 on my work computer. Upon clicking read full contents, it quickly makes its way to "...kernel uploaded to pcm sucessfully. Requesting data..." Thats when theres a seemingly long 35sec pause and it says "Something went wrong. Index was outside the bounds of the array. Clearing trouble codes. Elapsed time 00:00:35... Read failed. Error" The first error i see in the debug reads "ReadMsgs OBDError: ERR_BUFFER_EMPTY No payload following read request." Has anyone seen this? I hope its something Im just missing or doing wrong :)

Thanks in advance for any help!

JonnyB,

I too am very new to this, and when I did my research for building my bench programming harness, I compared the schematics/pinouts of several bench harnesses and found that the bench harness that Sloppy uses didn't match the others. In the picture below is the bench harness I built. It's very close to the Sloppy harness so you will not need to change much. It works with both the Blue/Red P01's and the Blue/Green P59's. You might make yours like this one below and try to read again? Also, make sure your power supply is something reliable, above 12 volts, and able to put out at least 1.5 amps.:
offboard_harness1.png
offboard_harness1.png (283.62 KiB) Viewed 5142 times
If others have had good luck with Sloppy's bench harness, please speak up. I have no experience with it.
-David

I'm a machinist... because engineers need heroes too.
darkhorizon
Posts: 18
Joined: Sun Jan 06, 2019 8:41 am
cars: 1988 Pontiac Fiero

Re: PCM Hammer - new ls1 flash tool

Post by darkhorizon »

Other news for the V6 stuff... The PCMHammer kernel loads and executes onto the PCM now, but does not run yet. This might be as simple as changing the load address, or just looking for different responses... Current response that the PCMHammer kernel gives is this:

[11:00:24:412] Trace: ReadAVTPacket
[11:00:27:530] Trace: 12
[11:00:27:535] RX: Header 0C
[11:00:27:538] Total Length=11 RX: 6C F0 10 7F 36 00 0F AC FF 91 12

Other news, the other kernel produced a good read on a 98 and a 03 v6 PCM, no errors, first try after I fixed some more stuff. So I think with this kernel i have it should work fine for reading, and it is something we could bundle with the PCMHammer legally one day soon after I do more testing.
darkhorizon
Posts: 18
Joined: Sun Jan 06, 2019 8:41 am
cars: 1988 Pontiac Fiero

Re: PCM Hammer - new ls1 flash tool

Post by darkhorizon »

Oh, and this V6 read kernel i have built out, supports the old 97/98LS1 too, i was able to read one of those tonight as well.
brandonwh64
Posts: 26
Joined: Mon Dec 31, 2018 9:17 pm
cars: building a 1965 F100 with a 5.3L LS

Re: PCM Hammer - new ls1 flash tool

Post by brandonwh64 »

DavidBraley wrote:
JonnyB wrote:
If others have had good luck with Sloppy's bench harness, please speak up. I have no experience with it.
I am currently using one I built from the sloppy wiki. I just followed the pictures
User avatar
DavidBraley
Posts: 172
Joined: Thu Jun 07, 2018 8:15 am
cars: 1948 GMC
Location: Fort Collins, Colorado

Re: PCM Hammer - new ls1 flash tool

Post by DavidBraley »

brandonwh64 wrote:I am currently using one I built from the sloppy wiki. I just followed the pictures
That's good to know!
-David

I'm a machinist... because engineers need heroes too.
Post Reply