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/CC3220SF-LAUNCHXL: Unable to import OTA library project

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, CC3220SDK, UNIFLASH

Tool/software: Code Composer Studio

I'm trying to import the SimpleLink OTA library into a project with a CC3220SF module, but I'm getting the error:

Error: Import failed for project 'ota' because its meta-data cannot be interpreted. Please contact support.

I've seen other people on the forum run into similar issues, and frequently they're running an old version of CCS or the SDK, but I don't think that's the problem here.

For anyone else following along, the OTA library has .h files that you have to modify, so you can't just build a precompiled lib into your project.

Relevant info:

  • I use the TI default directory locations
  • I'm running CCS version 7.3.0.00019 
  • I'm using version 1.50 of the CC32XX SDK (C:\ti\simplelink_cc32xx_sdk_1_50_00_06)
  • I'm not trying to copy the OTA library into my workspace
  • I tried restarting CCS and re-importing
  • I'll attach my main project's .cproject, .project, and .ccsproject files in case they're useful, but I don't see anything that looks wrong

Any thoughts? Some config file somewhere that needs to be reset? 

Thanks...

ProjectFiles.zip

  • Hello,
    The project metadata for your main project looks fine. However the error is not with that project but the ota library project. Could you send the project metadata for that project?

    I was able to import the ota project at C:\ti\simplelink_cc32xx_sdk_1_50_00_06\source\ti\net\ota\ccs into my CCSv7.3.0.00019 environment without issue and build it successfully (after adding the required predefined symbol to the project). Assuming you have correct device support for CC32xx installed and the SDK is properly discovered by CCS, it should work. Perhaps the project got corrupted somehow (I can take a look in the metadata)

    Thanks
    ki
  • Hi Ki,

    Thanks for taking a look at the issue!

    The OTA project files I'm attaching come from the SDK directories (not my workspace), since the OTA guidelines indicated that developers should not copy files to the workspace when importing the OTA library.

    In the attachments, you'll find the following:

    otaTopLevel.zip: an empty template .project file from simplelink_cc32xx_sdk_1_50_00_06\source\ti\net\ota

    otaProjectFiles.zip: all 3 project files from simplelink_cc32xx_sdk_1_50_00_06\source\ti\net\ota\ccs

    Thanks,

    Ken

    otaTopLevel.zipotaProjectFiles.zip

  • The metadata seems ok. How are you importing the project? Is it via 'Project -> Import CCS Projects...'?
  • Yes, that's correct.

    In case it matters, I checked the "Automatically import referenced projects..." box and unchecked the "Copy projects into workspace" box, and the "ota" project shows up in the list of Discovered Projects with the box checked.

    Just out of curiosity, I tried to import the same OTA project from version 1.40 of the CC 32XX SDK and the import operation succeeded, but with the following error:
    This project was created using a version of compiler that is not currently installed - 15.12.1.LTS [ARM]. See 'Help > Install New Software' and select 'Code Generation Tools Updates' to check if this compiler is available through a CCS update. Visit CCS App Center to get the latest compiler support. Or download and install the compiler, then register it with CCS through 'Preferences > CCS > Build > Compilers'.

    Looks like I have version 16.9.6 of the ARM compiler.

    I'll take a look at the differences between versions of the OTA project in versions 1.40 and 1.50 of the SDK.
  • Some further details:

    The code for the OTA library between versions 1.40 and 1.50 of the CC 32XX SDK is very different -- API changes, compiler flags, implementation, type definitions, etc.

    I'd thought about just using the old OTA library from version 1.40, since it imports into the workspace, but after I fix compiler flags that have been deprecated with the latest compiler, I end up with dozens of build errors because the Path Variables for the rest of the project still point to version 1.50 of the SDK. I don't think I can revert my whole project to the older SDK (and CCS), so I'm still hoping to find a way to import the v1.50 version of the OTA lib successfully.

    With so many changes to v1.50 of the OTA lib, I'd like to get those incorporated into my project anyways.

    It's unfortunate that there isn't more detail around the import error. The only message in .metadata/.log is:

    !ENTRY com.ti.common.project.core 4 0 2017-11-21 09:36:47.461
    !MESSAGE Import failed for project 'ota' because its meta-data cannot be interpreted. Please contact support.

  • I also tried creating a new, empty workspace to import the OTA library (and nothing else), but I got the same error.
  • Ki, I'm curious if you're able to import the OTA library project into a blank workspace (using SDK v1.50, CCS, TI-RTOS)...

    Thanks,

    Ken

  • Hi ken,

    My apologies for the late reply. I let this thread fall off my radar.

    I am able to import the project files in otaProjectFiles.zip just fine. I even dropped them into my simplelink installation (C:\ti\simplelink_cc32xx_sdk_1_50_00_06\source\ti\net\ota\ccs) and it imports fine. There does not seem to be any problems with the files.

    What host OS are you using? I assume Windows since you mentioned a C:\ drive in one of your paths.

    Can you try something for me? Can you try importing the attached project?

    /cfs-file/__key/communityserver-discussions-components-files/968/cc3200test.zip

    It is a dummy project but I want to just confirm that you have all the correct device support at least.

    Thanks

    ki

  • Hi Ki,

    I'm running Windows 10 with all of the updates Microsoft pushes out nowadays.

    I tried importing the project you attached and it worked fine, so I began to suspect that there was some obscure problem with my CCS/SDK setup.

    I tried installing CCS and the CC3220SDK on a separate clean PC and I was able to import the OTA library, so I renamed the C:\ti directory on my own PC and installed CCS, the SDK, and Uniflash from the respective TI installers.

    After that, I was able to import the OTA project from the SDK (w00t, w00t!). After defining OTA_VENDOR_TOKEN with my DropBox token in the OTA library's otauser.h file, I'm also able to build the library.

    Thanks for your help diagnosing the problem!
  • great! Glad to hear you resolve the issue. Thanks for the update and apologies again for the delayed response.

    Thanks
    ki