Other Parts Discussed in Thread: MSP430F5529, MSP-FET, MSP430F5438
Hello,
I am using a MSP430F5529 and IAR-Embedded-Workbench.
My code is using the TI example code MSP430F552x_UCS_07.c where my problem arises during debugging.
During debugging step by step I am getting the following information:
"Warning CPU is off (Low Power Mode) and interrupts are disabled. Cannot execute step/go)."
Then the debug log window shows the following message:
"The stack pointer for stack 'Stack' (currently Memory:0xFFF6) is outside the stack range (Memory:0x4360 to Memory:0x4400) "
This happens somewhere in the loop for stabilization of the 32kHz-quartz or within __delay_cycles(782000).
As this error does not occure always on the same line - and the most of the times there is even no error mentioned but one of the loops is just running endless - I think it is probably a matter of time and not a matter of code if/when the failure occurs. One time I even have seen that the programm flow jumps back without any warning or message to __delay_cycles(782000) which can only be made by a strange stack pointer.
Can anybody put my nose into the right direction where the problem could be?
Can this problem for example be caused by the PC when saving power consumption of a USB device (FET)?
I am asking this because from time to time I get the message that there is a failure of connection when I start debugging again.
Many thanks in advance!
Bob