Shuo Hou

Question About SWT Driver of MPC5748G

Discussion created by Shuo Hou on Mar 18, 2016

Hello everyone!

    Recently, I'm writing the SWT driver of MPC5748G. But I got a probem when I unlock watchdog. The code is as follows.

/* unlock watchdog */

void swt_unlock(void)

{

    SWT_1_SR = 0xC520;

    SWT_1_SR = 0xD928;

}

    When i run  "SWT_1_SR = 0xC520", there will be " No source available for " " ". So I can't debug my code step by step. How could i do. I would be very grateful if any one can help me.

Outcomes