I was able to resurrect my Arduino (see other thread). But my question was another one, so I think I have to rephrase my question:
I wrote code, that enables me to send commands via serial-port to my arduino. there are commands like "digitalWrite" to control pins remotely and there is one "reset", that calls the watchdog to reset the arduino remotely (so it is not called in the setup() routine). it does nothing more than:
But this does not work as I suspected. It does not reset the arduino like after connecting it. It makes the arduino flash L continously. Only dis- and reconnecting the arduino to the USB makes it work again.
Changing WDTO_15MS to other values does not change the effect. it only delays it.
Can anybody explain what's going wrong here and how to fix it?
Thank you very much!