Problem generating an interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem generating an interrupt

229 Views
JonAnder_Amante
Contributor I

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,

JonAnder_Amante_0-1717050513970.png

JonAnder_Amante_1-1717050598681.png

JonAnder_Amante_3-1717050785135.pngJonAnder_Amante_2-1717050738110.png

JonAnder_Amante_4-1717051102726.png

 

 

 

 

0 Kudos
5 Replies

113 Views
JonAnder_Amante
Contributor I

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).Captura de pantalla 2024-06-06 115729.png

Captura de pantalla 2024-06-06 115649.png

0 Kudos

111 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Please create a new thread for the wdog, it is not related to the original subject of this one.

 

Regards,

Daniel

0 Kudos

205 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos

202 Views
JonAnder_Amante
Contributor I

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,

0 Kudos

195 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Refer to this RTD example: Pit_Gpt_Ip_Example_S32K344

It toggles an LED from PitNotification() every 1s.

danielmartynek_0-1717161440521.png

 

Regards,

Daniel

0 Kudos