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.

Energia for MSP430G2553 28 Pin Package

Other Parts Discussed in Thread: MSP430G2553, ENERGIA

Hi,

Have anyone of you ever tried to use Energia to program MSP430G2553 28 pin package ?

The reason I asked because the existing Engergia does not support 28 pin package.  It would not recognize Port 3 pins.

What I did was using files from this site:  

https //github.com/AlexJaeger/Energia/commit/07553a7689954904d56c295296b9461ac751f7d2

I created a "variant" launch pad for 28 pin package.  I don't have error for unrecognize pins from Port 3. However, when I compiled it I got errors

G:\Energia\energia-0101E0017\hardware\msp430\cores\msp430\twi.c: In function 'twi_init_port':
G:\Energia\energia-0101E0017\hardware\msp430\cores\msp430\twi.c:218:15: error: 'TWISDA0' undeclared (first use in this function)
G:\Energia\energia-0101E0017\hardware\msp430\cores\msp430\twi.c:218:15: note: each undeclared identifier is reported only once for each function it appears in
G:\Energia\energia-0101E0017\hardware\msp430\cores\msp430\twi.c:218:24: error: 'TWISDA0_SET_MODE' undeclared (first use in this function)
G:\Energia\energia-0101E0017\hardware\msp430\cores\msp430\twi.c:219:15: error: 'TWISCL0' undeclared (first use in this function)
G:\Energia\energia-0101E0017\hardware\msp430\cores\msp430\twi.c:219:24: error: 'TWISCL0_SET_MODE' undeclared (first use in this function)

I am not very familiar with twi.c in Energia. Can anyone shed lights on this.

Thanks for reading.

  • It looks like the files from Github.com were for version 16 only.
    I compiled an "empty" sketch in both version 15, 17 and got same error.

    However, in version 16 I have to move pins_energia.h to ....\cores\msp430 directory to get it to work.

    Still don't know why, but I can now use Launchpad MSP430G2 to program MSP430G2553 28 pin package (it has three ports).
  • Linh,

    Thanks for posting the resolution you found. I suspect when the MSP430G2553 files were created for Energia, only the package used on the launchpad was added.

    *Edit: Have learned Energia only supports MSP variants that are on Launchpads.  If other MSP variants are to be used, you must edit HW files in order to do so.

**Attention** This is a public forum