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.

URGENT CC2640 CCS 6.1 build error due to bad auto generated make file

Other Parts Discussed in Thread: SYSBIOS, BLE-STACK

Hi there,


after working on custom board and pin init settings the project compiled fine and just to double check I cleaned the project and recompiled with no success.

Unfortunately the error is through in a automatic generated make file and causes not to build the sysbios binaries


see console output

**** Build of configuration FlashROM for project SimpleBLEPeripheral ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
'Building file: C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/appBLE.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_13_00_06/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/bios_6_42_00_08/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.4" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.4/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/SimpleBLEPeripheral/CC26xx/Source/Application\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/ICall/Include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/Profiles/Roles/CC26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/Profiles/Roles\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/Profiles/DevInfo\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/Profiles/SimpleProfile/CC26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/Profiles/SimpleProfile\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/hci\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/controller/CC26xx/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/host\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/CC2650TIRTOS\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/osal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/sdata\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/saddr\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/include\" --include_path=\"C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600\" --include_path=\"C:/Users/start/Dropbox/Vento clean Workspace/SimpleBLEPeripheral/Startup/CC2650EM_7ID\" -g --gcc --define=USE_ICALL --define=POWER_SAVING --define=SBP_TASK_STACK_SIZE=700 --define=GAPROLE_TASK_STACK_SIZE=520 --define=HEAPMGR_SIZE=2672 --define=xTI_DRIVERS_SPI_DMA_INCLUDED --define=xTI_DRIVERS_LCD_INCLUDED --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_MAX_NUM_ENTITIES=6 --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL --define=MAX_NUM_BLE_CONNS=1 --define=CC26XXWARE --define=CC26XX --define=ccs --define=DEBUG --define=VENTO_HARDWARE --display_error_number --diag_suppress=48 --diag_warning=225 --diag_wrap=off --gen_func_subsections=on " "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/appBLE.cfg"
configuring appBLE.xem3 from package/cfg/appBLE_pem3.cfg ...
generating custom ti.sysbios library makefile ... 
Starting build of library sources ...
making C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios/sysbios.aem3 ...
gmake[1]: Entering directory `C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios'
clem3 C:/ti/tirtos_simplelink_2_13_00_06/products/bios_6_42_00_08/packages/ti/sysbios/BIOS.c ...
C:/Users/start/AppData/Local/Temp/make1108304-1.sh: 1: Syntax error: Unterminated quoted string
gmake[1]: *** [BIOS.obj] Error 2
gmake[1]: Leaving directory `C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios'
gmake: *** [C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios/sysbios.aem3] Error 2
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_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_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Error 1
xdctools_3_31_01_33_core\gmake.exe: *** Deleting file `package/cfg/appBLE_pem3.xdl'
xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.h'
xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.c'
js: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [configPkg/linker.cmd] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

Help needed

Thanks in advance

Ralph

  • Hello Ralph,

    Have you tried deleting the Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src folder where sysbios is generated? A project level clean in CCS will not wipe this folder as it's built by a pre-build step.

    Also, have any changes been made to the RTOS config file appBLE.cfg?

    Best wishes
  • Hi JXS,

    thank you very much

    I tried your recommendation and got exactly the same console output. I have not changed any .cfg file. I re linked main.c, simpleBLEPeripheral.c, board.c and .h to custom location and changed the include bath for the board files. These changes compiled fine, no warning and no error until I did a project clean.

    Don't tell me I have to reinstall the project from the resource :(

    Any more choices then going back my customization steps? I did the same before with no problems.

    Best wishes

    Ralph

  • Ralph Deffke said:
    --include_path=\"C:/Users/start/Dropbox/Vento clean Workspace/SimpleBLEPeripheral/Startup/CC2650EM_7ID\"

    That quoted part of the build command shows that the workspace name contains spaces, i.e. the "Vento clean Workspace" directory.

    Found the thread xdc.cfg SourceDir - Build failed which notes that whitespace in the workspace directory can cause such "Syntax error: Unterminated quoted string" errors as you are seeing.

    i.e. try using a workspace directory which doesn't contain spaces in the name.

  • hey man ! of course ! I experienced this before and stupid me, that is the only workspace name I did not change. But it compiled fine until I ran a clean on project level.

    HA! thank you very much

    Cheers
    Ralph
  • Glad to see it's working!

    Here's a Pro Tip: Always make a zip/7z backup of the clean, unmodified BLE-Stack SDK install. Then, when you have the "it just stopped working" moments, unzip the clean backup to an innocuous directory and do a file diff. This has saved me countless times.

    Also, yes, CCS does not work well with spaces in the directory name when the RTOS (SYS/BIOS) is built.

    Best wishes