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.

LAUNCHXL-CC2640R2: For windows: LAUNCHXL-CC2640R2: Imported the project zero from the resources pane in CCS, but it won't compile.

Genius 9880 points
Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2640

Hi,

"When changing the rebuild step for lib_search to lib_search.py, I get numerous errors, this does not seem to fix the problem.

When attempting to build the stack library project on windows I get this error:

lib_search: error: unrecognized arguments: C:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/../../../tools/blestack/lib_search/lib_search.xml C:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/symbols
gmake[1]: [pre-build] Error 2 (ignored)

If I can get this to work on Windows at least I have a path forward, though I really would prefer it to be working on Mac.

Non-BLE projects seem to work on windows.

"

This is in relation to the case in this link: e2e.ti.com/.../4047291

Thank you.

Regards
Maynard

  • Hi Maynard,

    I have assigned a relevant expert to help.

    Best Regards.

    Jan

  • Additional information from customer please see details below.


    Here is the build log for the stack library on windows 10 project_zero_cc2640r2lp_stack_library_build_log.txt

    CCS version is 11.1.0.00011
    xdctools version is 3.51.03.28
    CG_TOOL_ROOT is C:\ti\ti-cgt-arm_18.12.5.LTS

    Thank you.

    Regards,
    Maynard

  • Hey Maynard,

    As a clarification to the above, does an unmodified project build ok on Windows? I just want to make sure that a fresh example imported from the SDK builds OK without any modifications. That is, do not change anything in the prebuild steps after importing the project in CCS.

  • Hi Ammar,

    According to customer unmodified project does not build. (BLE projects that is, hello world builds just fine.)

    Regards,
    Maynard

  • Hey Maynard,

    This indicates an issue with the environment. Can you try to reinstall the SDK? You can also try a different version to see if that works as well.

    In the above, you mention an ARM compiler that does not match the latest SDK, can you try using 18.12.2.LTS instead?

  • Hi Ammar,

    Just received response from customer, please see details below.

    ARM compiler I listed doesn't match the latest SDK, and that I should try 18.12.2.LTS instead. I'm not sure how to make that change. I will see if I can figure it out but any help would be appreciated. Also, reinstalling the SDK had no effect, I will try a different version.

    I'm not certain how to get a different version of the SDK, there does not seem to be any option to do so.


    This is the beginning of the build log when I attempt to build the stack library on windows. This seems to happen prior to any calls to the compiler:
    **** Build of configuration FlashROM_Library for project project_zero_cc2640r2lp_stack_library ****

    "C:\\ti\\ccs1110\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

    C:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/../../../tools/blestack/lib_search/lib_search C:/Users/R. David/workspace_v11/project_zero_cc2640r2lp_stack_library/TOOLS/build_config.opt C:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib C:/Users/R. David/workspace_v11/project_zero_cc2640r2lp_stack_library/FlashROM_Library/lib_linker.cmd cc2640 C:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/../../../tools/blestack/lib_search/lib_search.xml C:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/symbols
    makefile:200: recipe for target 'pre-build' failed
    usage: lib_search [-h] [-v] opt lib_d

    project_zero_cc2640r2lp_stack_library_build_log (1).txt

    Regards,
    Maynard

  • Hey Maynard,

    I noticed the customer's workspace path has a space in it. Can you have the customer try a new workspace stored in a non default location to remove the space? Perhaps in a folder on his desktop? This would avoid the need to rename his user account in Windows...

    EDIT: a folder on the desktop will still have the username in the path. Try making a workspace directory directly in the C:\ drive itself.

  • Hi Ammar,

    Just received response from customer, please see details below.

    I followed the recommendation to use a workspace located in the root directory (this is on Windows), and that worked! I am able to get project zero to build and run on device. This at least gets me to a point where I can start working through my class. That being said, I would really like to get CSS working on my Mac, as it is much newer and MUCH faster than my pc. For now though, CSS windows seems to be working. Is having a directory with a space in the name a known problem for this kind of thing? I've not run into it before.

    Thank you.

    Regards,
    Maynard

  • Hey Maynard,

    Glad we unblocked the customer on Windows. I will follow up on the other linked thread to discuss a potential workaround on the Mac side.

    As for the open question, it's fairly common to see and really depends on the tools you use if you will run into a problem or not. There's a nice FAQ post that touches on it here: e2e.ti.com/.../faq-ccs-why-do-i-need-to-avoid-non-alphanumeric-unicode-characters-in-my-paths

  • Hi Ammar,

     thank you. 

    Looking forward to your update regarding the MAC issue in other thread.

    Regards
    Maynard