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.

CC3200 + Azure IoT Hub

Other Parts Discussed in Thread: CC3200

Hi all

I'm trying to connect my CC3200 to the azure cloud following the example found here: 

I have a couple of issues that I wanted to ask you guys 

1)

I cant find the "NS_INSTALLATION_DIR?= C:/ti/ns_1_10_00_00_eng", the NS file is supposedly installed under the c:/ti/... path when you install the CC3200 SDKs but I cant find it anywhere and I have tried to find the installation file for the NS_1_10_00_00 her in TI without any success. And yes I have installed older versions of the CC3200 SDK but no NS_file :-(

2)

When I'm running the command " > C:\ti\xdctools_3_31_01_33_core\gmake.exe clean" in the cmd window i get the following error (it's in Swedish but it says that the application can not run on this computer,) Is this a Win 10 issue? is this due to a corrupted .exe file?

I have downloaded the latest versions of the SDKs and the service pack for the CC3200 and all the other requirements that is listed in the example.


I hope that I can get some answers from you guys :)

Best regards 

//Karl

  • Hi Karl,

    Karl Weisser said:

    )

    I cant find the "NS_INSTALLATION_DIR?= C:/ti/ns_1_10_00_00_eng", the NS file is supposedly installed under the c:/ti/... path when you install the CC3200 SDKs but I cant find it anywhere and I have tried to find the installation file for the NS_1_10_00_00 her in TI without any success. And yes I have installed older versions of the CC3200 SDK but no NS_file :-(

    NS_1_10_00_00 is not part of CC3200 SDK. Please refer https://github.com/Azure/azure-iot-sdks/blob/master/doc/get_started/ti-rtos-ti-cc3200-c.md for download link. 

    Karl Weisser said:

    2)

    When I'm running the command " > C:\ti\xdctools_3_31_01_33_core\gmake.exe clean" in the cmd window i get the following error (it's in Swedish but it says that the application can not run on this computer,) Is this a Win 10 issue? is this due to a corrupted .exe file?

    Please post this question in CCS forum.

    Karl Weisser said:
    I have downloaded the latest versions of the SDKs and the service pack for the CC3200 and all the other requirements that is listed in the example.

    As per Azure webpage(https://azure.microsoft.com/en-us/develop/iot/get-started/ ) azure sdk is based on CC3200 SDK 1.1.0, so it may be not compatible with latest CC3200 SDK 1.2.0.

    Regards,

    Aashish

  • Hi Aashish

    I have followed the tutorial in the link that you sent me and i found the "ns_1_10_00_00_eng" file and installed it in the correct path.

    Now when I'm running the exe file in the command window I get the following error (see picture below)

    I have tried everything from adding the path to my environmental paths in my settings.

    What am I doing wrong? I have been on this for over one week now without any progress. 

    Best regards 

    //Karl

  • Hi

    I managed to change in the toolchain and now I'm getting a new error (see below)

  • Hi Karl,


    Compiler not able to find gballoc.h. Please make sure you have downloaded complete azure SDK and followed steps mentioned on github.com/.../setup_iothub.md. If you didn't installed "Azure C Share utility" component, please download it from github.com/.../azure-c-shared-utility.


    Regards,
    Aashish
  • Hi Aashish

    I had a IoT with a couple of IoT devices in my Azure hub sense earlier and I used the "device explorer" found int the Azure IoT SDK in order to generate a device specific connection string.

    Thus I must have missed that one had to download and run the " Azure C Share Utility" component in when I was following the example in the link below

    I will try to run this and maybe re-install everything and try again and also run the "Azure c share Utility" and update my results

    Thanks for your help

    //Karl 

  • I had the same problem. I found that you have to use the recursive option to clone the repository. 

    git clone --recursive https://github.com/Azure/azure-iot-sdks.git

    github.com/.../ti-rtos-ti-cc3200-c.md

  • Hi again Aashish

    I have downloaded the " azure C-share utillity" using the "download zip option on the webpage:

    In the webpage it says " 

    1. Clone azure-c-shared-utility

    2. Create a folder called cmake under azure-c-shared-utility\c

    3. Switch to the cmake folder and run "make..."

    1) I'm assuming that it is just downloading the zip file on your desktop  and unziping the folder (done see picture below) 

    2) I created a folder called Cmake in this folder ( see figure below)

    3) now this is the tricky part, how do I switch to this folder and run "make?" 
    Do I need to do this in a terminal window? I'm using windows 10 so I'm amusing that it is in the cmd window then? and what do i rum "make" on when the folder is empty, I'm I missing something?? 

    I'm feeling that this example is relay hard to follow, It should not be this hard to connect my CC3200 board to the Azure IoT device..... )-: )-:

    I'm great-full for all the help I can get

    Best regards

    //Karl

  • Hi Bruce Gibson

    Did you have the same problem? did you have to download the Azure C Share Utilit as well?
    Which example did you follow?

    What do you mean with running " git clone --recursive http....." I'm running windows 10, but I have installed Git on my computer and when I tried to run the git clone --recursive command I got error.

    I'm finding it really hard to get my CC3200 launchpad to work with my azure IoT Hub!!! There should be a easier way of doing this or the examples should be better....

    Thanks for your Time Bruce
    Best regards

    //Karl Weisser
  • Hi Karl,

    No the Shared Utility downloaded once I used the recursive flag. I discovered not all files downloaded when I got the gballoc.h error as well. The recursive flag suggestion was found on Dominic Betts GitHub repository. Are you using the Git Shell command line program to run Git Clone? Windows 10 should be irrelevant.

    I was able to get the sample to work. However note that the example is only for HTTP to Azure IoT Hub and not MQTT. To me that is useless. I have been unable to get MQTT to work with Azure Hub by using the HTTP example as a base. But I was able to run the sample provided by TI to work with Amazon's AWS. The code is very similar and clearly Microsoft used it to generate their SDK for CC3200. processors.wiki.ti.com/.../AWS_IoT_Development The security methods are different however.

    I am very disappointed in the examples provided to work with Azure IoT (and Amazon for that matter). They are not "Hello World" type programs to get you started. I have spent way too much time to make this work. So in my case, either I push my client to go with a different cloud solution (unlikely) or we move to a working embedded environment that plays well with Azure.

    Bruce
  • Hi Karl,

    Karl Weisser said:
    Do I need to do this in a terminal window? I'm using windows 10 so I'm amusing that it is in the cmd window then? and what do i rum "make" on when the folder is empty, I'm I missing something?? 

    As we suggested previously please post this query in Azure forum for better response as Azure SDK is third-party code base and we are not familiar with their build system and architecture/design.

    regards,

    Aashish

  • Hi Aashish and Bruce 

    I have now downloaded the azure-c shared-utility folder using the recursive flag as recommended and things are getting better :) I'm not getting the "Compiler not able to find gballoc.h" error any more butt now instead getting the following error (see below)

    Im assuming that this problem has to do with the " cannot open source file "ti/net/http/httpcli.h"

    Is there something that I forgot to include and/or install?

    Thanks guys for all the help

    Best regards 

    //Karl

  • Karl,

    That file is in the Network Services library. I downloaded the ns_1_10_00_03 zip file, but there is a newer version. You have to download this package separately, it is not part of the repository. Here is where the file resides: C:\ti\ns_1_10_00_03\packages\ti\net\http

    Your variable should look like:
    NS_INSTALLATION_DIR ?= C:/ti/ns_1_10_00_03
    in the make file.

    Bruce
  • Hi Bruce

    Thanks for all the info, your the best.

    I have only tow questions for you.

    1) Where can I find the "ns_1_10_00_03" zip file??

    and 

    2)  the "azure-c-shared-utility" file found in the  link, should I replace the older azure-c-shared-utility file in the Azure sdk folder ?
    and should I follow the example given in the page?

    /*********************************************************************/

    1. Clone azure-c-shared-utility

    2. Create a folder called cmake under azure-c-shared-utility\c

    3. Switch to the cmake folder and run

    cmake .
    /****************************************************/

    How do I "cmake" this folder???? do I need to install Cmake?


    Best regards

    //Karl

  • Karl,

    If you follow the directions here: github.com/.../ti-rtos-ti-cc3200-c.md

    notice the "Install NS package". There is your link.

    I did not have to modify the Azure C-Shared Utility when following the above directions.

  • Hi Karl,

    Did you found any solution to that problem?? I am facing the same issue..