Hi,
The target of this project is to generate an interrupt each 1 second. I have worked in a project provided by NXP called "S32K344_CAN_bootloader_RTD20". I have configured the interrupt in the folder called "Boot" (In the next picture you can see the configuration). I try to configurate the interrupt but I have different errors because I don´t achieve that the interrupt works each 1 second. The count means each second because I want to count up to 10 seconds and get out of the "While". I have also sent you the configurations of the clocks. I don´t know if I have to configure the periferics of the project.
Could you tell me the steps to achieve the interrupt each 1 second? Moreover, I don´t know if the value of "TestDelay" is correct as if I implement another higher value the system has problems.
I hope your reply as soon as posible.
Thank you for all,
Hi,
I haven´t achieved the target yet because I have different problems with the watchdog of the project and I don´t know the solution of this.
Could you told me the steps to achieve the target?
I have sent you previously the clock of the system so I don´t know if I have to modificate the values of the watchdog:(I have sent you some pictures of the watchdog´s configuration).
Please create a new thread for the wdog, it is not related to the original subject of this one.
Regards,
Daniel
Hi @JonAnder_Amante,
I don't see any interrupt configuration there.
You are using a SW delay, which will never be precise regardless of the clock configuration.
To get a precise delay, you need a HW timer to measure the 1s precisely.
Regards,
Daniel
Hi,
I only want to have a time that more or less It´s about 10 seconds.
Could you tell me the steps to do this option?
Could you tell me the steps to make a hardware interrupt each 1 second?
Thank you,
Refer to this RTD example: Pit_Gpt_Ip_Example_S32K344
It toggles an LED from PitNotification() every 1s.
Regards,
Daniel