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.

MSP430FR2311: MSP430FR2311 (20 pin version) stops at random

Part Number: MSP430FR2311
Other Parts Discussed in Thread: CODECOMPOSER

Tool/software:

Hi,

the MC very often simply stops. The main program ends after the initialisation of interrupts in

    __bis_SR_register(GIE);
    while(1){
        __no_operation();
    }

After some communication via I2C, the MC stops in the line __no_operation. If no programming adapter is connected, it also executes a different number of communications and then stops working. I suspect that this is at the same point.
If the CodeComposer is connected, I see the value 0x0009 in the SR register. Which register should you also look at?
I have also tried to end the main programme with

    __bis_SR_register(LPM0_bits+GIE);

The effect is the same. The breakpoints are all deleted.
Does anyone have any ideas on how to investigate the problem?

Thank you very much for your support.

  • Since this loop itself won't progress, I suppose all the program's activities are triggered by external events (interrupts). SR=0x0009 has GIE=1; are the events still arriving? 

    [Edit: I mis-read User Guide Fig 4-9 initially. I removed the wrong answer.]

  • Hello Bruce, thank you for your thoughts.
    The programme works for now. After a few working time the programme stops automaticly. CodeComposer then automatically switches to the same view that you see when a breakpoint is reached. I can then click on ‘Resume (F8)’ and the programme continues to work normally. All events are then analysed again. The results of the programme are completely normal. After a while, the programme stops automatically. I can then click on ‘Resume (F8)’ and...
    However, no breakpoints are defined.

    If it were just a problem with the debugger, it wouldn't be a problem. But the programme stops even if it runs without the programming adapter. Then no events are evaluated. Unfortunately, I cannot click on ‘Resume (F8)’.

    Is there a known problem with the debug function on this chip? Is it possible to actively switch off the debug logic at runtime? What can I do to analyse the problem?

**Attention** This is a public forum