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.

LAUNCHXL-CC1310: gmake can't create .elf file

Part Number: LAUNCHXL-CC1310
Other Parts Discussed in Thread: CC1310

Greetings everyone,

I am trying to build the example "rpl-border-router" of Contiki-NG using Code Composer Studio. I've followed the steps carefully, but no matter what I do, the **.elf file doesn't seem to be generated, and I always get the message:

gmake: *** No rule to make target 'border-router.elf'.

Here are the steps I have taken:

  1. Cloned the Contiki-NG repository and initialized submodules:

    git clone github.com/.../contiki-ng.git cd contiki-ng git submodule update --init --recursive

  2. Created a new CCS project with the correct target device (CC1310), using the GNU compiler and the  "rpl-border-router" example.

  3. Added the Contiki source path as a linked folder in the project.

  4. Adjusted the PATH environment variable to include paths to Git and the ARM GCC toolchain:

    C:\Program Files\Git\bin;C:\Program Files\Git\usr\bin;C:\ti\ccs1260\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\bin;C:/ti/ccs1260/ccs/eclipse/jre/bin/server;C:/ti/ccs1260/ccs/eclipse/jre/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\13.2 Rel1\bin;C:\Program Files (x86)\Arm GNU Toolchain arm-none-linux-gnueabihf\13.2 Rel1\bin;C:\Users\ahmedalhloul\AppData\Local\Programs\Python\Launcher\;C:\Users\ahmedalhloul\AppData\Local\Microsoft\WindowsApps;C:\Users\ahmedalhloul\AppData\Local\Programs\Microsoft VS Code\bin;C:\ti\ccs1260\ccs\eclipse

  5. Configured builder settings in CCS to not generate Makefiles automatically and set the build directory to the example's source directory:

    ${CONTIKI_ROOT}/examples/rpl-border-router

  6. Set the build targets in CCS to:

    • Incremental build: border-router.elf
    • Clean: clean

  7. Verified the Makefile in the project directory:

    CONTIKI_PROJECT = border-router TARGET = simplelink BOARD = launchpad/cc1310 CFLAGS += -g all: $(CONTIKI_PROJECT) CONTIKI = ../.. PLATFORMS_EXCLUDE = z1 include $(CONTIKI)/Makefile.dir-variables MODULES += $(CONTIKI_NG_SERVICES_DIR)/rpl-border-router MODULES_REL += webserver include $(CONTIKI)/Makefile.include

Despite these steps, I still encounter the error message. I suspect there might be an issue with the Makefile configuration or the way CCS is handling the build process.

Any help or guidance on resolving this issue would be greatly appreciated.

Thank you!