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.

RTOS/CC2640R2F: Build error while compiling examples from CC2640R2 SDK ?

Part Number: CC2640R2F
Other Parts Discussed in Thread: SYSBIOS, BLE-STACK

Tool/software: TI-RTOS

Hi,

I'm getting build error while compiling the examples(SimplePeripheral) provided on cc2640r2 examples.

The package used is simplelink_cc2640r2_sdk_1_50_00_58 and the same error occurs in the example package , simplelink_cc2640r2_sdk_ble_example_pack_1_50_00_62 .

The error is as shown below. I have found similar questions in forum but there was no proper answer.  Please let me know what is the compiler version that must be used, I'm using import project option in CCS.  

  • Hi Arun,

    This looks like an xdc tools issue. How did you install the SDK? What is the complete error message for the xdc.cfg error?

  • Hi Arun,

    Did you manually set the "Other Repositories"? Can you try unchecking the last two and checking the needed SimpleLink products instead?

    Todd
  • Hi Joe,

     This is what I have:

    Could try importing the project again in a brand new workspace??

      Hopefully this helps.

        David

  • If there is a space in your windows user name FIRST LAST, then the example projects will not build properly. I had this same issue running host test a while back.
  • I reinstalled the SDK and changed the work-space name without space. it worked . Thank You
  • My code is giving this error during run time when I keep the optimization level to 0.

    Can't find a source file at "/db/vtree/ademars/git_trees/avala-z/src/ti/sysbios/family/arm/m3/Hwi.c"

    Why is it ?
    Regards,
    Joe
  • Hi Joe,

    There is probably a path that the compiler is unable to resolve when optimizations are off. The BLE-Stack projects are tested and verified with full project optimizations on.

    I would recommend using selective optimizations instead of trying to optimize your entire project. You can optimize by file or by function. Please see the Optimizations chapter of the BLE-Stack User's Guide for more information: dev.ti.com/.../optimizations.html
  • Since the libraries are built at TI, the embedded paths to the source are to our servers (thus the /db/blah/blah). You have two options if you want to source level debug in the kernel code

    1. Rebuild the libraries (details are in the SYS/BIOS User Guide). This will update the libraries to have the new path. Note: I'm not sure if this option is applicable for the ROM kernel images though...

    2. Manually search for the file (CCS prompts you for this generally). So "/db/vtree/ademars/git_trees/avala-z/src/ti/sysbios/family/arm/m3/Hwi.c" is in <sdk_install_dir>/kernel /tirtos/packages/ti/sysbios/family/arm/m3/Hwi.c. So basically replace /db/vtree/ademars/git_trees/avala-z/src with <sdk_install_dir>/kernel /tirtos/packages. Note: generally CCS is pretty good about locating other files once you get one. So you will not have to locate every kernel source file...just the first one.

    Todd