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/LAUNCHXL-CC2640R2: "DeviceFamily_XYZ undefined. You must defined DeviceFamily_XYZ!" problem raised after adding .cfg from a kernel project to a driver project

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2640R2F

Tool/software: TI-RTOS

Hi everyone,

I was working on using Uart to configure my BLE parameters on my cc2640r2f launch pad. I started with a uartecho example from TI resource explorer. Every thing is fine at first, but when I copy a .cfg file from some OS kernel project to my project error raised.


I can not find any solution till now. Do I need to configure something in project property and how?

Here is my project.

uart_BLE_tirtos_ccs.zip

Regards.

  • Hi Sheldon,

    I checked your project out and it looks like you are missing a predefined symbol for DeviceFamily_CC26X0R2.

    Go to the Project Properties->CCS Build->ARM Compiler->Predefined Symbols to add it.

    Once I added that in, the project successfully built for me.

    Screenshot attached for reference:

    -Sy Su

  • Thanks for your quick response! But I still get the problem when I get the same setting as you.

    After I defined the device family...

    As you can see the desired code area turned white. But when I click the error message.

    Error raised from a not complied area (gray). So could you kindly give me some advice?

    Could you attach the project you modified and successfully built in your post for me to have a try?

    Thanks and Regards.

    Sheldon

  • Also I noticed that the kernel example provided by TI can be built successfully without any Predefined Symbols like "DeviceFamily_CC26X0R2". I am curious about the reason why they do not raise error? Do they do the definition somewhere else? Thanks.
  • I find the problem at last, this project have a dependency project named "tirtos_builds_CC2640R2_LAUNCHXL_release_ccs", so adding another .cfg may cause conflict.
  • Ah yes. That dependency project gets auto imported into your workspace if you import the original uartecho example. It is the TI-RTOS configuration.

    - Sy Su