2009-05-24 06:46:36     watchdog irq handler

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-05-24 06:46:36     watchdog irq handler

Servaes Joordens (NETHERLANDS)

Message: 74500   

 

Does anyone know how to handle the interrupt coming from the watchdog when the watchdog timer expires?

 

I am using the bluetechnix tcm-bf537bp.

 

I tried:

request_irq(IRQ_WATCH ....

but this did not work.

QuoteReplyEditDelete

 

 

2009-05-24 08:58:56     Re: watchdog irq handler

Robin Getz (UNITED STATES)

Message: 74503   

 

Servaes:

 

There is a watchdog driver already - why not just use that?

 

-Robin

QuoteReplyEditDelete

 

 

2009-05-25 07:33:53     Re: watchdog irq handler

Servaes Joordens (NETHERLANDS)

Message: 74535   

 

Robin,

 

I solved the problem already. I was a silly bug.

 

The real problem with rebooting my system still exists:

 

I have a problem with my system that sometimes a watchdog reset does not result in a reboot of the system. It just hangs.

 

I suspect the flash cannot be read correctly to start u-boot again. We have two additional gpio pins to enable flash memory above 2MB. I think these pins are not reset to 0. So when the processor starts to load the boot-loader from flash it tries to read above 2MB for the boot-loader.

 

Therefore I want to catch the watchdog interrupt and handle those gpio pins before resetting the processor.

 

Servaes

QuoteReplyEditDelete

 

 

2009-05-25 17:03:03     Re: watchdog irq handler

Robin Getz (UNITED STATES)

Message: 74546   

 

Servaes:

 

Then you want to do something like:

 

- change the watchdog driver so it does a NMI - not a reset.

 

- add a NMI function which wiggles your GPIO, and does a panic - or some other form of reset.

 

-robin

QuoteReplyEditDelete

 

 

2009-06-11 06:41:16     Re: watchdog irq handler

Rekha B (INDIA)

Message: 75528   

 

Hi,

 

As we are also facing the same issue with BF533, we are trying to use NMI instead of reset.

 

Kindly let us know how to configure it.

 

Thanks.

Attachments

    Outcomes