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
NSFW
Posts: 679
Joined: Fri Feb 02, 2018 3:13 pm

Re: PCM Hammer - new ls1 flash tool

Post by NSFW »

This is a little embarrassing, but there's a bug in release 7 that prevents it from reading from P59s.

The fix is...
1) del read-kernel.bin
2) copy write-kernel.bin read-kernel.bin

In other words, write-kernel.bin works for both reading and writing.

The P59 requires a small change in the kernel, and I only made that change in the write kernel, because I forgot that we had two kernels, Because the write kernel does work for both reading and writing. We just weren't using for reading.

I'll put out another release that just has a single "kernel.bin" to simplify things.

It will also verify what gets read, just to be sure that nothing was garbled in transit. I'm working on that now.
Please don't PM me with technical questions - start a thread instead, and send me a link to it. That way I can answer in public, and help other people who have the same question. Thanks!
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer - new ls1 flash tool

Post by Gampy »

And let the floggings begin ... Naw, just can't do that, it happens to the best!

Shit happens!
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
NSFW
Posts: 679
Joined: Fri Feb 02, 2018 3:13 pm

Re: PCM Hammer - new ls1 flash tool

Post by NSFW »

Please don't PM me with technical questions - start a thread instead, and send me a link to it. That way I can answer in public, and help other people who have the same question. Thanks!
I420tom
Posts: 4
Joined: Wed Nov 27, 2019 8:39 am

Re: PCM Hammer - new ls1 flash tool

Post by I420tom »

Just joined this forum now
NSFW shared a link here to my post in his ls1tech thread, helping him recover with bdm jtag his p59 amd
I'm trying to help with pcm hammer.
I've been testing 2 p59 Intel flash pcms in car.
So far read stops at 512kb
How can I help further?
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 »

I420tom,

I wanted to thank you for figuring out the fix getting the BDM to read and write to the P59's! I'm now reading and writing to both Intel and AMD based P59's

I've offered to send NSFW an Intel based P59 if it helps too!
-David

I'm a machinist... because engineers need heroes too.
Monaro
Posts: 13
Joined: Mon Nov 25, 2019 11:03 am
cars: Monaro ls1

Re: PCM Hammer - new ls1 flash tool

Post by Monaro »

I have updated to PCM release 8, and have tried twice on a P59 - and read stops at 62% - this has pcm has previously read perfectly with release 6. Using J2534

Seems to be 2 spots where an error appears in debug - read is perfect from 1 to 62%

Have done a quick compare with previous bin file read and appears ok. It's an AMD chip.

Read on bench - as was compare bin file.

Of note - have just readthe same P59 PCM on my laptop as it has Release 6 still on it and that read properly.
Attachments
Quick Compare.docx
(15.75 KiB) Downloaded 178 times
Read Fail debug.docx
(15.74 KiB) Downloaded 177 times
Last edited by Monaro on Wed Nov 27, 2019 12:01 pm, edited 4 times in total.
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer - new ls1 flash tool

Post by Gampy »

I420tom wrote:Just joined this forum now
NSFW shared a link here to my post in his ls1tech thread, helping him recover with bdm jtag his p59 amd
I'm trying to help with pcm hammer.
I've been testing 2 p59 Intel flash pcms in car.
So far read stops at 512kb
How can I help further?
Yup, I'd like to say Thank you as well!

It might be helpful if you were to create a debug log and attach it.

[edit]
Are these in vehicle reads that are failing?
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!
Monaro
Posts: 13
Joined: Mon Nov 25, 2019 11:03 am
cars: Monaro ls1

Re: PCM Hammer - new ls1 flash tool

Post by Monaro »

I420tom wrote:Just joined this forum now
NSFW shared a link here to my post in his ls1tech thread, helping him recover with bdm jtag his p59 amd
I'm trying to help with pcm hammer.
I've been testing 2 p59 Intel flash pcms in car.
So far read stops at 512kb
How can I help further?
FYI Checked my debug afile gainst your error message posted on LS1tech - exactly the same - mine has the AMD chip though. :thumbup:
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: PCM Hammer - new ls1 flash tool

Post by Tazzi »

Monaro wrote:I have updated to PCM release 8, and have tried twice on a P59 - and read stops at 62% - this has pcm has previously read perfectly with release 6. Using J2534

Seems to be 2 spots where an error appears in debug - read is perfect from 1 to 62%

Have done a quick compare with previous bin file read and appears ok. It's an AMD chip.

Read on bench - as was compare bin file.

Of note - have just readthe same P59 PCM on my laptop as it has Release 6 still on it and that read properly.
Can you please upload the full log in?

I see something interesting appear on your error at 62%:

Code: Select all

[10:08:54:174]  Reading from 659456 / 0xA1000, length 4096 / 0x1000
[10:08:54:174]  TX: 6D 10 F0 35 01 10 00 0A 10 00
[10:08:56:264]  ReadMsgs OBDError: STATUS_NOERROR
When it read the message, it got back a STATUS_NOERROR message which should indicate its received a frame but proceeds on.
Im logging with my nano right now and it doesnt do that at all.

Im wondering if theres some sort of fault settin and the nano is dropping to 1x.. then actually sending a command back to software which we are not processing correctly maybe.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: PCM Hammer - new ls1 flash tool

Post by Tazzi »

Actually, I believe I see the problem there.

Ok.. so I just did a full read (On bench) and took only 4:30sec (not including the 30seconds done calculating CRCs at the end).
Whereas looking at your log... it took 5mins just to get to 62%.

When looking at the timestamps between each block for me, here is about a 1second difference. Im almost certain you are running at 1x and not 4x so you will likely have a 3-4sec difference?

Now looking back at your log:

Code: Select all

10:03:49:472]  Attempting switch to VPW 4x
[10:03:49:477]  TX: 6C FE F0 A0
[10:03:49:507]  RX: 6C F0 10 E0 AA
[10:03:49:507]  Parsing 6C F0 10 E0 AA
[10:03:49:507]  Module 0x10 (engine controller) has agreed to enter high-speed mode.
[10:03:49:512]  Sending 'test device present' notification.
[10:03:49:512]  TX: 8C FE F0 3F
[10:03:51:523]  ReadMsgs OBDError: ERR_BUFFER_EMPTY
[10:03:51:523]  Sending 'test device present' notification.
[10:03:51:523]  TX: 8C FE F0 3F
[10:03:51:528]  TX: 6C FE F0 A1
[10:03:53:539]  ReadMsgs OBDError: ERR_BUFFER_EMPTY
[10:03:53:539]  J2534 setting VPW 4X
[10:03:53:664]  Sending 'test device present' notification.
[10:03:53:664]  TX: 8C FE F0 3F
[10:03:53:669]  Sending 'test device present' notification.
[10:03:53:669]  TX: 8C FE F0 3F
Theres a 2second gap between tester present frames, so I am wondering if thats long enough to cause it to drop out of 4x mode.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
Post Reply