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: 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: CC2640R2F, SYSBIOS, BLE-STACK

Hi,

Customer having issue compiling the project zero in the launchpad, please see details below.

I just got a CC2640r2f launchpad and I'm trying to get started with it. I imported the project zero from the resources pane in CCS, but it won't compile. The stack library seems to build fine, but the app project fails with errors about missing files. Is there something else I need to install or set up?

After messing with this over the weekend, I have a bit more info that I hope is relevant. First: the project_zero_cc2640r2lp_stack_library project seems to build but has this warning - "Product XDCtools v3.51.3.28_core is not currently installed. A compatible version 3.62.1.16_core will be used". project_zero_cc2640r2lp_app fails with hundreds of errors, the top three are missing files, "rom_sysbios.aem3", "lib_linker.cmd", and "ble_r2.symbols". The first two don't appear to be anywhere on my computer, and the last one shows up in a few places under my *username*/TI directory but not in the project. I'll try to include a screen shot. I downloaded project_zero by selecting the "Browse and Import Examples" option in the "Getting Stared: panel of CCS. am on an ARM Mac running macOS 12.3. However I tried getting this to work on a Windows 10 machine and had identical results.

Thank you in advance.

Regards,
Maynard

  • Hey Maynard,

    I apologize for the difficulty you are experiencing here. It looks like there's some dependent files that may not being installed when using this option. In this case, I would recommend installing the full SDK from the tools page (see this link). This will ensure you have everything you need.

    Once installed, you can open CCS and go to File>Import... and select Code Composer Studio>CCS Projects as shown below.

    This will take you to another page where you can hit the Browse button. Then, go to the SDK example you would like to import. simple_peripheral is located inside C:\ti\simplelink_cc2640r2_sdk_5_30_00_03\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral.

    Hope this helps you get started.

  • Hi Ammar,

    Thank you for the information,

    Unfortunately following these directions has resulted in an identical outcome, with the same missing files according to customer.

    Customer ask if it possible there is a problem with the project itself? Also, while customer have access to a Windows machine but primarily work on Mac.

    Thank you in advance.

    Regards,
    Maynard

  • Unfortunately following these directions has resulted in an identical outcome, with the same missing files according to customer.

    Can you provide the full Console output after building the stack library project? If this issue persists after you can confirm the missing files are indeed installed on the machine, then the issue is likely related to some setup in CCS. If you navigate to Window>Preferences>Code Composer Studio > Products, can you confirm that CCS has the SDK listed under "Discovered Products"?

    I do not suspect a problem with the project. The SDK projects go through quarterly build and functional testing. In addition, I have verified this myself on my end.

  • Hi Ammar,

    Please see response from customer.

    Here is the console output you requested and nd here is a screen shot of the discovered products pane, which seems to indicate that the SDK is present.

    LibraryProjectBuildConsole.rtf

    Regards,
    Maynard

  • Hey Maynard,

    Let me reach out to some folks internally who are using a Mac.

    I see an "Error loading Python lib" that may be the cause of the issues building the project. In the meantime, if this is for evaluation, has the customer tried the CCS Cloud IDE to build the project?

  • Hi Ammar,

    Please see response from customer.

    I'm not sure how to address the Python issue, I made sure Python is up to date on my system and that seemed to have no effect. I tried installing the Ti Cloud Agent on both Firefox and Chrome, and while the Ti Cloud Agent Bridge installed fine, when installing the agent itself I got a completely black setup window with no way to actually proceed with the installation. Exact same outcome on both browsers. I'm not running an unusual system or anything, it is a MacBook Pro with an M1 Max processor, is your software compatible with that?


    According to customer they need this to resolved to used in their application and project.

    Regards,
    Maynard

  • Hi Ammar,

    Additional information, windows is working using the cloud but customer want to resolved the issue when using MAC.

    Looking forward to your update.

    Thank you.

    Regards,
    Maynard

  • Hey Maynard,

    To rule out an environment issue, can the customer try to build a different project in the SDK? You can try other projects like Project Zero. If that doesn't work, let's take this a step further and try a drivers/ example, perhaps uartecho.

  • Hi Ammar,

    Apologies for the late response.

    additional information from customer.

    "With some advice from the instructor of the course I'm taking I looked more into the Python version on my machine and while 3.9 was installed, there was no Python 2 version. Could that be the issue? I installed peen and used it to install Python 2.7.18, but now I don't know how to get CCS to recognize that Python 2 is on the machine.
    When trying to get this working on windows, I get no errors in the stack library project build, but I get very similar errors in the app project.
    Regards,
    Maynard

  • Hey Maynard,

    We can use this information as a data point (since the build output shows a Python lib error). However, I'd like to first try another project in the SDK to see if it builds correctly. If you are not able to build any project in the SDK we can continue debugging, and I will loop in the right team to help with CCS.

  • Hi Ammar,

    Update from customer.

    I have tried a few BLE projects with similar results. I also just imported the hello_CC2640R2_LAUNCHXL_tirtos_ccs project. It also fails with the following errors.Also, when importing projects, I get this warning. Do I need to downgrade my XDCtools?

    Regards,
    Maynard

  • Hey Maynard,

    Thanks for the confirmation. I stumbled upon this open issue: https://sir.ext.ti.com/jira/browse/EXT_EP-10721 . This could be the issue you are seeing. Can you verify if the suggested workaround helps any?

    I will try to loop in some colleagues to assist.

  • Hi Ammar,

    Just to confirm, I will provide this workaround to customer?

    "A recommended workaround is to copy a version of gmake 4.3 into the XDCTools directory.

    For example the CCS gmake distribution into the XDCTools distribution and this can be done by:
    cd /ti/xdctools_3_51_03_28_core/. (Where the XDCTools being used by the project is installed)
    cp gmake gmake_xdc
    cp ../ccs1100/ccs/utils/bin/gmake . (Replace CCS gmake version in XDCTools installation)  
    "

    Regards,
    Maynard

  • There are known issues with xdctools and macOS monterey. One person suggested the workaround below:

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1065276/ccstudio-xdctools-error-on-macos-monterey

  • Hi Ki,

    Customer have tried the recommendation above and sees some improvement however, there are still error encountered, please see details below.

    When copying make from /applications/ti/ccs1110/ccs/utils/bin into the xdctools directory, the numbers of errors goes down from over 700 to 477, so I suppose that's progress. Still missing 2 of the files:
    I tried another suggestion from that forum, making a symlink in the xdctools directory to a current version of game installed with homebrew, but that gives me the following errors:

    Regards,
    Maynard

  • Hey Maynard,

    Has the customer tried the older xdctools version (3.51.03.28)? Additionally, it will help from this point on to verify a driver project. The aim is to first verify that a simple base project will build successfully before trying out the BLE-Stack project (which has dependencies on the stack_library). If the stack library does not build successfully, as the above log shows, then the top level application project will certainly also fail.

  • Hi Ammar,

    Please see comment fromcustomer.

    "Despite the error claiming otherwise, 3.51.03.28 seems to be the one installed. I tried downloading that version from the website and replacing the installed version anyway but that doesn't seem to make any difference. The Linked Resources pane in the project properties has a definition for XDC_CG_ROOT of /applications/ti/ccs110/xdctools_3_62_01_16_core, but that directory doesn't exist on my system. I tried renaming the xdctools install directory(3.15.03.28) to match that variable just to see if that made a difference but it didn't."

    Regards,
    Maynard

  • Hi Ammar,

    Additional information from customer, please details below.

    I was mistaken about the xdctools path being wrong, there is a 30.62.01.16 version installed, I was confused because there are actually a few different versions in the applications/ti subdirectories. However, I can't figure out how to get CCS to recognize the earlier version. the XDC_CG_ROOT definition doesn't seem to be editable. I again tried renaming the directory holding the earlier version to the directory pointed to by XDC_CG_ROOT, but this didn't seem to make a difference.

    So After messing with this for a while I'm pretty sure I made a mess of my directories and files under /applications/ti so I went ahead and did a reinstallation of CCS, and yes the later 3.62.01.16 version is installed. I still have no idea how to get CCS to use the earlier version however. Also, This doesn't seem to address the Python issue. The hello world project builds and runs as long as I fix the game issue, although it also complains about the xdctools version. Can I get any help addressing this error:

    Error loading Python lib '/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEIMAyblg/Python'


    I am able to find the directory '/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T'

    but no subdirectory '_MEIMAyblg'

    Also any tips on how to actually get CCS to use a different xdctools version. The XDC_CG_ROOT in the 'Linked Resources' panel of the project properties isn't editable and it explicitly points to '/applications/ti/ccs1110/xdctools_3_62_01_16_core'

    I added th 3_51_3_28_core folder to the ccs1110/ directory (same as 3_62_1_16_core) but when I try to change the version, while the earlier version appears as an option it is marked [unavailable]. I'll include a screenshot.

    Regards,
    Maynard

  • Hey Maynard,

    If you right click on Project Properties, select the General Tab on the left pane. Then, in the center pane click Products. Here you can double click the XDC tools and select an older version to use.

  • Hi Ammar,

    The customer cannot choose the xdc tools needed. As shown in the image below, there is a note that it is unavailable even though the customer already installed the xdc version.

    .

    Regards,
    Maynard

  • Hey Maynard,

    My apologies for missing your initial screenshot showing this. Is the customer able to see the older version of XDC tools in the "Discovered Products" menu in CCS? For this, navigate to Window>Preferences>Code Composer Studio>Products.

    If the version of XDC tools is not available, I would explicitly add the path to the xdctools product in the Product Discovery Path above and then hit the Refresh button in the menu.

  • Hi Ammar, 

    Please see response from customer below.

    Following these instructions I was able to install the 3.51.03.28 version of xdctools, and that eliminated the xdctools warning in the blue stack project, however it is otherwise unchanged. The stack library project still gives me the Error loading Python lib etc.. and the app project fails to build with the same missing files. I don't know how the code generation works these tools, but it seems like the python issue is what needs to be addressed. I'll provide a screen shot of the stack library console build.

    And here is the entire line for that error:

    Error loading Python lib '/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEIGXfGgK/Python': dlopen(/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEIGXfGgK/Python, 0x000A): tried: '/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEIGXfGgK/Python' (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x00145650, codeBlobSize=0x00004D20 for '/private/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEIGXfGgK/Python'), '/private/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEIGXfGgK/Python' (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x00145650, codeBlobSize=0x00004D20 for '/private/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEIGXfGgK/Python')

    the directory '/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T' exists on my system, but the subdirectory '_MEIGXfGgK' does not.

    I am now attempting other BLE example projects and I'm running into a different error during the build, a screenshot will be sent.

    I I get an error like that from directly opening an app or file I know how to force it to work, but since the build process is trying to access this file I don't know how to skip the warning.

    Thank you.

    Regards,
    Maynard

  • Hey Maynard,

    I found a thread that outlines Python's involvement in our projects with some debug steps to try executing things on the Python side. See here for more details. Please let me know if this helps.

    At this point, can the customer build non-ble projects with no issue?

  • Hi Ammar,

    Please see response from customer.

    "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.

    "

    Thank you.

    Regards
    Maynard

  • Hey Maynard,

    Thanks for clarifying, I was under the assumption that the BLESTACK projects were building correctly on Windows. Can you share the build output of the stack project on Windows? What version of CCS is being used? Can the customer double check their system is using the dependencies listed in the Release notes (i.e. CCS 9.0+, Arm: 18.12.2.LTS, XDCTools: 3.51.03.28)?

    Let's take a step back and resolve the issues on the Windows machine first.

    EDIT: Given the length of this thread and that we are shifting focus, can you create a new thread focusing only on the Windows errors? I will continue to support you in that thread.

  • Hey Maynard,

    Now that we've resolved the linked thread, let's revisit this. I think the issue might be a Python compatibility issue with using the pre-build step executable called lib_search. To build the stack library project successfully, the lib_search tool will need to run successfully. I was able to reproduce this on my end, and have filed a ticket to resolve this.

    In the meantime, can you test the attached lib_search executable?

    1. Navigate to the SDK directory (Inside /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/tools/blestack/lib_search/).
    2. Copy the existing lib_search and rename it to lib_search_backup. This will ensure we don't lose the original lib_search tool shipped with the SDK.
    3. Override the existing lib_search tool and copy in the attached tool instead.
    4. Clean the stack library project (by right-clicking on the project properties, and selecting Clean Project).
    5. Build the stack library project.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/538/lib_5F00_search

    If successful, you should see the following output before the compiler starts building the project:

    **** Build of configuration FlashROM_Library for project simple_broadcaster_cc2640r2lp_stack_library ****
    
    /Applications/ti/ccs1120/ccs/utils/bin/gmake -k -j 7 all -O 
     
    /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/../../../tools/blestack/lib_search/dist/lib_search         /Users/batul/Documents/workspace/simple_broadcaster_cc2640r2lp_stack_library/TOOLS/build_config.opt         /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib         /Users/batul/Documents/workspace/simple_broadcaster_cc2640r2lp_stack_library/FlashROM_Library/lib_linker.cmd         cc2640         /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/../../../tools/blestack/lib_search/lib_search.xml         /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/symbols
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/ctrlll/cc2640_ctrlll_xxbx.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/ctrlhci/cc2640_ctrlhci_xxbx.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/hci_tl/cc26xx_hci_tl_none.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/host/cc26xx_smp_xxbx.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/host/cc26xx_sm_xxbx.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/host/cc26xx_profiles_xxbx.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/host/cc26xx_att_xxbx.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/host/cc26xx_gap_xxbx.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/host/cc26xx_gatt_xxbx.a >>>
    <<< Using library: /Applications/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/blelib/host/cc26xx_l2cap_xxbx.a >>>
    <<< Modifying lib_linker.cmd. Stack configurations have changed. >>>
     
    <<< Using xxbx.symbols >>>