This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F249 seems to hang

Other Parts Discussed in Thread: MSP430F249

Hi All

Processor used MSP430F249.

IDE --> IAR .

I am working on a project where my processor is continuously communicating with GUI at every 500ms.

Clk source is XT2 -- 16Mhz

ADC CLk is 5Mhz

ADC CLK source is MCLK.

My ADC sampling is 12Khz.

For UART & Timer the clock source is SMCLK 2MHZ.

Uart baudrate is 112500bPS, timer A is 2ms.

The issue is when i continuously communicate with MSP at every 500ms, after 20 to 30min of continuous communication my MSP stops communicating. When i put it in debug mode, at power on after Oscillator is stabilized my OFIFG flag is cleared but when i enable global interrupt the OFIFG flag is set but still my code work fine.

At the same instant my ADC is enabled but sill it does not hit ISR, the break point cursor does not come to while loop, only my timer ISR  and receive ISR is working. The Uart TX interrupt is disabled which i am not disabling any where in the code.

Also after my processor hangs and i restart the unit it does not work, i have to reprogram. what could be the issue. why is my OFIFG flag set.

Kindly please suggest.

  • Without knowing the code, there isn't much anyone can do for you.

    It might be that the crystal is failing form tiem to time. Maybe it oscillates near the lower detection limit of the oscillator input. If this happens when the MSP is receiving data, it may be that the code receives nonsense and locks up (e.g. because it gets a framing error instead of the expected second data byte)

    About the ADC, well, only your code can tell.

**Attention** This is a public forum