Club XM Forum

The Cars Citroen XM => Electrical => Topic started by: noz on April 13, 2011, 10:21:39 PM

Title: 2.5TD Engine ECU
Post by: noz on April 13, 2011, 10:21:39 PM
As mentioned here:
http://club-xm.com/forum/index.php?showtopic=4824 (http://club-xm.com/forum/index.php?showtopic=4824)
I discovered I had the wrong ECU fitted to my 2.5TD RP 7158. It was a 336 whereas it should have been a 589. I have searched long and weary and finally got one today off ebay in Germany. It arrived today.
I replaced the wrong ecu with the correct one and started the engine. I did not need a code. The green light was on the keypad when I turned it on.

However, after running the engine for several minutes I switched off. After I did this the red LED came on and now I cannot start the engine because I don't know the code for the keypad. I understand, after a bit of searching, that the replacement ecu had probably been disconnected from the keypad whilst unlocked and would have remained unlocked if I had disconnected the keypad. Unfortunately, the keypad was connected and the ecu is now locked.

I am aware that the ecu can be unlocked but I'm not sure of the exact steps. As far as I know I need to remove the eeprom from the ecu. I have opened the ecu but I am having trouble identifying the eeprom. I see two chips labelled 1037355913 and 1037355914 but these are sticky labels. The original chip manufacturers ID is hidden underneath the sticky labels. If I identify the correct chip and remove it from the ecu I believe I need to plug it into a programmer connected to my laptop via usb. I then need the appropriate software to take a dump of the eeprom. By deciphering the data dump I can identify the key code.

I am a complete novice at this so I'm still finding my feet. Can anyone provide any guidance on the following:
1)How can I identify the eeprom?
2)What hardware do I need to buy to read/programme the eeprom?
3)What software do I need to talk to the hardware?
4)Once I have the eeprom data dump, how do I identify the key code?

I am searching for the answers to the above elsewhere so if I find out I'll let you know.

cheers

noz
Title: 2.5TD Engine ECU
Post by: xmexclusive on April 14, 2011, 09:09:43 AM
Hi Noz

Not taken a 336 or 589 ECU to bits yet as my only spare a 589 is running someone elses car.
I doubt that the electronic components are very different from the earlier versions of the 2.5 ECU which I have taken to bits.
In theses ECU's there is not any EEPROMs just 2 older type EPROMs containing the ECU code. There is a significant electronic difference in the capabilities of the types of EPROM. The later designed EEPROMs can have their code content rewritten electrically in whole or in part while in circuit. With the earlier type EPROMS they are factory programmed with code before inserting in the ECU sockets. Because they cannot have data rewritten while in circuit they cannot store a changable code and so the immobiliser code has to be stored in a seperate bit of circuitry. To erase these earlier EPROMs you have to take them out of circuit and expose them to strong UV light. They then need reprogamming with any new code (eg new fuelling) before refitting.  The XM Phillips radio uses a very similar arrangement, main progamme in a big fixed chip and  the security code is stored in a little tiny capacity 8 pin serial EEPROM chip.

Not convinced that there is any significant difference between 336 and 589 ECU's as in my experience they are as interchangable without problems. Will look up the previous posts on 2.5 ECU's but I know from one of my cars that a 336 is the correct ECU for ORGA 7136.

Have now looked up all the 7 EPROM types listed in Noz's ECU self help.
All 7 are UV erasable fixed data EPROM's so none of the four versions of the 2.5 ECU support EEPROM's or in circuit data writing so for the immobiliser code storage we are looking for a simple 8 pin CMOS serial data chip.

Have done a search for chip manufacturers markings on the likely memory chips.
Come down to a single device that I suspect stores the code.
Chip has no known recognisable manufacturers markings or number codes.
Some Phillips chips on the boards carry the same symbol as a secondary marking.
Think we might have the same situation as with some chips and semiconductors used by Valeo. They buy in a standard chip but have it marked with their own unique coding to make identification, reading and duplication as difficult as possible.

John
Title: 2.5TD Engine ECU
Post by: Dieselman on April 14, 2011, 09:20:15 PM
Is it possible that the seller in Germany can provide the code?

Try a company like ECUtesting.com to see if they can erase the code.

If not them, there are others that might be able to do this.
Title: 2.5TD Engine ECU
Post by: noz on April 14, 2011, 09:36:43 PM
Hi John,

Thanks for taking the time to reply.

