Any ideas what could cause the chip to do a "reset" leaving all RST.STATUS bits zero?
Could there be something in the ASF library that could cause a jump to reset vector without actually doing a reset?
In the beginning of main I have a breakpoint after which I write 0x3F to the RST.STATUS (both before an eternal loop) .
When I start debugging the breakpoint "fires" and the PDIRF-bit is set (as expected). On 'continue', the bits are reset and after a while
the breakpoint before the eternal loop fires again, but now the RST.STATUS is all zeroes.
The stack seems to be OK - checked by putting a breakpoint at __init (0x000006cc) on one such run.