Hello Tomas,
You are right, I have found the issue, I tried again today, added an extra if condition to my code: if(val_wd_counter & 0x00F0) then put a flag to TRUE, in order to check if the WD_ERR_2:0 ever got incremented. The flag was immediately set to true when bad timing/data refresh is performed.
The issue was that I was setting the max error counter value to 2 at INIT (change that I made in order to enter faster in Deep Fail-Safe mode) I changed it back to 6.In that previous config I believe the change(error counter incrementing) was too fast to capture it by my task(currently I am using DLT viewer to check the value of the registers, and my task that is showing this value was to slow and was all the time showing 0x0F00, or 0x0F02, 0x0F04 …0x0F0C,0x0F0E for WD_COUNTER even though the error counter was also increasing ) .
Thanks again for the help.
Best Regards,
Razvan Simtion