Regarding the SWT_0 test, I believe the issue is related to the checking and clearing of the interrupt flag: pSwt->IR.B.TIF = 1U; The interrupt, which is defined in the Swt_Ip_Irq.c driver file, calls the function Swt_Ip_IrqHandler(), where the TIF flag is cleared before the callback is invoked.
Given this behavior, I would kindly like to ask for clarification:
According to the AUTOSAR architecture, should this interrupt be handled entirely by the MCAL driver,
or should it be implemented outside of the MCAL, especially in the context of safety mechanisms such as sCheck???