Hardware watchdog SP706SEN

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Hardware watchdog SP706SEN

5,271件の閲覧回数
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 件の賞賛
返信
4 返答(返信)

4,514件の閲覧回数
haibohe
Contributor II

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

0 件の賞賛
返信

4,514件の閲覧回数
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 件の賞賛
返信

4,514件の閲覧回数
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 件の賞賛
返信

4,514件の閲覧回数
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 件の賞賛
返信