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.

MSP430G2102: MSP430G2102 code compilation failed doing with Code Composer Studio but same compilation get succeed when done with open source msp430-gcc

Part Number: MSP430G2102

Hi,

Its to inform you that I have used MSP430G2102 microcontroller for the firmware development where i have used PORT1, PORT2, Timer, I2C examples code routine with the interrupt.

I have select the whole program optimization with speed 5.

While build the project, flash memory overflow shown of 250 bytes more. As total flash size is of 1 kb and during compilation flash memory overflow shown is of 1250 bytes. 

But the same firmware build successfully using open source msp430-gcc. Here the flash used 988 bytes out of total flash size 1 KB.

So can u please give me the solution for the below 2 query:

1) Project Configuration settings of CCS helpful to build the firmware which is not able to build till now.

2) Why the firmware which is build successfully with open source msp430-gcc, failed to build with CCS?

Looking forward to hear from you as soon as possible.

Regards,

RRJ

  •  Hi RRJ, 

    Which compiler you used in CCS? Is TI compiler or GNU.

    TI compiler should keep a similar performance with MSP430-GCC.

    You can try set optimization to 0 and tey again.

    And if you wolud lik to to decrease code size via compiler, you can try IAR, this IDE's compiler have a better performance for code size.

    Thanks!

    Best Regards

    Johnson

**Attention** This is a public forum