RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Thu Dec 25, 2025 4:25 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Wed Jun 09, 2021 9:24 pm 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
Edit to avoid future confusion

This ROM has identical SupMask values in two places and I was using the wrong one.


I was using SupMask base address 0x3D04

The actual SupMask is at 0x3C4D

Both have identical values. I'm not sure what the 2nd one is for, if it's used at all.


Last edited by bradsm87 on Mon Jun 21, 2021 10:18 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Thu Jun 10, 2021 10:27 pm 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
Progress has slowed in recent times with these ECUs and I understand that as people's motivation move on to other things.

I'm a hobbyist tuner and I'd really like to help push progress with these ECUs to keep going. I occasionally get paid tunes and I'm more than happy to give half of what I get to people who are familiar with disassembling these ROMs who can help get to the bottom of things like this. I can contribute by testing things in the real world and submit information updates and changes for NissanDefs updates. I think DTC SupMasks not working is a pretty serious issues that needs investigating.

Any help would be greatly appreciated. I can pay.


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Fri Jun 11, 2021 2:56 am 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
On my bench ECU with another DTC code, I just tried both the SupMask method and zeroing out the option data and even that did not stop that DTC coming up.

I even tried BitEdit's trick of zeroing out the fault code in the descriptor table but that just made it come up as P0000.


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Fri Jun 11, 2021 4:23 am 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
OK I just discovered the Mode 6 TID SupMask as well although I'm not sure how helpful that will be in this case because some of the codes that I unsuccessfully disabled have nothing to do with any of the mode 6 TIDs.

I want to try and reduce the amount of times I flash fix candidates to the owner's vehicle remotely so I'm hoping to get some ideas before I stuff the owner around too much.

Cheers!


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Fri Jun 11, 2021 8:42 pm 
Offline
RomRaider Donator
User avatar

Joined: Fri Jul 26, 2019 3:35 am
Posts: 789
Location: United States of America
bradsm87 wrote:
Has anyone come across the DTC SupMasks not being sufficient to disabling codes? I'm tempted to zero out the relevant option codes as well but I thought the option codes aren't used if the DTCs are disabled on the SupMasks?


Hmmm. AFAIK, supmasks should be the end all say all no matter what. Just like CID supmasks, if it's not enabled, then the logic won't be enabled. I've had no issues with disabling any DTC through supmasks within CF48D. Now, it's interesting how this isn't appearing to be the case for you. Definitely something worth looking into further!

_________________
NissanDefinitions Repository


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Fri Jun 11, 2021 8:51 pm 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
Pytrex wrote:
bradsm87 wrote:
Has anyone come across the DTC SupMasks not being sufficient to disabling codes? I'm tempted to zero out the relevant option codes as well but I thought the option codes aren't used if the DTCs are disabled on the SupMasks?


Hmmm. AFAIK, supmasks should be the end all say all no matter what. Just like CID supmasks, if it's not enabled, then the logic won't be enabled. I've had no issues with disabling any DTC through supmasks within CF48D. Now, it's interesting how this isn't appearing to be the case for you. Definitely something worth looking into further!


My latest suspicion is that the 3rd byte in the DTC descriptor table, that we call a hardware flag, may be an indicator of groups of DTCs that must be either all enabled or all disabled and disabling individual DTCs must not work.

I don't want to stuff the owner around any more so I'm going to flash a change with all rear O2 DTCs disabled via SupMask, all DTC options for those DTCs zeroed out AND the mode 6 SupMasks for those functions disabled. I'll need to wait for another vehicle to test whether or not zeroing the options was necessary or not.


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Mon Jun 14, 2021 12:26 pm 
Offline
Newbie

Joined: Sun Jan 01, 2017 6:17 pm
Posts: 22
bradsm87 wrote:
Pytrex wrote:
bradsm87 wrote:
Has anyone come across the DTC SupMasks not being sufficient to disabling codes? I'm tempted to zero out the relevant option codes as well but I thought the option codes aren't used if the DTCs are disabled on the SupMasks?


