I am using a MCF52259 with mqx 3.8.1. I am trying to use the reset control register to do a software reset, and when I do I get a some weird stack trace (below) and the processor locks up. Location 0x8 hex is the illegal instruction vector address, but I am not using interrupts for this program, and they are disabled. The code runs fine, until the reset where I get these problems.
This is the only code I have for the reset, and its all the manual shows that I should need.
MCF_RCM_RCR |= MCF_RCM_RCR_SOFTRST;
Thanks for any help you might be able to give,
Kevin
| 3 0x00000008 (0x00000008)() 0x00000008 | |
| 2 0x20007FFC (0x20007FFC)() 0x20007ffc | |
| 1 _startup() startup.c:55 0x00000010 | |