XK8 / XKR ( X100 ) 1996 - 2006

The AJ27 ECU

Thread Tools
 
Search this Thread
 
  #1  
Old 07-06-2024, 10:50 AM
Chirpy's Avatar
Senior Member
Thread Starter
Join Date: May 2016
Location: Castle Rock, CO
Posts: 124
Received 66 Likes on 41 Posts
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.
 
The following 4 users liked this post by Chirpy:
baxtor (07-06-2024), dfbender (07-07-2024), michaelh (07-07-2024), tlindi (07-12-2024)
  #2  
Old 07-07-2024, 09:32 AM
dfbender's Avatar
Senior Member
Join Date: Jul 2020
Location: Northern CA Santa Cruz
Posts: 160
Received 55 Likes on 39 Posts
Default

I have the same year and model so I (and others) I will be following your progress. 👍
 
  #3  
Old 07-10-2024, 04:27 PM
Chirpy's Avatar
Senior Member
Thread Starter
Join Date: May 2016
Location: Castle Rock, CO
Posts: 124
Received 66 Likes on 41 Posts
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; 07-10-2024 at 04:32 PM. Reason: trying to add attachment
  #4  
Old 07-12-2024, 03:58 PM
tlindi's Avatar
Senior Member
Join Date: Nov 2012
Posts: 103
Received 22 Likes on 17 Posts
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
 
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Wildcat_nl
XJ XJ8 / XJR ( X308 )
3
05-22-2022 11:18 AM
elDariusVargas
S-Type / S type R Supercharged V8 ( X200 )
3
01-02-2022 06:22 PM
mazzerman
XK8 / XKR ( X100 )
7
07-25-2021 05:13 AM
florin
X-Type ( X400 )
3
11-21-2014 03:38 PM
stanjag
S-Type / S type R Supercharged V8 ( X200 )
3
11-01-2012 08:24 AM

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


Quick Reply: The AJ27 ECU



All times are GMT -5. The time now is 09:26 AM.