Hello Jens,
You didn't answer my latest post, I hope you didn't gave up on me :). I managed to reproduce the same problem on a very simple code (on taster interrupt toggle pin - LED on/off):
void main (void)
{
//.....clock and port settings
__bis_SR_register(GIE);
while(1);
}
#pragma vector=PORT2_VECTOR
__interrupt voidP2ISR(void)
{
P4OUT ^= 0x20;
P2IFG = 0x00;
}
This code doesn't work - I get the same as in a 'big' one: sometimes VMAIFG is set, sometimes code exit reached.
If I do
while (1) {__no_operation()};
instead of simple
while(1);
at the end of main, everything works fine.
If I apply the same 'solution' to my timer/SPI/DMA code I still have the same problem, probably because the same thing happens somewhere else in code. Do you now what is the reason? (I can't find which lines produce the problem if I don't know the cause).
I forgot to mention that I use IAR compiler and FET emulation tool (if that is of any importance).
Best regards,
Dragana