S32K1 RTD MCAL Wdg Example's Problem

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

S32K1 RTD MCAL Wdg Example's Problem

965 Views
WeoWang
NXP Employee
NXP Employee

Hi Dear Colleagues,

In S32K3 RTD MCAL's Wdg example(SW32K3_RTD_4.4_R21-11_3.0.0_P01_HF02\eclipse\plugins\Wdg_TS_T40D34M30I0R0\examples\EBT\S32K3XX\Wdg_Example_S32K344), I add a while(1) here:

WeoWang_0-1693304795074.png

And I set a breakpoint here when debugging:

WeoWang_1-1693304897154.png

This callback can be entered successfully.

While if I do the same thing in S32K1 RTD MCAL's Wdg example(SW32K1_RTD_4.4_1.0.1_HF01\eclipse\plugins\Wdg_TS_T40D2M10I1R0\examples\EBT\Wdg_example_S32K118):

WeoWang_2-1693305013175.png

The breakpoint can't be triggered:

WeoWang_3-1693305074724.png

If there anything wrong in S32K1's RTD MCAL Wdg example? Thanks.

 

 

0 Kudos
Reply
3 Replies

889 Views
NamLee
NXP Employee
NXP Employee

Hi WeoWang,

I just compare between 2 examples, for GPT ISR callback function, you should enable this checkbox i think.

K3_GPT_Isr.png

K1_GPT_Isr.png

Please help me to check this one.

Thank you,

Nam.

0 Kudos
Reply

873 Views
WeoWang
NXP Employee
NXP Employee

Hi Nam,

Thanks for your reply, I enabled this checkbox, regenerated, and compiled the code, it seemed that the callback function to feed that watchdog still couldn't be entered successfully. 

I tried another example (SW32K1_RTD_4.4_1.0.1_HF01\eclipse\plugins\Wdg_TS_T40D2M10I1R0\examples\EBT\Wdg_example_S32K144), I found that the checkbox was not enabled either:

WeoWang_0-1694773211550.png

But in this example, the callback function to feed that watchdog could be entered successfully:

WeoWang_1-1694773385310.png

Best Regards

Weo

 

 

0 Kudos
Reply

775 Views
Luke_Chun
NXP Employee
NXP Employee

Hello Weo

 

By my email, I saw similar case with your case using RTD(non-MCAL) for S32K118 that was non occurring WDG ISR..

 

However WDG ISR is occurring, just T32 could not make break..

 

I have attached my example project....

After WDG reset, I can saw the WDG and RCM ISR count is increasing like below...One checking point, it should be not adding any break point into WDG/RCM ISR....

If I try to make the break into ISR loop, just Reset is showing.....  

Luke_Chun_0-1697090692443.png

Luke_Chun_2-1697090907331.png

 

 

 

for your test, if you will jump to 65line(skip 64 line), MCU will make WDG action...

Luke_Chun_1-1697090803295.png

 

 

 

Thank you.

 

  

0 Kudos
Reply