Hi Mark
I have a new board with a MCF52259 processor (same as I have used for years), but this one is crashing at he below function (I have removed here the other instructions and left the one causing the issue.:
extern void fnInitialiseRND(unsigned short *usSeedValue) // {84}
{
if ((*usSeedValue = *ptrSeed) == 0) { // we hope that the content of the random seed is random after a power up
*usSeedValue = 0x127b; // we must not set a zero - so we set a fixed value
} // after a reset it should be well random since it will contain the value at the reset time
}
As soon as I go into the line: if ((*usSeedValue = *ptrSeed) == 0) {
I get an undefined interupt:
static __interrupt__ void undef_int(void)
{
while (1) {} // wait here and analyse with debugger....
}
Any pointers what can cause this?
Best Regards
Neil