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.

Compiler/MSP430F5529: Build error in CCS (Energia Example 09)

Part Number: MSP430F5529
Other Parts Discussed in Thread: ENERGIA, MSP-EXP430F5529LP

Tool/software: TI C/C++ Compiler

Hello,

I am currently using Code Composer Studio to get thermistor readings from the MSP430F5529. I am using the Energia example 09 which works in Energia software, but I am hitting roadblocks when trying to build in CCS. The errors I get are:

makefile:144: recipe for target 'EXAMPLE09_Temperature.out' failed

/Applications/Energia 4.app/Contents/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot open linker script file memory.x: No such file or directory

gmake[1]: *** [EXAMPLE09_Temperature.out] Error 1

gmake[1]: Target 'secondary-outputs' not remade because of errors.

gmake: *** [all] Error 2

makefile:137: recipe for target 'all' failed

Note that I am using the exact same code from the website, but can't go further because of the build errors. Can someone familiar with Energia examples in CCS help me? I am using macOS Sierra if that's part of the issue.

  • Hello Dylan,

    Are you able to compile and build native CCS examples? Which version of CCS are you using? Have you followed all of the import directions from the following web page? I've been able to successfully build an Energia 18 project in CCS V7.1 (GNU v4.6.3) using these instructions (albeit with a Windows 7 OS): energia.nu/.../

    Regards,
    Ryan
  • Hello Ryan,

    Thanks for getting back. I was able to build the Hello World C++ project if that counts. I've also tried other Energia examples and get the same error messages. I'm using CCS v7.0.0.00043 and I was using the site you brought up up to the build and debugging part. Could the problem be related to the way Energia is installed to my HD?

    The makefile has marked errors at lines 137 and 144

    137 

    @$(MAKE) --no-print-directory -Onone "NEWTRY.out" secondary-outputs

    143-144

    NEWTRY.out: $(OBJS) $(GEN_CMDS) /Users/ArtSpartan/NEWWORKSPACE/MSP-EXP430F5529LP_core/Debug/libMSP-EXP430F5529LP_core.a

    @echo 'Building target: $@'

  • Hi Dylan,

    That's a possibility, my Energia root folder is installed directly under the C drive.

    Regards,
    Ryan

**Attention** This is a public forum