Hello,
After the long search to solve my problem, i have not found any valid solution.
- Explanation:
I use FreeRTOS on MSP430f1611 and make some test with the watchdog reset:
Init watchdog - WDTCTL = (WDTPW + WDTSSEL + WDTTMSEL);
But after reset the FreeRTOS does not restart...
int main(void)
{
int b, i;
unsigned long int j=0;
//vTaskEndScheduler();
msp430_clearWatchdog();
msp430_initWatchdog();
msp430_stopWatchdog();
BLINKING_LED2_init();
BLINKING_LED2_turnOn();
BLINKING_LED3_init();
BLINKING_LED3_turnOff();
_BIC_SR(GIE);
_BIS_SR(GIE);
j=0;
while(j<66666)
{
j++;
}
BLINKING_LED2_turnOff();
BLINKING_LED3_turnOn();
j=0;
while(j<66666)
{
j++;
}
msp430_initClocks();
msp430_initWatchdog();
IE1 |= WDTIE;
vTaskStartScheduler();
return 0; // Will never get here
}
It seems to bug after _BIS_SR(GIE); and the flaf ACCVIFG is set but i don't understand why :(
I will be really glad a little help,
And would like to apologize for my English
Thanks