PCM Hammer P10 development

They go by many names, P01, P59, VPW, '0411 etc. Also covering E38 and newer here.
kur4o
Posts: 980
Joined: Sun Apr 10, 2016 9:20 pm

PCM Hammer P10 development

Post by kur4o »

SInce p12 is mostly done, we can move on to next target P10.

I looked at some of the code and p10 have too much similarities with ls1 layout.

1.size of chip is 1mb- 512kb are used. Upper range is not accessible for reading through pcm.
2.Chip is amd Id 2258 same chip as ls1 1mb amd pcm.
3.Data layout:
0-3fff, 20000-7ffff Main OS first part is boot block. It have some recovery mode but needs confirmation.
4000-7fff EEprom area
8000-1ffff calibration data separated on segments.
4. Checksums and ranges same format as ls1.


It have some slave cpu but that doesn`t affect main cpu flashing, it needs a simple cop to keep it quiet.

The changes needed are

revised upload range address.
fixing COP
Fixing voltage reading.
Some registers update.

MOre details later.
kur4o
Posts: 980
Joined: Sun Apr 10, 2016 9:20 pm

Re: PCM Hammer P10 development

Post by kur4o »

Upload range is ffa000-ffe000

Cop

move.b #$55,(byte_FFFFFA27).w
move.b #$AA,(byte_FFFFFA27).w
bclr #7,($FF800806).l
bset #7,($FF800806).l

DLC registers are the same as ls1 pcm

Initial setup
ori #$700,sr
movea.w #$E000,sp

move.w #$55,($FF8002FC).l
move.w #$29A,d0 [nop cycles*6]
jsr NOP_sub_FF8300 [$29a*6 nops]
move.w #$4314,($FF8002FE).l
ori.w #$8000,($FF8002FE).l


Chip unlocking

move.w #$6820,(word_FFFFFA4A).w
move.w #$7060,(word_FFFFFA4E).w
move.w #6,(word_FFFFFA4C).w
move.w #6,(word_FFFFFA48).w


To read voltage set
move.w #$A,(word_FFFFF230).w
move.w #$3F,(word_FFFFF232).w
move.w #$8082,(word_FFFFF20A).w
move.w #$A8,(word_FFFFF20E).w
move.w #$2100,(word_FFFFF20C).w

wait
loc_FF975A:
btst #7,(word_FFFFF210).w
beq.s loc_FF975A

read voltage
move.w (word_FFFFF2B0).w,d1

Should be between $190-$284 in hex
User avatar
antus
Site Admin
Posts: 8292
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 P10 development

Post by antus »

who has one to test? what service numbers are p10?
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: 980
Joined: Sun Apr 10, 2016 9:20 pm

Re: PCM Hammer P10 development

Post by kur4o »

darkman5001 have couple ready for tests.

I have one Service number 12574976
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer P10 development

Post by Gampy »

P10-Read.png
P10-Read.png (24.19 KiB) Viewed 2281 times
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: 980
Joined: Sun Apr 10, 2016 9:20 pm

Re: PCM Hammer P10 development

Post by kur4o »

That is great progress.

Some more info on checksums

Os checksum is at $52a
Os p/n $52e Int
Os range at 546 [0-529,52c-3fff,20000-7fffc]
4 cal ranges at $54e

Recovery mode identifiers
OS segment last 4 bytes must be A5 5A A5 A5
Calibration segment - 17ffe must be 55 55
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer P10 development

Post by Gampy »

P10-CKernel.png
P10-CKernel.png (24.68 KiB) Viewed 2273 times
Based at 0xFFC000.
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!
ScarabEpic22
Posts: 23
Joined: Fri Jan 08, 2021 3:36 am
cars: TrailBlazer SS E67 LS2, Sonic E78 LUV
Location: Seattle, WA, USA

Re: PCM Hammer P10 development

Post by ScarabEpic22 »

I've got a few P10s and would be happy to test. Send me a link to a version of PCM Hammer (or Github link?) with the changes and I can test!
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer P10 development

Post by Gampy »

P10-Write.png
P10-Write.png (44.08 KiB) Viewed 2201 times
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: PCM Hammer P10 development

Post by Gampy »

P10-Write1.png
P10-Write1.png (44.43 KiB) Viewed 2188 times
Loaded to 0xFFB800 ... No changes, not even the COPs!
0xFFA000 -> 0xFFB000 is to low and crashes on upload, 0xFFC000 is to high and crashes processing CRC.

Delicate fit!

PcmHammer diff ...
P10-PcmHacks.diff.txt
(7.96 KiB) Downloaded 91 times
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!
Post Reply