Dear all,
I am using MPC5777C.
I have configured SWT_B same way as SWT_A but it is not starting to count. So I have seen it is configured correctly and its register values are correct but not starting.
hope someone can help me,
thank you.
Solved! Go to Solution.
Hello,
Hard to say, it is pretty simple task.
void SWT_B_Init(void)
{
/* unlock SWT_A */
SWT_B.SR.R = 0xC520;
SWT_B.SR.R = 0xD928;
SWT_B.MCR.R = 0xFF00004A; // Configure SWT_B, SWT_B dissabled
SWT_B.TO.R = 0x0005FCD0; // Configure timeout for SWT
SWT_B.MCR.R = 0xFF000049; // Configure SWT_B, SWT_B enabled
}//SWT_B_Init
If you share with me your failing code, I can check it here on my evaluation board. There must be some very basic mistake.
One think which comes to my mind, is that you are looking at SWT in debugger. By default debugger disable watchdogs, so one can debug.
Otherwise the SWT timeout would make debugging impossible.
Best regards,
Peter
Hello,
Hard to say, it is pretty simple task.
void SWT_B_Init(void)
{
/* unlock SWT_A */
SWT_B.SR.R = 0xC520;
SWT_B.SR.R = 0xD928;
SWT_B.MCR.R = 0xFF00004A; // Configure SWT_B, SWT_B dissabled
SWT_B.TO.R = 0x0005FCD0; // Configure timeout for SWT
SWT_B.MCR.R = 0xFF000049; // Configure SWT_B, SWT_B enabled
}//SWT_B_Init
If you share with me your failing code, I can check it here on my evaluation board. There must be some very basic mistake.
One think which comes to my mind, is that you are looking at SWT in debugger. By default debugger disable watchdogs, so one can debug.
Otherwise the SWT timeout would make debugging impossible.
Best regards,
Peter
I solved problem. Thank a lot for your helps.