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
Hi @snow3847,
Please refer to the release notes of the SDK you use.
There is a list of compiler option that must be used, otherwise we cannot guarantee the functionality of the SW.
This is from S32SDK_for_S32K1xx_RTM_4.0.2_ReleaseNotes.pdf
Regards,
Daniel