Hello guys,
I'm using CC430F6135 microcontroller, whit ccs v5.3 and TI MSP-FET430UIF for debug. After I added a new static variable into my code, debugger stop starting. To test if the problem was adding the static variable, I tested this code in a new project:
#include <msp430.h>
#define ARRAY_SIZE 510
static unsigned int crash_array[ARRAY_SIZE];
/*
* main.c
*/
int main(void) {
unsigned int i;
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
for (i=0;i<ARRAY_SIZE;i++)
if (i>=1)
crash_array[i] = crash_array[i-1];
while(1);
}
If ARRAY_SIZE is 509 debugger run just fine. If ARRAY_SIZE is 510 debugger start acting strange. For example, for ARRAY_SIZE 509 version, after loading the code debugger current instruction pointer (the green highlighted line) points to the line " WDTCTL = WDTPW | WDTHOLD; ". For ARRAY_SIZE 510 version, after loading the code, there is no debugger current instruction pointer. If I pause program execution and view disassembly code, the program is always somewhere in C initialization program part.
I'm running out of ideas to solve this, so I could use some help over here.
Thank you.