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.

MSP430FR2522: Debugger stop to work "MSP430: Trouble Halting Target CPU: Internal error "

Part Number: MSP430FR2522
Other Parts Discussed in Thread: CAPTIVATE-PGMR,

Tool/software:

I have been experiencing frequent reliability problems with the MSP430FR2522 and the CAPTIVATE-PGMR board while debugging. 

After some time it stops to work and if I try to stop the program it result in "MSP430: Trouble Halting Target CPU: Internal error site:e2e.ti.com".

If I program the microcontroller with the same code, it works without any issues for hours. 

Thanks

  • Hi samuelr,

    Do you know what compiler optimization setting you are using?

  • optimization level 2

    speed vs size 1

    Align no

    Inline hardware F5

    Can they cause issues while debugging?

  • Hi samuelr,

    This problem is not uncommon, although I have never seen a message such as you are showing.

    Try with optimization level = off an speed vs size = 0. Also, if you are using break points, try disabling all of them and run your code.  Occasionally halt (not stop the debug session), then hit continue. If you don't see the reported behavior, go ahead and set your breakpoints and debug as normal.

    Next, under processor options, check that you are using small data, small memory option.

    Are you using the FR2522 for a capacitive touch project using the Captivate library and if so, did you create your project using the Captivate GUI or did you start with one of the existing demos?

  • with optimization level = off an speed vs size = 0 it seems to work. I have small data, but large memory. 
    I am using an example project for the i2c. no captivate at the moment

  • now it continue to work as said, but when I try to pause the debugger I get the message "MSP430: Trouble Halting Target CPU: Internal error "

  • now it continue to work as said, but when I try to pause the debugger I get the message "MSP430: Trouble Halting Target CPU: Internal error "

  • Something fishy here.  Since the MSP430FR2522 has only 8K of FRAM, selecting the large memory model will link in the wrong library.  Set both code and data to small memory models.

**Attention** This is a public forum