hi, im using s32k344, im trying to build a simple project to toggle a led and use timer as my delay.
i have included GPT as a peripheral and configured the settings of it using gpt_example as a reference, after that i added a clock and gave it 40MHZ as shown below
now im able to toggle the led but the timer on it is not 1 second although i used this function Gpt_StartTimer(GptConf_GptChannelConfiguration_GptChannelConfiguration_0, 40000000);
my channel tick frequency is also 40MHZ .
i used the function Mcu_GetClockFrequency(PIT0_CLK); to look at the frequency of the clock i got it as 12MHZ.
this is my clocks diagram :
im also sharing my code , can you please help me with this issue.
thanks.
The configuration of the PIT looks correct.
Could you help me by running the Gpt_Example_S32K344 and tell me if you observe the same behavior? Additionally, could you tell me if you are using a custom board?
B.R.
VaneB
Hi @VaneB thanks for replying. Yes im using a custom board , i have another code which works properly on it ( so i dont think its a hardware issue ) , also trying the GPT example code works perfectly.
i already did the configurations using the example code as a reference.
Yes, I’m still experiencing the same problem
Could you change the pin to measure the signal and show an image of it?
From the project attached before, the differences I observed from the Gpt example are:
Could you share the image I previously mentioned to verify the signal behavior?