Hardware watchdog SP706SEN

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

Hardware watchdog SP706SEN

5,606 Views
haibohe
Contributor II

Freescale Support:您好

CPU: i.MX6Q fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga

Project requirements:

    Because the product demand WDI uses an external watchdog (Hardware watchdog SP706SEN), the uboot and kernel how to add this drive IO interrupt handling it?

    Hardware watchdog SP706SEN

Please help

0 Kudos
Reply
4 Replies

4,849 Views
haibohe
Contributor II

From uboot to kernel's external watchdog to add code or open what flag, please help, thank you

0 Kudos
Reply

4,849 Views
igorpadykov
NXP Employee
NXP Employee

Hi haibo

one can modify wdog driver removing processor wdog and adding external watchdog

codes, please check attached Linux Manual Chapter 50 Watchdog (WDOG)

Driver Linux Manual. For uboot one can check

[U-Boot] [PATCH 1/1] mx51/mx53/mx6: add watchdog

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

4,849 Views
haibohe
Contributor II

WDT_177.png

Figure:

app test

#include <stdio.h>

#include <stdlib.h>

#include <unistd.h>

#include <fcntl.h>

int main(void)

{

  int fd = open("/dev/watchdog", O_WRONLY);

  int ret = 0;

  if (fd == -1) {

  perror("watchdog");

  exit(EXIT_FAILURE);

  }

  while (1) {

  ret = write(fd, "\0", 1);

  if (ret != 1) {

  ret = -1;

  break;

  }

  printf("hehaibo test\n");

  sleep(1);

  }

  close(fd);

  return ret;

}

How to WDI -> 177 the output pin of the IO (DISP0_CONTRAST)

0 Kudos
Reply

4,849 Views
haibohe
Contributor II

SP706SEN.png

WDOG.pngWDI.png

SW1 for the closed, Constant reset,In the boot Start feeding the dog ,How to deal with, thank you

0 Kudos
Reply