Every day is a school day. I have learned a few more things since I wrote that last post. The eeprom you refer to is a 93C46. In fact, there are two of them on the pcb. This IC number is the one that's listed if you search for IMMO(bilisers) programmers so I guess thats the one with the keypad code.

I joined four chiptuning and hacking forums today and posted the same sort of questions. I'm hoping I will get some replies.

I also found some hardware that can communicate with the 93C46 whilst still on the pcb. The kit comes with a sort of crocodile clip which fits over the chip on the pcb and connects with each of the pins. The one I found was called a Zed-Bull, although there are others.

The two chips (eproms) which hold the injection maps ( 1 037 355 913 and 1 037 355 914 ) are the ones I have photographed in the attached file. When I bought an 'upreated' chip from ebay this is the form it came in. I still have to find out why I only received one chip and there are two identical sockets. A very long time ago my old man has an Audi A6 with a VP36 pump, although it had 5 cylinders. He had two chips as well but only replaced one. From a conversation I had on the chiptuning forum I was reminded that one is for turbo boost and the other for timing. On the Audi the ecu did indeed control boost pressure but on an XM 2.5TD the turbo (wastegate) control is purely mechanical and therefore the ecu plays no role in that. Therefore, maybe that's why they only sent the one chip.

We progress, slowly but surely.

cheers
noz B)
Title: 2.5TD Engine ECU
Post by: xmexclusive on April 14, 2011, 10:46:49 PM
Hi Noz

Will digest your latest post in detail later.
Have a couple of comments that might be of interest.
The 589 ECU that I sent off for a stumped XM owner (saga is chronicalled on here)  to try in his black 2.5 was code free when I sent it off. The man did not wait as requested to talk through with me the installation and testing. As a result he just slapped it in got the green light and started the car.
When he switched off the immobiliser cut in. He was lucky as he tried 1111 and got the green up so can keep running the car. It seems that moving the later ECU's is not as trouble free as the earlier versions. As I understand it there is an ECU wire that has to be disconnected to match with the making code free. I became aware of this while talking through the botched installation on that black car before I sent off the loan ECU. At the time I made my note of the wire number on that spare ECU then like a fool sent it off without a thought. It transpired that he reconnected the wire before installing and trying my ECU. I was not best pleased and may have let him know. Beyond telling me the car was running ok not heard from him since.
This afternoon could not resist taking the cover off the only 336 ECU I have just to have a look. Turned out to be virtually the same pcb's with a couple of extra chips left off. Eproms did not have any markings at all and one was raised on a slightly offset header plug. So it is no help with our information quest as this ECU seems to be modified as well as code free.
I think the reason there are two EPROM's is that each supplies the programme to a seperate Microproccessor. Just that when the ECU was designed a single processor was not fast enough to do everything in the required time.
i think I can work out which of the EPROM's run the immobiliser from the ECU's that I have opened.
Turned out my EPROM programming kit as well today but have decided it is far too old to run on any of the PC's I now have. Would need to set up a 286 for the ISA slot and a 5in floppy drive. Will look out something worth buying tomorrow so I can start storing the EPROM dumps.

John
Title: 2.5TD Engine ECU
Post by: xmexclusive on April 15, 2011, 09:40:11 AM
Hi Noz

Thanks for the images and information.
All the types of 2.5 ECU are very similar internally.
Will try to take some photos of the ones I have pulled apart.
The fuel maps must be in the top most EPROM as that is the one that gets changed for chipping.
Agree now with your Bosch chip identification for the little rewritable chips.
Once I get a reader working I will try to set up a spare early ECU with working known immo code. If I read and store the contents of the rewritable chips then change the immo code a few times with repeat reads I should be able to work out where and how the code is stored.
It will be easier to do first with the earlier types of ECU as I think Cit/Bosch uprated the immo security on the 589 by making the garage code a second variable code rather than a fixed value.

John
Title: 2.5TD Engine ECU
Post by: noz on April 15, 2011, 05:16:06 PM
Hi Dieselman,

I asked the seller for the code but he said he didn't have it. I think they are an ECU broker rather than an owner breaking their car. Thanks for the suggestion anyway.

Hi John,
Thats a smart move. Why didn't I think of that? Have you bought your reader yet? Do you have make/model in mind? I'm quite willing to buy one myself and have a go. My other 2 XM 2.5TDs have 212 ECUs rather than the 336 or 589s. Can you figure out why there should be two 93C46s?

