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/SIMPLELINK-CC2640R2-SDK: cc2640r2f

Part Number: SIMPLELINK-CC2640R2-SDK
Other Parts Discussed in Thread: CC2640

Tool/software: Code Composer Studio

When i am building simple_peripheral project i got error please help me to solve this problem:


**** Build of configuration FlashROM_Library for project simple_peripheral_cc2640r2lp_stack_library ****

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

C:/ti/simplelink_cc2640r2_sdk_2_30_00_28/source/ti/blestack/../../../tools/blestack/lib_search/lib_search F:/pooja/simple_peripheral_cc2640r2lp_stack_library/TOOLS/build_config.opt C:/ti/simplelink_cc2640r2_sdk_2_30_00_28/source/ti/blestack/blelib C:/Users/Pooja1/workspace_v8/simple_peripheral_cc2640r2lp_stack_library/FlashROM_Library/lib_linker.cmd cc2640 C:/ti/simplelink_cc2640r2_sdk_2_30_00_28/source/ti/blestack/../../../tools/blestack/lib_search/lib_search.xml C:/ti/simplelink_cc2640r2_sdk_2_30_00_28/source/ti/blestack/symbols
makefile:200: recipe for target 'pre-build' failed
process_begin: CreateProcess(NULL, C:/ti/simplelink_cc2640r2_sdk_2_30_00_28/source/ti/blestack/../../../tools/blestack/lib_search/lib_search F:/pooja/simple_peripheral_cc2640r2lp_stack_library/TOOLS/build_config.opt C:/ti/simplelink_cc2640r2_sdk_2_30_00_28/source/ti/blestack/blelib C:/Users/Pooja1/workspace_v8/simple_peripheral_cc2640r2lp_stack_library/FlashROM_Library/lib_linker.cmd cc2640 C:/ti/simplelink_cc2640r2_sdk_2_30_00_28/source/ti/blestack/../../../tools/blestack/lib_search/lib_search.xml C:/ti/simplelink_cc2640r2_sdk_2_30_00_28/source/ti/blestack/symbols, ...) failed.

gmake[1]: [pre-build] Error 2 (ignored)

  • The step which is failing is the pre-build step. In the example project, if you go to Project Properties->Build->Steps tab, you can see that it is set as follows and uses some CCS environment variables:

    ${TOOLS_BLE_DIR}/lib_search/lib_search ${PROJECT_LOC}/TOOLS/build_config.opt ${SRC_BLE_DIR}/blelib ${WORKSPACE_LOC}/simple_peripheral_cc2640r2lp_stack_library/FlashROM_Library/lib_linker.cmd cc2640 ${TOOLS_BLE_DIR}/lib_search/lib_search.xml ${SRC_BLE_DIR}/symbols

    To see what the variables resolve to in your environment, go to Project Properties->Build->Variables tab, and enable "Show system variables".

    In your command, it looks like ${PROJECT_LOC} is getting translated to F:/pooja/simple_peripheral_cc2640r2lp_stack_library and ${WORKSPACE_LOC} is getting translated to C:/Users/Pooja1/workspace_v8

    I suspect that one of these is getting resolved incorrectly, as the project location is typically inside the workspace directory. 

    Try opening CCS in a new workspace, import the project again and let us know if it helps. Also try importing and building some of the other examples in the SDK and let us know if they build ok.

  • Since I haven’t heard back from you, I’m assuming you were able to move past this issue. If not, feel free to post a reply with an update. Thanks!