can any one have watchdog interrupt handler for LPC2366. i dont know what to do inside watchdog interrupt handler.Is clearing bss and scratch area in lpc2366 is must?if so how to implement it.Is copying stack to ram area is must?if so how to implement it.How about uninitilised data section??can any one have any idea?
Why do you think you would need to copy any stack etc? Are you really talking about a watchdog interrupt - it seems more like you are thinking about a watchdog reset.
If you configure the watchdog to generate a reset, you don't need to do anything else than to kick/feed the watchdog regularly. If you fail, the processor will reset and reboot your program almost identicall to a power-on reset. The only difference is that the RSIR register can be read and it will tell you that it was a watchdog restart and not a power-on reset, or an external reset or a brownout reset.