Query regarding watchdog timer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Query regarding watchdog timer

1,657 次查看
sourabhjain
Contributor III

Hi,

I am using MPC5777C without OS

i want to use watchdog timer but there are two kind of watchdog timer one is core 0 watchdog timer and other is software watchdog timer.

i want to reset the device using watchdog timer for that which watchdog timer is should be used core0 or SWT?

what is difference between core0 watchdog timer and software watchdog timer?

5 回复数

1,092 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

because MPC5777C uses e200z7 core, which was used in previous MPC5 microcontrollers, there are two types of watchdog. Legacy core watchdog and current software watchdog. 

In fact, these timers are very similar, but I recommend you use SWT watchdog instead of core watchdog, because SWT is memory mapped and it is easier to configure.

Please check the example below:

Example MPC5744P SWT Short reset GHS614 

Remember, there is no short or long reset in MPC5777C. Please see the figure below:

pastedImage_3.png

Regards,

Martin

0 项奖励
回复

1,092 次查看
sourabhjain
Contributor III

Hi Martin,

How to reset MPC5777C device using SWT?

Do you have any code written for MPC5777C using SWT?

0 项奖励
回复

1,092 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

We do not have code for MPC5777C, but you can use example for MPC5744P I posted you above or S32R example:

https://community.nxp.com/docs/DOC-334483 

Regards,

Martin

0 项奖励
回复

1,092 次查看
sourabhjain
Contributor III

Hi Martin,

how to configure NCF14 channel in FCCU_NCFS_CFG in MPC5777C?

In Reference manual configuration is like this so how to configure particular NCF14 in this configuration?

pastedImage_3.png

i tried using this below configuration which is given in above example you suggested but this does not work and code is going in infinite loop and device is not reset.

#if LONG_RESET
/* Configure FCCU to react on NCF14 with long functional reset */
FCCU.NCFS_CFG[0].R = 0x20000000; //long functional reset reaction

#else
/* Configure FCCU to react on NCF with short reset */
FCCU.NCFS_CFG[0].R = 0x10000000;

#endif

0 项奖励
回复

1,092 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

I created some simple Software watchdog example. Please check the example in the post attachment.

Regards,

Martin