Hello talha.uyar@karel.com.tr,
Really appreciate your attempts. Here is my comments:
I really hoped you wouldn't say this was a hardware issue. I can share the .elf file for my main project so that you can test it in your hardware. If you have S32K118 EVB, this code should change the colour of the RGB LED every at every two seconds (Blue -> Green -> White -> Red). If it is also changing its value at every two seconds in your hardware, then it cannot be a hardware issue, right?
I will also build a sample project from the SDK and test it as you have suggested.
You've integrated your project with S32DS, am I right? If it's correct, you can send me the whole project, and then I can import to my S32DS to try in my site. Otherwise, you can send me the .elf file.
Also, I have looked at the lpit_periodic_interrupt_s32k118 example and saw that FIRC was used as the clock source for LPIT, so I tried doing that. It works, the frequency of my timer is 24 MHz when I use FIRC as the source instead of SOSC.
Is there any particular reason to set SOSC for the LPIT clock source? Is it in any way advantageous to do so? If not, I will just change my clock source to FIRC.
Can you try the lpit_periodic_interrupt_s32k118 with SOSC clock? As I know, there isn't any advantage or recommendation to use SOSC rather than choosing FIRC as LPIT clock source. So you can switch to FIRC.
Nam