I would guess that the CPU is resetting. You should examine "12.3.2 Reset Status Register (RSR)" to find out why.
Maybe the Watchdog is enabled and not being serviced?
Maybe something is writing to the FRCRSTOUT bit in "12.3.1Reset Control Register (RCR)"?
Tom