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/CC2650: cc2650

Part Number: CC2650
Other Parts Discussed in Thread: BLE-STACK

Tool/software: TI C/C++ Compiler

Hi, I am compiling an app for cc2650 sensorTag but compilation terminates due to line shown below in bold.

Any idea why this error occurs.

------------------------------------------

user@instant-contiki:~/contiki/examples/cc26xx/ble-udp-demo$ sudo make TARGET=srf06-cc26xx BOARD=sensortag/cc2650
using saved target 'srf06-cc26xx'
  CC        ../../../cpu/cc26xx-cc13xx/lib/cc26xxware/startup_files/ccfg.c
  CC        ../../../cpu/cc26xx-cc13xx/./ieee-addr.c
make: *** No rule to make target `obj_srf06-cc26xx/dbg-printf.o', needed by `contiki-srf06-cc26xx.a'.  Stop.

----------------

Make file is as follows:-


DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = ble-udp-demo
all: $(CONTIKI_PROJECT)

CONTIKI_WITH_RPL = 0
CONTIKI_WITH_IPV6 = 1

CONTIKI = ../../..
include $(CONTIKI)/Makefile.include

  • Hi,

    Are you using a BLE-Stack project? We only support IAR or CCS for the CC2650.

    Best wishes
  • I never see this example in Contiki. Where do you get this BLE-UDP-demo in Contiki?
  • This example is in one of the pull request which is not merged yet. But I am getting this same error for existing examples too. Although, fresh copy of contiki has resolved this error. But Still curious if anyone knows a fix to this problem, it will be a help in future. Thank you.
  • I do the following steps to create a fake ble-udp-demo example and don't see this issue.
    1. Create a ble-udp-demo folder under my \contiki\examples\cc26xx\
    2. Copy hello-world.c into \contiki\examples\cc26xx\ble-udp-demo and rename it to ble-udp-demo.c
    3. Copy Makefile and Make.include from cc26xx-web-demo
    4. Replace contain of Makefile with yours which are pasted in the following for your reference
    DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
    CONTIKI_PROJECT = ble-udp-demo
    all: $(CONTIKI_PROJECT)

    CONTIKI_WITH_RPL = 0
    CONTIKI_WITH_IPV6 = 1

    CONTIKI = ../../..
    include $(CONTIKI)/Makefile.include

    5. Run " make TARGET=srf06-cc26xx BOARD=sensortag/cc2650 ble-udp-demo.bin" in \contiki\examples\cc26xx\ble-udp-demo and it can build successfully.

    Maybe you can try my steps to see if it solve your issue.