PCM Hammer P12 development

They go by many names, P01, P10, P12, P59, E38, VPW, '0411 etc.
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: PCM Hammer P12 development

Post by kur4o »

Gm flash routine is executed on request, never takes full control. Pcm have full control on communication loop.
You sent first block. Pcm code receive and stores it to ram, jump to uploaded code, erase, than program. Than return to pcm code. upload next block and so on.
darkman5001
Posts: 252
Joined: Sat Dec 18, 2021 8:15 am
cars: 2005 Yukon, 2004 Suburban, 2001 Tahoe, 2002 Envoy, 2006 Envoy, 2003 Lincoln LS
Location: New Jersey, USA

Re: PCM Hammer P12 development

Post by darkman5001 »

kur4o wrote:darkman5001,

you are trying to flash pcm with corrupted file. Last part of bin is FFs while there is some data in non corrupted file. The tech2 exits when Os is done, but checks that is good are not passed and it fails when you start caldata write.

It is either corrupted file are loaded to tech2 or the tech2 bugs out for some reason.

You can try using tech2 as passthrough and flash from tis2000 utility, or try reuploading flash files to tech2.

I used a virtual machine with TIS2000 and the tech2, but I am starting to wonder if something is wrong with the files on the virtual machine. I am going to install the TIS2000 software on an actual computer and see if I have better results.
User avatar
Gampy
Posts: 2332
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer P12 development

Post by Gampy »

It's not a multi threaded os, what ever code is executing is in control ...
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!
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: PCM Hammer P12 development

Post by kur4o »

I used a virtual machine with TIS2000 and the tech2, but I am starting to wonder if something is wrong with the files on the virtual machine. I am going to install the TIS2000 software on an actual computer and see if I have better results.
You need very solid connection between PC and T2. Real COM port or high quality converter. I doubt the files can get screwed inside a database.
You can also use T2 as a pass through j-device or mdi and flash from tis2000 program.
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: PCM Hammer P12 development

Post by kur4o »

Gampy wrote:It's not a multi threaded os, what ever code is executing is in control ...

I think we are on different pages.
Take it a like that.

Communication is executed from ROM, program and erase routines are executed from RAM. Slave routine is at ffff6000, maybe that is a shared memory with slave cpu.
User avatar
Gampy
Posts: 2332
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer P12 development

Post by Gampy »

kur4o wrote:Take it a like that.

Communication is executed from ROM, program and erase routines are executed from RAM. Slave routine is at ffff6000, maybe that is a shared memory with slave cpu.
We have control over communication, we have control over flash chip, we work directly with the hardware, well as directly as one can get through the SIM.
Slave, I don't know about, I suspect it is just an ignorant fly by wire slave, I cannot imagine it is a babysitter ... I could be wrong.

The one thing I know for sure ... I do not have the time into the disassembles that you do!
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
Tazzi
Posts: 3550
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: PCM Hammer P12 development

Post by Tazzi »

Yeah I understand what hes saying.

GM's kernel gets uploaded to RAM (FF2000), but it is not executed.
The code uploaded is used by the operating system to update the flash.

Right at the top of GMs kernel, (from FF2020), you can see all the main calls for flash commands for AMD processors.
At FF2096, we see the FFFA7E register being changed, and below what has the FA7E and also FA7C.
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
antus
Site Admin
Posts: 9009
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 P12 development

Post by antus »

I agree we need to get a good confirmed write with factory tools as a starting point. We may be chasing our tails and we may have a working solution already. We got the same result as the tech2 and that should be a working solution. Whatever broke the tech2 flash might be external and breaking our possibly otherwise working tests too.

Ive pulled the slave kernel out of the tech2 log. I havnt looked in to what its doing yet, but it does look like its doing something. Something required? Dont know....

One question for Kur4o, are you sure this code is executing on the slave? Or could it be called by code on the main CPU?
Attachments
FF6000.bin.lst.txt
(70.71 KiB) Downloaded 136 times
FF6000.bin
(1.72 KiB) Downloaded 170 times
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
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: PCM Hammer P12 development

Post by kur4o »

I think code at ffff6000 writes slave for sure, Main processor likely execute it, but not confirmed yet how it is done.

The T2 flash fails on checksum error. After OS write is completed it checks for integrity. And last messages contains FFs instead of data. so something with T2 parsing data or the files that are loaded in T2 are corrupted.
User avatar
antus
Site Admin
Posts: 9009
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 P12 development

Post by antus »

I think the fail fail on checksum error is more than a minor fault. Here is the read from a good pcm with pcmhammer compared to the read after the bad tech2 flash read by lifting the chip. The whole cal segment 20000-40000 is FF. So Its a genuine flash write fail to the whole segment after a successful erase, not just a bad sum and minor data error. The same as the result as pcmhammer got.
Attachments
p12 tech2 flash.jpg
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