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.

"Address out of range" error popup

When I start my program two copies of a popup appear with the message "Address out of range."  Does anyone know what causes this (beside the obvious)?  I can't find any documentation of this error, and nothing is provided beside the bare message itself that would help me track down the defect in my code that generates the message.  The message also appears from time to time as I step through my code.  I haven't tested it exhaustively, but all the code I have tested seems to run normally, producing the expected results, despite the persistence of the popup.

  • Since the MSP doesn't have a built-in display that could pop-up this message, it would be good to know where this message pops up and what you are doing.

    I can only assume that you get this message from your debugger.

    Do you start the program in the simulator (if your debugger has one) or in the emulator (that means: on the chip).

    Do you get the messages when uploading the code to the MSP?

    Do you talk about an MSP program at all (well, this is an MSP forum, but there have been quite a few totally unrelated posts in the past) ?
    If so, which MSP are you using?

    The message might refer to a memory location that is on the watchlist but does not point to a valid range of memory.
    It may also indicate that e.g. the stack pointer has left the range that was reserved for the stack (stack overflow).
    Depending on the (unknown/unspecified) environment (IAR? CCS? GDebug? MSPDebug?), everything is possible.

**Attention** This is a public forum