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.

CC2650MODA: Error while compiling a SCS project in CCS for CC2650 5X5 RHB chip variant

Part Number: CC2650MODA
Other Parts Discussed in Thread: OPT3001, CC2650

I have setup a OPT3001 I2C sensor running in Sensor Controller Studio. It works just fine. I have a custom board that uses the 5X5 RHB chip variant.

In the SCS project properties i have chosen the Operating System as TI-RTOS and the Chip Package as QFN32 5X5RHB


However when i generate the CCS files and make necessary changes as mentioned in Integrating SCS Examples to Project Zero Section 9.2 i get the following error -

#35 #error directive: "SCIF driver has incorrect target chip package configuration for this example. Please change to 'QFN48 7x7 RGZ' in the Sensor Controller Studio project panel and re-generate the driver."

Also i see the following lines in the main.c (renamed appropriately as sense_read.c) file inside SCS folder and notice a cross mark beside the penultimate line -

// Display error message if the SCIF driver has been generated with incorrect operating system setting
#ifndef SCIF_OSAL_TIRTOS_H
    #error "SCIF driver has incorrect operating system configuration for this example. Please change to 'TI-RTOS' in the Sensor Controller Studio project panel and re-generate the driver."
#endif

// Display error message if the SCIF driver has been generated with incorrect target chip package
#ifndef SCIF_TARGET_CHIP_PACKAGE_QFN48_7X7_RGZ
    #error "SCIF driver has incorrect target chip package configuration for this example. Please change to 'QFN48 7x7 RGZ' in the Sensor Controller Studio project panel and re-generate the driver."
#endif

Any tips how to mitigate this error?

  • Hello Shantam,

    In Sensor Controller Studio, you can select the QFN32 5x5 RHB as the chip package and regenerate the cod as shown below. Can you try that?

    Regards,

    Prashanth

  • Hello Prashanth,

    That is precisely what i did as i mentioned above when i wrote "In the SCS project properties i have chosen the Operating System as TI-RTOS and the Chip Package as QFN32 5X5RHB".

    The errors are coming after including the generated files with the properties that you have shown.

    I deleted all the existing files and regenerated them but now i just see that there are only 6 files as follows -

    there is no main_tirtos.c as mentioned in the pdf.

    How would i integrate these in my CCS project without the main_tirtos.c file? Is this the expected behavior? Can you reproduce this behavior on your system?

  • SCS doesn't seem to have support for the latest TI-RTOS drivers. I have TI-RTOS 2.21.01.08 for CC13XX and CC26XX. However the closest option you get in SCS is 2.21.00.06 and it also doesn't identify the BIOS, Chipware and TI-RTOS directories as shown in the following images -

    After making the project point to the correct folders of TI-RTOS, BIOS and others i change the Chip variety to 5X5 RHB inside the project (since there are NO more options other than 7X7 RGZ while importing the project as you can see in the first image) as the image below shows -

    However after testing successfully in SCS when i finally generate the source files i see the following code which eventually fails to compile and gives error -

    // Display error message if the SCIF driver has been generated with incorrect target chip package
    #ifndef SCIF_TARGET_CHIP_PACKAGE_QFN48_7X7_RGZ
        #error "SCIF driver has incorrect target chip package configuration for this example. Please change to 'QFN48 7x7 RGZ' in the Sensor Controller Studio project panel and re-generate the driver."
    #endif

    Should i install older versions of TI-RTOS and try with that ?

  • Hello Shantam,
    This is an manual error set to indicate that the example if built for a specific board and a specific set of routed pins. You can delete this line in source and make your own custom board define in SCS (refer to SCS help viewer -> I/O Mapping panel ->Board Selection ->

    Custom Board Definitions
    Board names, board function for each DIO pin and chips associated with each board are specified in XML documents called board definition files (*.brd).
    User-specified board definition files stored under <My Documents>/Texas Instruments/Sensor Controller Studio/board_defs are loaded when Sensor Controller Studio is started. Note that Sensor Controller Studio will not start if this directory contains incorrectly formatted board definition files.
    For specification of the procedure definition file format and examples, see board_def.dtd and board definition files under <Program Files>/Texas Instruments/Sensor Controller Studio/board_defs, respectively.
  • Hi Shantam,

    Yes, installing TI-RTOS 2.21.00.06 is a workaround. The SCS developers have been notified by the missing support for 2.21.01.08, and a fix is in the process.

  • Hi Eirik,
    You are correct, i looked at the code and realized that i can just comment it. The project builds now but i had to install an older version of TI-RTOS.
    I am now trying to figure out how to handle interrupts from Sensor Controller to main MCU. Is there any documentation source for "scif" drivers or the Sensor Controller API calls , i can't seem to find documentation for SC in the Software Developers Guide for CC2650.
  • Hello Shantam,
    Yes and No, these are the available resources:
    1) Help viewer in SCS (F1).
    2) Example code generated from SCS and generated scif_x header/source files.
    3) Several application notes:
    dev.ti.com/.../
    4) Simplelink academy training.