I'm going to disassemble my 336 tonight for a look see.

Cheers

noz B)  
Title: 2.5TD Engine ECU
Post by: xmexclusive on April 15, 2011, 06:50:43 PM
Hi Noz

Ordered one from Thiland this afternoon. Will take a week or so.
Will need to look it up again to note the name and description.
(Universal Willen - item 250802087275).
Decided on ready built with software to get working straight away.
Self build would have been more fun but too much risk.
On the ECU micros the designer will have needed two to meet the design speed constraints. Easiest way would be to duplicate the same circuit design twice on the pcb.
Virtually halves the design and artwork. Might find that the chip contains little or no data.

John
Title: 2.5TD Engine ECU
Post by: noz on April 15, 2011, 07:14:53 PM
I have dismantled the 0 281 001 336 ecu. Here's the internals.
Title: 2.5TD Engine ECU
Post by: noz on April 15, 2011, 07:19:40 PM
I saw the Willen and read a bit about it. It seems like the dog's wotsits. Although it relies on the chip being desoldered to put it in the programmer. However, I did see this adapter which allows it to be read and programmed in-situ: 120703298973

I think I may follow your lead and get the in-situ clip as well.

cheers

noz B)

Title: 2.5TD Engine ECU
Post by: xmexclusive on April 15, 2011, 08:30:30 PM
Hi Noz

I already have a selection of EPROM overclips and jump leads from my previous programmer bits and pieces. Should be able to sort something out from the heap.
Just have to be very careful about incompatible dual voltage sources when working insitu. Not just the car battery but residual charge on capacitors in the ECU.
Hopefully I should be able to set up the spare 212 ECU that I use to give permanent access to these little chips without needing to dissassemble it for each read.
Can then easily make lots checks with just single digit code changes.
The reason I picked the Willen was that it was cheapish, highly flexible and sourced/made in Thailand. Did not get the extra bits this time to ensure I was well under import duty etc. I have a daughter living in Bankok and she will get sent a shopping list for the extras and spare chips.

John
Title: 2.5TD Engine ECU
Post by: noz on April 15, 2011, 08:47:43 PM
Hi John,

I do not have any of those kinds of bits in my otherwise reasonable armoury. I too have ordered a Willen from china complete with adaptor clip for in-situ programming.

I am assuming that to read or programme the ecu is removed from the car first. By the time the cover is off and the pcb is in your hand I would have thought any residual cap storage would have dissipated by that time? No?

In any case, I'll have a play myself when it arrives in some 20 days or so.

I took a 212 apart tonight but its too dark to take photos so I'll do that in the morning and post the results. The 212 differs in that it has an atmospheric pressure sensor built onto the PCB. The EEPROM ICs are the same as the 336 though. interestingly the 212 has been refurbished by someone called AECUE Ltd (www.aecue.co.uk) who appear to be no more. Both 93C46s have been desoldered and resoldered, one very badly.

I realise now that the chip IDs for the 336 are different to the ECU list in the self-help section. I'll open up all four ecus I have available and update the ECU list in the self-help section accordingly with the chip combinations I find in them. If you have any others to add to the list please let me know.

cheers
noz B)  
Title: 2.5TD Engine ECU
Post by: xmexclusive on April 16, 2011, 07:56:58 AM
Hi Noz

Based on the work I used to do on similar age defective pcb's I think I know why your refurbishers fitted new EEPROM chips to that 212.
New chips were easy to come by and programme, pcb's were very easily damaged, a sod to repair and impossible to replace.
So if destroying the suspect chip made sure you preserved the pcb that was the route taken. Method was to cut the chip legs off individually close to the pcb. The chip could then still be fitted in a programmer socket and read to get its contents just not used again on a pcb.
Taking the individual leg remains out of the pcb one by one avoided damaging the copper tracks and through plated holes that made up the circuits. Then programme the new chip as required and solder in.

John

Title: 2.5TD Engine ECU
Post by: noz on April 16, 2011, 12:54:19 PM
Inside the 0281001212 ECU.
Title: 2.5TD Engine ECU
Post by: noz on August 13, 2011, 01:05:38 PM
Time for an update.

I received the Willem programmer but had no luck reading the 93C46s whilst still on the pcb. I later read on a forum that the Willem is not capable of reading in-situ and therefore, the 93C46s need to be removed from the pcb first. I tried to remove them whole by desoldering the legs but it proved impossible. So, I cut the legs and removed the stumps one by one. I then soldered sockets in their place so that I could remove and refit the 93C46s at will thereafter.

