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/CC2640R2F: Problem with Ouput TI-RTOS Log statements over UART

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2650, , SYSBIOS

Tool/software: Code Composer Studio

I use a CC2640R2F launchpad as the development platform. The example program TI provided for this platform uses the Display_print function to print log output over the UART. This is different from what I have previously used on the CC2650 platform, which uses Log_info/warning/error over UART. The Display_print function has a major disadvantage over Log, since one has to provide it the line and column number to print the message to. It cannot linearly output as the Log function does, and also tends to overwrite previous log output. For me I would prefer a line after line logging for the benefit of error tracing.

The way I went was to follow the wiki here: http://processors.wiki.ti.com/index.php/CC26xx_Ouput_TI-RTOS_Log_statements_over_UART, using the XDC logging module. However, after adding the necessary code into the TI-RTOS config file (TOOLS/app_ble.cfg), the compiler gives me the following warnings:

Build of libraries failed.
TOOLS/subdir_rules.mk:12: recipe for target 'build-1533104303-inproc' failed
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 324: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 396: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 401: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 414: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 418: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 424: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 429: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 885: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 1219: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 1273: error: expected an expression
10 errors detected in the compilation of "C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c".
gmake[1]: *** [rom_sysbios.obj] Error 1
gmake: *** [C:/Users/guqin/workspace_v7/GAMMA_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
 
js: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/app_ble_pem3.xdl'
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.h'
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.c'
js: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1533104303-inproc] Error 1
gmake: *** [build-1533104303] Error 2
 
Build of libraries failed.
TOOLS/subdir_rules.mk:12: recipe for target 'build-1533104303-inproc' failed
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 324: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 396: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 401: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 414: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 418: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 424: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 429: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 885: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 1219: error: expected an expression
"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c", line 1273: error: expected an expression
10 errors detected in the compilation of "C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Task.c".
gmake[1]: *** [rom_sysbios.obj] Error 1
gmake: *** [C:/Users/guqin/workspace_v7/GAMMA_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
 
js: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/app_ble_pem3.xdl'
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.h'
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.c'
js: "C:/ti/xdctools_3_50_01_12_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1533104303-inproc] Error 1
gmake: *** [build-1533104303] Error 2
 

My TI-RTOS config file originally contained these two lines and I added the new lines after them:
utils.importFile("common/cc26xx/kernel/cc2640/config/cc2640_r2_csdk.cfg");
utils.importFile("common/cc26xx/kernel/cc2640/config/ble_stack_heap.cfg");

I would appreciate if anyone can provide any help!