Part Number: MSP430FR2676
Other Parts Discussed in Thread: CAPTIVATE-PGMR
Hi everyone,
I have a problem when using delay loop on MSPFR2676.
When I use a delay approxiamtly < 1500 ms, it runs okay. Otherwise, it will crash when runs to delay in while(1) loop. But when I run with a debug on css via CAPTIVATE-PGMR, it has no crash.
I had used both __delay_cycles and delay loop with timer (g_sysTime++ when update 1ms), it returns the same result.
void delay(uint32_t ms)
{
uint32_t lastTime = g_sysTime + ms;
while(g_sysTime < lastTime);
}
I think it relates to watchdog timeout, but I had stopped watchdog.
My code is very simple, and all my function I have used in all project is okay.
I think it only relates to time delay too long, but I don't known why.
The simple code is shown below. All config when I create new project is default.
Can you give me some suggests about this problem? Or you can try it with your device!
Thanks!