Problem with watchdog

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

Problem with watchdog

281 Views
JonAnder_Amante
Contributor I

Hi,

I am trying to compile a program but I have some problems with the project. 

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.

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. When I enter to the "while" the program starts again, I suppose that it´s problem of the watchdog. You can see the configurations of the watchdog, 

Could you explain me the configurations that I have to modificate?

JonAnder_Amante_0-1718104805238.png

 

JonAnder_Amante_1-1718104804221.png

 

JonAnder_Amante_2-1718104966310.png

 

JonAnder_Amante_3-1718104966563.png

 

JonAnder_Amante_4-1718104966531.png

 

JonAnder_Amante_5-1718104966543.png

 

JonAnder_Amante_6-1718104966550.png

 

 

 

 

 

0 Kudos
Reply
3 Replies

258 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @JonAnder_Amante 

the question is not very clear to me and some screenshots are not readable.

I can see that the watchdog is configured to 0.3s and you want to wait in a delay loop for 10s. Where do you refresh the watchdog during this delay?

Regards,

Lukas

0 Kudos
Reply

250 Views
JonAnder_Amante
Contributor I

Hi,

Which is the function to refresh the watchdog and where I should implement the command?

Thank you

0 Kudos
Reply

244 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Just check the main function:

lukaszadrapa_0-1718289047487.png

... or flash functions. Simply search for WATCHDOG_HAL_Fed function in the project. 

 

0 Kudos
Reply