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.

CCS/LAUNCHXL-CC2650: How to fix these build errors?

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2650, SYSBIOS

Tool/software: Code Composer Studio

Hi there,

I am in the initial phase of development of an algorithm for RF signal decoding and processing. I am new to this platform and was wondering if someone could show me how to fix these errors. 

The following is the build O/P:


**** Build of configuration Debug for project Peeva_Version_1 ****

"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "../CC2650_LAUNCHXL.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/ti/workspace_peeva/Peeva_Version_1" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="CC2650_LAUNCHXL.d_raw" "../CC2650_LAUNCHXL.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'CC2650_LAUNCHXL.obj' failed
"../CC2650_LAUNCHXL.c", line 43: fatal error #1965: cannot open source file "xdc/std.h"
1 catastrophic error detected in the compilation of "../CC2650_LAUNCHXL.c".
Compilation terminated.
gmake: *** [CC2650_LAUNCHXL.obj] Error 1
Building file: "../ccfg.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/ti/workspace_peeva/Peeva_Version_1" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="ccfg.d_raw" "../ccfg.c"

>> Compilation failure
subdir_rules.mk:16: recipe for target 'ccfg.obj' failed
"../ccfg.c", line 50: fatal error #1965: cannot open source file "startup_files/ccfg.c"
1 catastrophic error detected in the compilation of "../ccfg.c".
Compilation terminated.
gmake: *** [ccfg.obj] Error 1
"../main.c", line 7: fatal error #1965: cannot open source file "unistd.h"
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
Building file: "../main.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/ti/workspace_peeva/Peeva_Version_1" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

>> Compilation failure
subdir_rules.mk:23: recipe for target 'main.obj' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

CODE:



/** * main.c */ #include <unistd.h> /* XDCtools Header files */ #include <xdc/std.h> #include <xdc/cfg/global.h> #include <xdc/runtime/System.h> /* BIOS Header files */ #include <ti/sysbios/BIOS.h> #include <ti/sysbios/knl/Task.h> #include <ti/sysbios/knl/Clock.h> #include <ti/sysbios/knl/Semaphore.h> /* TI-RTOS Header files */ #include <ti/drivers/PIN.h> #include <ti/drivers/pin/PINCC26XX.h> #include <ti/drivers/Power.h> #include <ti/drivers/power/PowerCC26XX.h> /* Example/Board Header files */ #include "Board.h" /* Driverlib CPU functions, used here for CPUdelay*/ #include <driverlib/cpu.h> /* Pin driver handles */ static PIN_Handle buttonPinHandle; static PIN_Handle ledPinHandle; /* Global memory storage for a PIN_Config table */ static PIN_State buttonPinState; static PIN_State ledPinState; //static PIN_State pinState; /* Device Header */ #define RDY_CLK BOARD_DIO21 //Input - for clock sync - give input clock for cc2650? #define DEMOD_PIN BOARD_DIO22 //Input - get data signal here #define MOD BOARD_DIO12 //Output - to control analog front end #define SHD BOARD_DIO15 //Output - to control analog front end //PIN Configuration PIN_Config pinTable[]{ Board_DIO12 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL | PIN_DRVSTR_MAX, //MOD Board_DIO15 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, //SHD Board_DIO21 | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_NEGEDGE, //RDY_CLK Board_DIO22 | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_NEGEDGE, //DEMOD_OUT PIN_TERMINATE }; int main(void) { return 0; }

The project has the following files:

Includes

Debug

Target Configs

Board,h

CC2650_LAUNCHXL.c

CC2650_LAUNCHXL.cmd

CC2650_LAUNCHL.H

CC26X0F128.cmd

ccfg.c

main.c

Am I missing anything else in the project folder?

Also, can I build my application in project zero? I need to implement bluetooth feature in the project. So, it is wise to build the application on the exisiting example of Project Zero?

Thanks in advance,

AM