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/CC3200-LAUNCHXL: Build AWS IOT Embedded C SDK into a library

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200

Tool/software: Code Composer Studio

Hi All,

I am following this thread: https://e2e.ti.com/support/embedded/tirtos/f/355/p/502317/1855585#1855585 to build the AWS IOT Embedded C SDK into a library, particularly the steps in the response from Ramsey.

I am currently stuck on build error:

**** Build of configuration Default for project AWSIOT ****

"C:\\ti\\xdctools_3_32_00_06_core\\gmake" -e aws_iot_sl.aem4
"../../../..//aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/platform_tirtos/network_sl.c", line 19: fatal error: cannot open source file "ti/net/tls.h"

>> Compilation failure
1 catastrophic error detected in the compilation of "../../../..//aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/platform_tirtos/network_sl.c".
Compilation terminated.
gmake: *** [network_sl.o] Error 1

**** Build Finished ****

Environment of the project:

  • Project Branch: v1.1.1-ti
  • Code Composer Studio: 6.1.1.00022
  • TIRTOS_INSTALL_DIR: ${COM_TI_RTSC_TIRTOSCC32XX_INSTALL_DIR} ==> C:\ti\tirtos_cc32xx_2_16_01_14
  • TI_ARM_CODEGEN_INSTALL_DIR: ${ccs_install_root}/tools/compiler/ti-cgt-arm_5.2.9
  • XDC_INSTALL_DIR: ${XDCROOT} ==> C:\ti\xdctools_3_32_00_06_core

I have checked that the <\ti\net\tls.h> header is in "C:\ti\tirtos_cc32xx_2_16_01_14\products\ns_1_11_00_10\packages"

AND the NS_INSTALL_DIR defined in <AWS_EMBEDDED_C_SDK>/products.mak should equal to the directory in above:

  • NS_INSTALL_DIR := $(wildcard $(TIRTOS_INSTALL_DIR)/products/ns_*)

So I am wondering why the compiler can not open <\ti\net\tls.h>

Thank you for any help!!

  • The Issue is fixed.

    I downloaded the latest CC3200 SDK (1.3.0) from: www.ti.com/.../CC3200SDK

    Followed the getting started guide in the SDK to set up the workspace (download TI RTOS from app center, have ti_rtos_config, simplelinke, oslib, etc built in ordered)

    git clone -b v1.1.1-ti git://git.ti.com/iotdev/aws-iot-device-sdk-embedded-c.git
    to the root directory of the example folder under the CC3200 SDK

    Added and built the project as instructed by e2e.ti.com/.../1855585
    With the exception that I had to use absolute paths for the environment variables:
    TIRTOS_INSTALL_DIR,
    TI_ARM_CODEGEN_INSTALL_DIR,
    XDC_INSTALL_DIR
    and use "/" instead of "\" as path separators (I am on a Windows machine)

    Cheers!
  • Thanks for updating us.