Page 8 of 14
Re: P04 R&W Testing
Posted: Mon May 01, 2023 9:55 pm
by antus
That was it... output attached.
Re: P04 R&W Testing
Posted: Tue May 02, 2023 8:53 am
by Gampy
kur4o,
Might I ask the purpose of this script ...
I see what it's done, just wondering what outcome you were looking for.
Thank you!
-Enjoy
Re: P04 R&W Testing
Posted: Tue May 02, 2023 4:50 pm
by kur4o
It reads all 3c data that is stored within a pcm, With some luck gm might have left some unique identifier that is the same for p04 family, but more examples will be needed to find a pattern.
Re: P04 R&W Testing
Posted: Tue May 02, 2023 11:45 pm
by Gatecrasher
I did the same thing with a Python script on mine. It's mostly junk. I think the best we can hope for is using the 3C 04 hardware part number, the TIS database, and some manual labor to match the two up.
All of the information needed is defined in the diagnostic spec, but almost none of it is implemented.
The flash kernels are also supposed to check some kind of software compatibility ID prior to writing, but I've never seen that explained either.
Re: P04 R&W Testing
Posted: Wed May 03, 2023 12:57 am
by Gampy
Well, then here is another ...
Just trying to learn and understand ...
Like I stated with the first question, I can see what it has done, I know it's looping and reading all 3C's, that is obvious.
I now know the purpose and what you are looking for, my last question, and your response.
Now I would like to know why you are running it twice with only a slight change, and what that change is ??
getseed:5:06
getseed:5:0e
Thank you says the inquisitive mind!
-Enjoy
Re: P04 R&W Testing
Posted: Wed May 03, 2023 2:02 am
by kur4o
Gampy wrote:
Now I would like to know why you are running it twice with only a slight change, and what that change is ??
getseed:5:06
getseed:5:0e
Thank you says the inquisitive mind!
-Enjoy
When module is unlocked sometimes spits more data out of it.
It runs twice since 96-97 use algo 06, while 98-05 use algo 0e, that way I cover both with one script.
Re: P04 R&W Testing
Posted: Wed May 03, 2023 3:04 am
by Gampy
Ah, Yes, Ok that makes sense ...
Mode 3C doesn't actually need to be unlocked, you just do it because sometimes it returns more data.
As a personal learning exercise, I edited the script, looping only once, no unlock, the results are identical, obviously not duplicated ...
I really need to set down and figure the scripting out, just haven't taken the time to do it!
Thank you very much!
-Enjoy
Re: P04 R&W Testing
Posted: Wed May 03, 2023 3:58 am
by kur4o
Gampy wrote:Ah, Yes, Ok that makes sense ...
Mode 3C doesn't actually need to be unlocked, you just do it because sometimes it returns more data.
As a personal learning exercise, I edited the script, looping only once, no unlock, the results are identical, obviously not duplicated ...
I really need to set down and figure the scripting out, just haven't taken the time to do it!
Thank you very much!
-Enjoy
Script is very useful for running some sequence of data without hardcoding it. It does have some limitations like logic to retry on failure or do some other funny things. Here is some test script to play around and get better knowledge with commands.
It is for p04, on main file, first upload is loader only, second upload is a read addon, the smaller separate file is a chipid code that will save chip id in the ram address that is in the file name. You cut what`s not needed, and see how it acts.
I didn`t test it with current version so some timings may need readjust.
Re: P04 R&W Testing
Posted: Wed May 03, 2023 4:59 am
by Gampy
Thank you sir!
I shall have a play ...
-Enjoy
Re: P04 R&W Testing
Posted: Wed May 03, 2023 6:04 am
by Gampy
kur4o,
To confirm, P04_read_1000_x4_0E_v1.txt worked flawless as is!
Using v22.06.
I did verify a packet out of the middle, it was perfect, I did not combine all and verify, IMO it would be a waste of time, I'm sure it's PERFECT!
So sweet, so easy!
I put together the particulate to upload the FlashID Kernel, it loads perfect, it times out, things move on!
Now how do I request the data (FlashID) it put in RAM address, in this case FFA000 ??
And does it need to be unlocked to do so ??
Thank you!
-Enjoy