Login Register

Vida CEM swapping

A mid-size luxury crossover SUV, the Volvo XC90 made its debut in 2002 at the Detroit Motor Show. Recognized for its safety, practicality, and comfort, the XC90 is a popular vehicle around the world. The XC90 proved to be very popular, and very good for Volvo's sales numbers, since its introduction in model year 2003 (North America). P2 platform.
Post Reply
dikidera
Posts: 1304
Joined: 15 August 2022
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 67 times
Been thanked: 175 times

Re: Vida CEM swapping

Post by dikidera »

Since I have begun my attempts at writing a kernel for reading/writing the SH2 TCM I have discovered something. I mean it was written in the fenugrec kernel but still. SH7055 has 2 variants, SH7055S(180nm) and SH7055(350nm) which is the original Hitachi SH7055.

The IDA 7.7 CPU processor definitions for SH7055 assume the newer variant and labels everything according to it, but for flashing purposes there are massive differences, the 350nm old-gen MCU does not have the FKEY register, while the new one does.
In my excavation of the Denso SBL I saw it accessing address FFFFE803 which is forbidden according to the new variant, but perfectly fine for the old variant because the register is quite different, which led to me to believe that IDA cannot differentiate between the two.

The Temic 29.1 features the newer-style SH7055S which is easily seen by it accessing the FKEY register in the ROM, which IDA correctly identifies and complete lack of FFFFE803 which is the old-style Erase block register 2.

Just something for people to take in mind when going down this path.

sebs
Posts: 3
Joined: 23 September 2024
Year and Model: 2004
Location: Finland
Been thanked: 1 time

Post by sebs »

Hi, I have a P2 cem that i need the pin out of. I dumped the flash with usbjtag nt, can someone help me get the pin from the dump, it is 512KB in size.

Skavac
Posts: 18
Joined: 12 January 2020
Year and Model: 1998 Volvo S90
Location: Tangerang
Has thanked: 2 times
Been thanked: 6 times

Post by Skavac »

PIN will be in 0x4000 or 0x6000, first 6 bytes

sebs
Posts: 3
Joined: 23 September 2024
Year and Model: 2004
Location: Finland
Been thanked: 1 time

Post by sebs »

Ok, I got the pin into VDASH and tried to program new key but it errors out https://pasteboard.co/Qav2CwI4nob6.png
Read immo does something but still errors out on program new key.
Car has currently no working keys, but i bought a new master key from volvo so can turn the ignition lock.
Can the IMMO pin be extracted out of the flash dump?

Dudde
Posts: 64
Joined: 22 January 2020
Year and Model: 2005 V70 and more
Location: Finland
Has thanked: 14 times
Been thanked: 17 times

Post by Dudde »

sebs wrote: 24 Sep 2024, 02:39 Ok, I got the pin into VDASH and tried to program new key but it errors out https://pasteboard.co/Qav2CwI4nob6.png
Read immo does something but still errors out on program new key.
Car has currently no working keys, but i bought a new master key from volvo so can turn the ignition lock.
Can the IMMO pin be extracted out of the flash dump?

Where are you located? I can program key for you

sebs
Posts: 3
Joined: 23 September 2024
Year and Model: 2004
Location: Finland
Been thanked: 1 time

Post by sebs »

Dudde wrote: 24 Sep 2024, 06:33
sebs wrote: 24 Sep 2024, 02:39 Ok, I got the pin into VDASH and tried to program new key but it errors out https://pasteboard.co/Qav2CwI4nob6.png
Read immo does something but still errors out on program new key.
Car has currently no working keys, but i bought a new master key from volvo so can turn the ignition lock.
Can the IMMO pin be extracted out of the flash dump?

Where are you located? I can program key for you
I want to still try some things around before I suck it up and walk back to volvo and order the Ignition key application and remote key application. First time I tried to program the key with vida I only ordered the Ignition key program and was unable to program it. Apparently you need the Remote key application too...

But anyway now that I have the cem pin is there another way to add a new key than the legit vida way or VDASH that keeps failing for me?

dikidera
Posts: 1304
Joined: 15 August 2022
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 67 times
Been thanked: 175 times

Post by dikidera »

Whilst waiting for a TCM, I decided I wanted to dump my DIM cluster, unfortunately it appears the DIM firmware does not have the B4 checksum command, what a bummer.

I will have to see if A7 or BB will work.

In the meantime I have been lightly studying the 68HC12 DT128A datasheet to figure out more about how the MCU works, it's paging, but it's the ISA itself that bothers me so much.

Goal is language change and enabling instant fuel consumption and average fuel consumption for the BIFUEL model. They likely didn't enable them for the bi-fuel models as the values were polluted by running the car in gas and petrol mode, but this is a non-issue.

al1Volvo
Posts: 34
Joined: 22 March 2024
Year and Model: Volvo V50 2011
Location: France
Has thanked: 3 times
Been thanked: 13 times

Post by al1Volvo »

Have you tried my tool ? I was able to dump the DIM with it but yes, without the B4 command while uploading the SBL, after the SBL is running, the checksum are verified.

dikidera
Posts: 1304
Joined: 15 August 2022
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 67 times
Been thanked: 175 times

Post by dikidera »

Oh so the B4 command is only enabled when an SBL is running(DIM)? Very different behaviour from literally the rest of the modules. I am very surprised Volvo did not implement their protocol behavior to be the same across all of them.

al1Volvo
Posts: 34
Joined: 22 March 2024
Year and Model: Volvo V50 2011
Location: France
Has thanked: 3 times
Been thanked: 13 times

Post by al1Volvo »

No, from what I suppose, B4 command is only working on High speed CAN devices, for example CEM 0x50, CEM on low speed CAN at 0x40 isn't working with B4 command, this is the same for DIM. That's my finding. My SBL is implementing the B4 command once it is loaded and running

Post Reply
  • Similar Topics
    Replies
    Views
    Last post