Hi,
So i have this problem that when i debug the debugger is stuck at the PDB_DRV_ClearTimerIntFlag() function which is called here :
void PDB1_IRQHandler(void)
{
/* Clear PDB instance Interrupt flag */
PDB_DRV_ClearTimerIntFlag(INST_PDB_1);
}
I cannot go beyond this point and not even in the while() loop. I suspect that the problem is in the Optimization (-O3) because i have many time critical functions the software cannot clear the flag as fast(just my theory). I have also tried with -O0 but smae result. The reason i suspect this is because i worked once when i tried with -O3 level but not anymore after that(But maybe that is just a lucky strike). So how can i fix this problem?
I am using a s32k144 Microcontroller and a s32 Design studio version 3.5 as well as the intern PE Micro Debugger.
i will attach snippets below as well as the clock configuration.

the main :

Clock Config:

Best regards and Thank you