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.

Problem with .data section in MSP430G2

Other Parts Discussed in Thread: MSP430G2231

I am using a Launchpad and had no problems until I declared a .data section in my assembly code. CCS gives the following message:

"MSP430: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x2: Could not perform access, BSL memory segments are protected."

I simply don't know what that means and what to do. can anyone please help?

I am using an MSP430G2231 on a Launchpad rev1.4 and CCS version 4.2.4.00033.

Thanks!

  • Same problem here.  Just got a Launch Pad.  I programmed the Blink Program on MSP430G2557, no problem.  Then I added empty interupt vector routines for each interupt vector.  I got the same error.  I commented tem out until I got to the RESET vector.  That the culprit for my code.  I don't know how to fix this tey and don't fully understand the problem.  Looks like my code is trying to assign 0x0000 to the RESET vector.  The Byte registers from 0x0000 to 0x000f are "Specail Function Registers".  So it looks like they are protected.  My provlem is that I don't fully understand what the header file is doing, what does (15 * 1u) mean?

    My Offending Code...

    #pragma vector=RESET_VECTOR

    __interrupt void RESET(void)

    {

    }

     

    from the header file...

    #define RESET _VECTOR    (15 * 1u)

    /*#define RESET)ISR*func)    ISR_VECTOR(func, ".int15")*/

    #endif

     

**Attention** This is a public forum