Having removed the 93C46s from the pcb I was still unable to read them, or so I thought. The Willem kept on telling me they were filled completely with FFs. Initially I thought that meant that I was not using the Willem properly or that I'd damaged the chips taking them out. However, I proved the Willem by buying spare, blank 93C46s and programming them with test data. I could then read, write and erase at will which proved that the Willem and associated software was working properly.

After a tip off I programmed the 93C46s and refitted them to the ecu. I turned on the ignition and both red and green lights on the keypad went out. I then turned the starter and the engine fired up. I took it for a spin around the block and to my delight the engine performance returned to the kind of performance I had been used to with my other 2.5TDs. I was like a dog with two tails with a grin stretching from ear to ear. I can't explain why there's a difference but the performance change between ecus is remarkable.

I don't want to say on an open forum what I did to get it going because it would simply provide a method of stealing an XM very easily.

My next task is to take another of my ecus apart and cut out the 93C46s to get a good copy of the dump. I can then go back and reprogramme the 93C46s so that the functionality of my keypad returns. After that, the job in hand is to understand about mapping so that I can programme the EPROMs for better fuel economy.

Until then, I'm going to enjoy some very happy motoring. Yippee.

cheers

noz B)    
Title: 2.5TD Engine ECU
Post by: xmexclusive on August 21, 2011, 12:18:51 PM
Hi All

Progress report on my 2.5 ECU investigations.

Using a spare early 212 ECU (L17 type) I have read the contents of the two EPROMS and the associated serial EEPROM devices. Had to cut the chips out to do this.
This ECU is currently immobiliser protected set to the early Garage code of 0001.
The chips were then reinserted in the ECU (all now socketed) and the ECU tested as still working. I did this one chip at a time just to be sure I would know which one had a problem if the ECU had failed.
One interesting feature was that on reinstalling the ECU in the car to test it would occasionally go code free (green light) for first start up. Switch off and retry and the code was required. I think this is just a feature of powering down the ECU to work on it.
In the car the ECU stays powered so the two ECU micros start up in the designed order. If the ECU is left off power for a while I suspect that it is a matter of luck which micro runs first. If the non code one happens to win the ECU thinks that it is code free.  
I have also programmed new serial EEPROM's so will test these in the next day or so.

Just tried resetting the ECU in the car with start codes 2345 and 6789.
Read the EEPROM chips and worked out which one gets data changed by the revised code. So now know which chip and which data bits change.
I am recording chip contents for each set of numbers.
I will try a few more combinations of numbers plus the deferred locking code of 0000. This might not be stored in the same way or positions as the immo ones.
Bit of a slog but if I try a few more selected number combinations it should be possible to work out the storage algorithym.

Tried a few more codes now.
This early type ECU has a delay on the immobiliser kicking in.
Have to wait for this to time out every time I refit or test the ECU.
That is getting a bit annoying.
Tried the 0000 reset and it worked fine making the car code free.
After I took the ECU out to read the chip though when refitted it refused 0000 and had reverted to the previous used code.
May have to try that check again.
Now tried 9012 to give me all 10 numbers used.
Next will be changing just a single number so will try 9013.

Need to find my information on HEX coding so I can start to see if the decoding is a simple look up table.

Progress so far means that I can rest an early 212 (L17) 0001 type ECU even if the code is lost.

The temptation is to move onto later ECU's but I think I will stick with this early one until I have a much better understanding of how it works. That might well save a lot of work by having a much better idea what to look for in the later ECU's.

Some real progress today after a bit of a wild goose chase since the last report.
Found that I could only find a reliable alogrithm to understand the first two digits of the Immo code from my EEPROM reading. Spent some time looking for the last two digits in the other EEPROM on the ECU. Data was changing in both EEPROM's but I could not decode those last two digits. It turns out that all the Immo code data is in the first chip and I had been missreading them. I can now see current and previous Immo codes as plain text in the correctly read chip. At least the decoding work has given me a good understanding of how this ECU processes the Immo codes.

Have now worked through a series of Immo codes to confirm that all the codes I used were stored in plain text and that the location in the EEPROM does not change.
I have also read a late version ECU EEPROM and the Immo code appears to be stored in the same way in the same locations.
Will now work with the early ECU to understand how the garage code and keypad deferred locking are dealt with.

Will try to update as I go with this.

John