Hmmm. AFAIK, supmasks should be the end all say all no matter what. Just like CID supmasks, if it's not enabled, then the logic won't be enabled. I've had no issues with disabling any DTC through supmasks within CF48D. Now, it's interesting how this isn't appearing to be the case for you. Definitely something worth looking into further!


My latest suspicion is that the 3rd byte in the DTC descriptor table, that we call a hardware flag, may be an indicator of groups of DTCs that must be either all enabled or all disabled and disabling individual DTCs must not work.

I don't want to stuff the owner around any more so I'm going to flash a change with all rear O2 DTCs disabled via SupMask, all DTC options for those DTCs zeroed out AND the mode 6 SupMasks for those functions disabled. I'll need to wait for another vehicle to test whether or not zeroing the options was necessary or not.


There is a list of bytes located prior to the DTC list that contain bits for if the DTC is enabled or disabled. Instead of defining individual DTCs and using the "supmask" (which disables every part of the DTC, including freeze frame related data which you may need) you should be defining the list as it is, a structure. There is a byte in the structure which indicates the byte offset in the list i mentioned, and another byte which indicates the bit to turn on/off in order to disable the DTC. In some cases, there will be multiple instances of the same DTC, this is why defining the list as a structure is far better than using this supmask technique you've all been doing.


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Mon Jun 21, 2021 4:06 am 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
Blizzard25 wrote:
There is a list of bytes located prior to the DTC list that contain bits for if the DTC is enabled or disabled. Instead of defining individual DTCs and using the "supmask" (which disables every part of the DTC, including freeze frame related data which you may need) you should be defining the list as it is, a structure. There is a byte in the structure which indicates the byte offset in the list i mentioned, and another byte which indicates the bit to turn on/off in order to disable the DTC. In some cases, there will be multiple instances of the same DTC, this is why defining the list as a structure is far better than using this supmask technique you've all been doing.


This sounds interesting. Could we get some more info and examples?

Edit: I found this stuff before the DTC descriptor table for ZB060 but none of the TB48DE ROMs have this at all.


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Mon Jun 21, 2021 10:19 pm 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
First post edited :oops:


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Tue Jun 22, 2021 1:34 am 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
So VD70A has a DTC SupMask at 0x3C4D and it also has one at 0x3D04.

It looks like most, if not, all, DTCs use the 3C4D ones BUT there is one known function in here that ref the other SupMask! The same function refers to the DTC descriptor table and DTC status array too so it's definitely DTC related.

Both full SupMask 0x3D long arrays have identical values except for one single bit at offset 0x34 bit 1 for P1102.

I think I'll just set my defs up to change both SupMasks just in case and I'll stop zeroing out the DTC option data.


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Tue Jun 22, 2021 2:08 am 
Offline
RomRaider Donator
User avatar

Joined: Fri Jul 26, 2019 3:35 am
Posts: 789
Location: United States of America
Checkout CF48D’s DTC section. Eventually gonna merge more together, but each individual byte is 8 bits of DTC’s. They should all be within the same block as well.

_________________
NissanDefinitions Repository


Top
 Profile  
 
 Post subject: Re: Disabling DTC via the SupMask alone did not stop the DTC
PostPosted: Tue Jun 22, 2021 2:44 am 
Offline
Experienced

Joined: Thu Apr 14, 2011 8:16 am
Posts: 425
Pytrex wrote:
Checkout CF48D’s DTC section. Eventually gonna merge more together, but each individual byte is 8 bits of DTC’s. They should all be within the same block as well.


Yep I always got that.

My ROM has two completely separated DTC SupMask Blocks. The first one is the proper one. The second one is used by one DTC which is strange. Check it out for yourself at the two SupMask start addresses. All 61 bytes are identical between the two except for a single bit in one of them. Looks like something overlooked or laziness during VD70A's development so they just left both there rather than updating the code on that one DTC.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl