XK8 / XKR ( X100 ) 1996 - 2006

The AJ27 ECU

Thread Tools
 
Search this Thread
 
Old Jul 6, 2024 | 10:50 AM
  #1  
Chirpy's Avatar
Thread Starter
|
Senior Member
5 Year Member
Liked
Joined: May 2016
Posts: 173
Likes: 129
From: Castle Rock, CO
Default The AJ27 ECU

Our AJ27 ECU design is now about 25 years old, and the AJ26 even older. As items go obsolete (the Pedal Position Sensor comes to mind – although ASI does a good refurb job at a price), it is probably going to get more challenging to maintain everything. In addition, the AJ27 has never been well supported, as far as I can tell, by the tuning companies. Two possible reasons are:
- it’s not so easy to analyze
- there was never enough business out there to justify supporting it

There is probably a bit of truth to both. As far as analysis goes, some of the challenges seem to be:
- Slightly obscure CPU – The Motorola HC16
- HC16 is not the easiest to analyze, since paged memory architecture requires knowing both the page and the address, which are stored separately
- HC16 variant (Y5 or Y6) used is not well documented – proprietary for Denso
- TPU2 module controls the injectors, but the TPU2 microcode (as far as I can tell) is Denso proprietary, not Motorola standard, so undocumented
- Dual CPU architecture adds complexity with shared RAM space to coordinate between the processors, and more complex reflash support – boot CPU1, load CPU1 boot code, boot CPU2, load CPU2 bootcode, reflash CPU1, reflash CPU2
- extracting the bootcode is fiddly, stopping either CPU results in hardware reset by loss of hardware watchdog to Denso power supply chip
- etc.

So, for no good reason, I’ve been poking into the code after pulling together various tools. If you want to do the same, you can find a Ghidra processor module for the HC16, a Ghidra loader for IDS .b68 flash files, and some key documentation at https://github.com/chirpy8. If you want a bit more info, read the posts at https://chirpy8.github.io/posts/

I’ve been focusing on XKR2002 flash files (F27SC074, etc.), so I have much much more info on that particular load. I will try and post more insights as I get around to it. Also I have coded a rough and ready benchtop reflash tool (since I was concerned that IDS would puke on a wrong checksum for a modded file – I now think it won’t for various reasons, but I find IDS annoying anyway), so I’ll try and post/share that at some point, once it’s more stable.

Since a little knowledge is a dangerous thing, this should help you on your way to modding your AJ27 and ruining your engine in no time at all :-) . I hope this is useful to someone, have fun.
 
Reply
Old Jul 7, 2024 | 09:32 AM
  #2  
dfbender's Avatar
Senior Member
5 Year Member
Liked
Loved
Community Favorite
Joined: Jul 2020
Posts: 221
Likes: 95
From: Northern CA Santa Cruz
Default

I have the same year and model so I (and others) I will be following your progress. 👍
 
Reply
Old Jul 10, 2024 | 04:27 PM
  #3  
Chirpy's Avatar
Thread Starter
|
Senior Member
5 Year Member
Liked
Joined: May 2016
Posts: 173
Likes: 129
From: Castle Rock, CO
Default

Since there are a few more canbus extended PIDs (UDS service 0x22) that have showed up after analysis, compared to those listed in Dale's (crbass) spreadsheet (https://www.jaguarforums.com/forum/x...d-list-233056/),
attached is a quick summary. I did not attempt to merge into the original, but obviously that could be done.
 
Attached Files

Last edited by Chirpy; Jul 10, 2024 at 04:32 PM. Reason: trying to add attachment
Reply
Old Jul 12, 2024 | 03:58 PM
  #4  
tlindi's Avatar
Senior Member
10 Year Member
Liked
Loved
Joined: Nov 2012
Posts: 157
Likes: 39
Default

Originally Posted by Chirpy
Our AJ27 ECU design is now about 25 years old, and .... I hope this is useful to someone, have fun.
Wanna try to poke it with WDS on Engineering mode
 
Reply
Old Feb 16, 2025 | 03:33 PM
  #5  
Chirpy's Avatar
Thread Starter
|
Senior Member
5 Year Member
Liked
Joined: May 2016
Posts: 173
Likes: 129
From: Castle Rock, CO
Default

I created an ECU re-flash/cloning tool, and a patching script, for anyone who wants to use a spare ECU to clone their existing unit (all AJ27 ECUs appear to be the same hardware) and tinker with mods. Still a work in progress, but seems to work so far….

Details at the website posted earlier.
 
Reply
Old Feb 17, 2025 | 06:48 AM
  #6  
Adriantj's Avatar
Junior Member
10 Year Member
Joined: Sep 2015
Posts: 18
Likes: 12
From: Normandy
Default

An_Introduction_to_the_HC16_

This might help the process.
 
Attached Files
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Wildcat_nl
XJ XJ8 / XJR ( X308 )
3
May 22, 2022 11:18 AM
elDariusVargas
S-Type / S type R Supercharged V8 ( X200 )
3
Jan 2, 2022 06:22 PM
mazzerman
XK8 / XKR ( X100 )
7
Jul 25, 2021 05:13 AM
florin
X-Type ( X400 )
3
Nov 21, 2014 03:38 PM
stanjag
S-Type / S type R Supercharged V8 ( X200 )
3
Nov 1, 2012 08:24 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 



All times are GMT -5. The time now is 04:48 AM.