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.

Using SimpliciTI with MSP-EXP430FG4618s

Other Parts Discussed in Thread: SIMPLICITI, MSP430FG4618, MSP430F2274

(Originally posted in the MSP430 Ultra-Low Power Microcontrollers forum)

I've been using SimpliciTI to write applications for the eZ430-RF2500 and they've compiled and worked fine. Now I am trying to port the code to the experimenter board (MSP-EXP430FG4618) by using the EXP461x board defines and I am getting several compiler errors.

 

It appears that the symbols in the header files are out of date. I get several "identifier "X" is undefined" errors, where X is one of the symbols listed below.

CHAR, CKPH, DCOPLUS, FLL_CTL0, ME2, MM, P5DIR, P5OUT, SCFI0, SCFQCTL, SSEL1, STC, SWRST, SYNC, U1BR0, U1BR1, U1CTL, U1MCTL, U1RXBUF, U1TCTL, U1TXBUF, URXIFG1, USPIE1 and XCAP14PF.

 

I have searched for some of these symbols in the SimpliciTI 1.0.5 and 1.0.6 code trees, and they don't exist. CHAR is missing but CHAR_A, CHAR_U, CHAR_T and CHAR_0 are all present. CKPH does not exist but UCCPKH does.

 

Has any one got code working on the MSP-EXP430FG4618 or has anyone corrected the board header files?

  • Those symbols are related to the MSP430FG4618, not to SimpliciTI. Have you selected the correct processor in your tool chain? If so, then somewhere the correct include file (msp430xG46x.h in the case of the IAR IDE) is not getting used.

    --rick

     

     

  • Thanks! msp430xG46x.h is the file I need. This is usually included as part of msp430.h, as long as __MSP430FG4618__ (or the identifier of one of it's sibling's) is defined.

     

    I am using the Code Composer port of SimpliciTI 1.0.6 available from https://community.ti.com/user/Profile.aspx?UserID=2196. Unfortunately, "LPRF Rocks the World" hardcoded the port for the MSP430F2274 by including map430x22x4.h, rather than making it work for any MSP430 by using msp430.h and adding the define __MSP430F2274__ to the CCE project.

    I have now replaced the specific code in bsp_msp_430_defs.h with generic code.

    Replaced:

        /* ---------------------- Code Composer ---------------------- */
        #elif (defined __TI_COMPILER_VERSION__) && (defined __MSP430__)
        #define BSP_COMPILER_CODE_COMPOSER

        #include<msp430x22x4.h>

        #define __bsp_ISTATE_T__                    unsigned short
        #define __bsp_ISR_FUNCTION__(f,v)   __bsp_QUOTED_PRAGMA__(vector=v) __interrupt void f(void)

        /* ------------------ Unrecognized Compiler ------------------ */

    with

      /* ---------------------- Code Composer ---------------------- */
    #elif (defined __TI_COMPILER_VERSION__) && (defined __MSP430__)
      #define BSP_COMPILER_CODE_COMPOSER

      #include <msp430.h>

      #define __bsp_ISTATE_T__                    unsigned short
      #define __bsp_ISR_FUNCTION__(f,v)   __bsp_QUOTED_PRAGMA__(vector=v) __interrupt void f(void)
                                          
      /* ------------------ Unrecognized Compiler ------------------ */

     

    Now everything compiles as long as I have __MSP430FG4618__ defined in the project.