Hi all,
some strange thing happends to Me with M52233DEMO. During startup procedure it jumps into static __interrupt__ void undef_int(void) routine (undefined interrupt) but I dont know why. if I test it on real target, watchdog led blink once and then it stops (in undef. int). If I comment out while (1) in this routine (and press F11 aprox. 10 times in debug mode), micro continues without problem and work as expected (but reset led blink once or twice during startup, so it resets during this time). Interesting is, that the same sw in simulator works without problem.
I found out it returns to static __interrupt__ void _RealTimeInterrupt(void) from undef. int. So I put breakpoint in this routine, and check it. When RealTimeInterrupt() is called, it jumps into fnRtmkSystemTick() (its ok), than it looks like RealTimeInterrupt() is called immediatelly again (RealTimeInterrupt() run again, and when its called third time, it jumps into undef. int. routine). I say It looks like its called again, but it actually never returns from RealTimeInterrupt(), just it cycle between { and }. Interesting it that all worked properly till yesterday (I just make some small changes in MyFunc which havent any context with startup code).
Another problem in simulator..when I disconnect simulator and re run it again, it doesnt connect (just 2-3 times from 10). The same problem mention Neil in
http://www.utasker.com/forum/index.php?topic=25.0 so Id like to know if someone sort it out...but it isnt so serious problem just now. Id like to know whats wrong with undef. interrupt and how to sort it out (or how to diagnostic it more precise).
Regards, Rad