Login Register

Vida CEM swapping

Post Reply
rkam
Posts: 102
Joined: 19 Oct 2022, 12:54
Year and Model: 14473_96090_XC7007
Location: Norway
Has thanked: 5 times
Been thanked: 25 times

Post by rkam »

You can put one or more of your probes directly on the CPU pins on the other side. Inside the metal box.

With the pin code, you could have dumped the flash in programming mode.

LukeFlynn
Posts: 8
Joined: 22 Sep 2019, 16:11
Year and Model: XC70, S40
Location: Knoxville, TN

Post by LukeFlynn »

rkam wrote: 02 Nov 2023, 05:07 You can put one or more of your probes directly on the CPU pins on the other side. Inside the metal box.

With the pin code, you could have dumped the flash in programming mode.
via dice?

rkam
Posts: 102
Joined: 19 Oct 2022, 12:54
Year and Model: 14473_96090_XC7007
Location: Norway
Has thanked: 5 times
Been thanked: 25 times

Post by rkam »

Yes, DiCE or other CAN bus interface. Most controllers can be read in programming mode although very slowly without special boot loaders.
The brick shaped CEM does not use a secondary boot loader. Sending the pin code is enough.
I don't remember if the available memory address range was limited though.

You should still try to trace the broken pad to another point or all the way back to the CPU pin.
It is always good to have a working ground level backup solution.

vtl
Posts: 4936
Joined: 16 Aug 2012, 13:35
Year and Model: 2005 XC70
Location: Boston
Has thanked: 130 times
Been thanked: 686 times

Post by vtl »

rkam wrote: 02 Nov 2023, 07:20 The brick shaped CEM does not use a secondary boot loader. Sending the pin code is enough.
Interesting. Given that the brick shaped CEM has unsoldered relays and like ten times easier to remove the plastic cover, it is hands down a better CEM than L-shaped one. If only it was possible to attack pin over CAN...

vitalik2134
Posts: 4
Joined: 17 Dec 2022, 14:41
Year and Model: Volvo XC90 2006
Location: Belarus
Has thanked: 1 time
Been thanked: 1 time

Post by vitalik2134 »

Hello. Teensy 4.1 works well. I read the code and then read the CEM flash. Maybe someone has a dump of P2 XC90 2006 + B5254T2 you need to deal with it.

dikidera
Posts: 1347
Joined: 15 Aug 2022, 09:59
Year and Model: S60 2005
Location: Galaxy far far away
Has thanked: 68 times
Been thanked: 187 times

Post by dikidera »

I may not have studied compiler theory, but I for sure can tell that whatever compiler emitted this...is terrible. I've seen similar such code in all SH2 binaries I've studied. So many redundant operations.
sub_30E60:

var_2= -2

add #-4, r15 //redundant?
mov.w #PADR_W, r2
mov.w @r2, r0
mov.w r0, @(2,r15) // redundant
mov.w @(2,r15), r0 //redundant
extu.w r0, r0
mov.l #off_8000, r3
and r3, r0
cmp/eq r3, r0
movt r0
add #4, r15 //why even use the stack in the first place?
rts
nop

vtl
Posts: 4936
Joined: 16 Aug 2012, 13:35
Year and Model: 2005 XC70
Location: Boston
Has thanked: 130 times
Been thanked: 686 times

Post by vtl »

I see it very often that an old GCC (before ~4.4 or so) is/was used in vendor's SDKs. GCC didn't have Static Single Assignment that avoids unnecessary copies you've mention, and peephole optimization as well, which utilizes CPU's pipeline better by tossing the instructions slightly so they would produce the same result but cause less pipeline stalls.

Before that GCC version I was hand-writing assembly code better and understanding a disassembly code easily. After - not anymore.

User avatar
xiaofei204716
Posts: 44
Joined: 06 Mar 2022, 23:57
Year and Model: XC90
Location: xinjiap
Has thanked: 4 times
Been thanked: 2 times

Post by xiaofei204716 »

:roll: :lol:
Last edited by xiaofei204716 on 15 Dec 2024, 06:07, edited 1 time in total.

3staar
Posts: 2
Joined: 17 Nov 2023, 14:51
Year and Model: v70
Location: england

Post by 3staar »

Part no: 30765624

Trying to replace the CEM in my current car but cant seem to crack the pin, i keep getting the following:


Anyone have any insights as to why?
Attachments
20231117_184623.jpg

vtl
Posts: 4936
Joined: 16 Aug 2012, 13:35
Year and Model: 2005 XC70
Location: Boston
Has thanked: 130 times
Been thanked: 686 times

Post by vtl »

It is FF FF CB DB 0E

Post Reply
  • Similar Topics
    Replies
    Views
    Last post