Controller Seems to be going into Undefined Exception on Reset
Have you disabled the watch dog timer? If not providing a proper handler for the WDT and if it comes up enabled by default (a common scenario) then this may very well be the root of your problem.