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/CC3100BOOST: CCS WIndows compatibility

Part Number: CC3100BOOST
Other Parts Discussed in Thread: CC3100SDK, CC3100, CC31XXEMUBOOST, , MSP430F5529, CC3200

Tool/software: Code Composer Studio

On compiling HTTP Client  from CC3100SDK 1.2 on Code Composer Studio v7, I get the following errors.

#1965 cannot open source file "windows.h" .ccsproject /httpclient1 line 44, external location: E:\TI\CC3100SDK\cc3100-sdk\platform\simplelinkstudio\slosi.h C/C++ Problem

gmake: *** [main.obj] Error 1 httpclient1 C/C++ Problem

gmake: Target 'all' not remade because of errors. httpclient1 C/C++ Problem

I guess I should include some preproccessor  define. Which one ?

If not that what else could be done to get rid of these errors. 

I have put this question on this forum specifically because I feel its something i need to add to the software. 

  • Hi,

    From your other post I can infer that your code may have additional files and #includes added by Visual Studio, therefore the error with an OS-specific header file <windows.h>.

    CCS does not build code for Windows OS (at least not with a great deal of effort in integrating everything) but, since you are using an example project from the CC3100 SDK, you should be fine simply importing the project to your workspace - using CCSv7.2, I did the following steps:

    - Go to menu Project → Import CCS Projects
    - In the box "Select search-directory" I pointed to the base C:\ti\CC3100SDK_1.2.0. It scanned through all projects
    - Selected the http_client project and clicked on OK. In your case, if you already have a project named http_client you will have to rename it before doing this step (simply highlight the name of the existing project, press the F2 key and type a different name). 
    - After importing, follow the instructions shown at the top of the main.c file to properly set the wifi parameters.
    - After doing these modifications, if you try to build this older project you get the following error message:

    This project was created using a version of compiler that is not currently installed - 4.3.1 [MSP430]. See 'Help > Install New Software' and select 'Code Generation Tools Updates' to check if this compiler is available through a CCS update. 

    - As mentioned in the error message above, go to the indicated menu, make the selection and scroll to find a MSP430 Compiler Tools Version 4.3.x (4.3.8 is available, which is compatible). 
    - After doing all this the project should build fine. 

    Another approach is to start your development with one of the pre-existing examples present in the TI Resource Explorer - its usage is shown starting at 1:00 on This short video. Since your board is a boosterpack, you will have to select your base launchpad (where the booster pack connects to): MSP430 or MSP432. 

    Hope this helps,

    Rafael

  • Hi Rafel !

    I did as you said, imported  the http_client project and updated the compiler but the version isn't 4.3.8 , rather it is 17.3

    With that i get these errors. Anything I did wrong? Anything there to be modified?

    Description Resource Path Location Type
    
    #1965 cannot open source file "simplelink.h" board.c /http_client/board line 37 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" device.c /http_client/simplelink/source line 42 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" driver.c /http_client/simplelink/source line 40 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" flowcont.c /http_client/simplelink/source line 42 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" fs.c /http_client/simplelink/source line 42 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" main.c /http_client line 63 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" netapp.c /http_client/simplelink/source line 42 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" netcfg.c /http_client/simplelink/source line 42 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" nonos.c /http_client/simplelink/source line 42 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" socket.c /http_client/simplelink/source line 43 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" spawn.c /http_client/simplelink/source line 42 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" spi.c /http_client/spi line 40 C/C++ Problem
    
    #1965 cannot open source file "simplelink.h" wlan.c /http_client/simplelink/source line 42 C/C++ Problem
    
    gmake: *** [board/board.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [main.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/device.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/driver.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/flowcont.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/fs.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/netapp.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/netcfg.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/nonos.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/socket.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/spawn.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [simplelink/source/wlan.obj] Error 1 http_client C/C++ Problem
    
    gmake: *** [spi/spi.obj] Error 1 http_client C/C++ Problem
    
    gmake: Target 'all' not remade because of errors. http_client C/C++ Problem

    Just as an additional information , I am running this application on CCSv7 without connecting the hardware. The hardware I have is CC3100BOOST and CC31XXEMUBOOST. I plan to later add it to the MCU (ARM7) of  my embedded device .

  • Hi,

    I see your project seems heavily modified from the original http_client (multiple build configurations such as Debug_GNU, Debug_TI).

    Did you try to install the older compiler to satisfy the project original dependency? You should do that, switch your build configuration to "Debug" (menu Project --> Build Configurations --> Set Active), modify the project parameters according to the top header of the main.c file and rebuild.

    Regards,
    Rafael
  • Hello Rafael !

    Well, the compiler issue has been resolved. I now have  the version 4.3.8 .

    Now, when I build it, these are the errors.  If in any case preprocessor symbol could be an issue, originally __CCS__ , _MSP430F5529_ , __SL__ , _USE_CLI_ were there . I added HTTPCli_LIBTYPE_MIN . There is no difference in errors with or without my addition.What now ?


    Description Resource Path Location Type #10010 errors encountered during linking; "http_client.out" not built http_client C/C++ Problem <a href="processors.wiki.ti.com/.../10234"> unresolved symbols remain http_client C/C++ Problem cannot find file "http_lib.lib" cannot find file "http_lib.lib" http_client C/C++ Problem gmake: *** [http_client.out] Error 1 http_client C/C++ Problem gmake: Target 'all' not remade because of errors. http_client C/C++ Problem unresolved symbol HTTPCli_connect, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_construct, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_getResponseField, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_getResponseStatus, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_readResponseBody, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_sendField, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_sendRequest, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_sendRequestBody, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_setRequestFields, first referenced in ./main.obj http_client C/C++ Problem unresolved symbol HTTPCli_setResponseFields, first referenced in ./main.obj http_client C/C++ Problem #10204-D could not resolve index library "libmath.a" to a compatible library http_client C/C++ Problem #169-D argument of type "unsigned char *" is incompatible with parameter of type "char *" cli_uart.c /http_client/cli_uart line 202 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 132 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 135 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 142 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 145 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 166 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 213 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 216 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 225 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 228 C/C++ Problem #770-D conversion from pointer to smaller integer spi.c /http_client/spi line 247 C/C++ Problem

    If in any case preprocessor symbol could be an issue, originally __CCS__ , _MSP430F5529_ , __SL__ , _USE_CLI_ were there . I added HTTPCli_LIBTYPE_MIN . There is no difference in errors with or without my addition.What now ?



  • I found this thread and using it i am now down to Zero errors and 12 warnings. But, Build has finished. What is supposed to be done next ? How will it be sent to the available hardware CC3100BOOST +CC31XXEMUBOOST. Please mention what all is to be done till the end of process.

    The thread which helped.

    Warnings are : 

    Description	Resource	Path	Location	Type
    #10204-D could not resolve index library "libmath.a" to a compatible library	http_client		 	C/C++ Problem
    #169-D argument of type "unsigned char *" is incompatible with parameter of type "char *"	cli_uart.c	/http_client/cli_uart	line 202	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 132	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 135	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 142	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 145	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 166	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 213	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 216	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 225	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 228	C/C++ Problem
    #770-D conversion from pointer to smaller integer	spi.c	/http_client/spi	line 247	C/C++ Problem
    

  • Hi,

    I am not an expert on this platform, but I was sent the following guides that can help you with the code loading and connection of the CC3100BOOST:

    - SWRU375
    - processors.wiki.ti.com/.../CC3100_HTTP_Client

    Hope this helps,
    Rafael

  • Hello

    I have been through these documents before. These doesn't help. Why does it seem that I would need a hardware with MSP 430 to execute it. I am mentioning it again that I just have CC3100BOOST + CC31XXEMUBOOST. How do we execute the http_client with these hardware.?

    There is no proper guidance on how to use CC31XXEMUBOOST.

    As per the second link you gave , 

    http://processors.wiki.ti.com/index.php/CC3100_HTTP_Client

    We are asked to connect our 'board' to Windows PC.

    Which board are you guys talking about? Why such ambiguity ?

    Next , as suggested I opened Terminal Setting and I did what was asked to be done for CC31XXEMUOOST in Putty , but no connection opens. 

    Please clear this air of ambiguity and suggest some proper guidance by your experts to those who are new to this platform .

  • Hi Arvind,

    I believe there was some confusion here. The only platform with a HTTP Client example in CC3100 SDK 1.2 is the MSP430F5529 LaunchPad. You must have that host microcontroller in order to run this example without changes to the code/porting to another host driver. In order to execute code using just the CC3100 BoosterPack and CC3100 Emulation BoosterPack, you need to use a SimpleLink Studio example which uses Visual Studio on your PC to act as the host. This is how the CC3100 is different from the CC3200; the CC3100 is just the network processor, so it cannot run anything without a host microcontroller.

    If you want to demo all of the available examples in the CC3100 SDK, I highly recommend you purchase a MSP430F5529 LaunchPad. It is also much easier to start porting from this host driver for development than from SimpleLink Studio.

    Best regards,
    Sarah
  • Okay, thanks for the clarification.

    So, I have got the wrong idea of the working of CC31XXEMUBOOST from the description given on the website. Can you please tell me in a little more detail about its features and usage, where can it replace an MCU etc.
  • Hi Arvind,

    The Emulation BoosterPack has a few uses which are covered on the CC31XXEMUBOOST product page description:
    1. Flashing updates to the CC3100BOOST (service pack, user files such as HTML pages, certificates, etc.)
    2. Using the CC3100 radio tool for RF performance evaluation
    3. Using SimpleLink™ Studio for MCU software development – PC tool, documents and example applications can be found in the CC3100 software development kit (SDK)

    You need the Emulation BoosterPack, at the least, to flash the latest service pack to the CC3100 during development. The only way to replace a host microcontroller is to use the Emulation BoosterPack with SimpleLink Studio software so the PC is always connected and acting as the host.

    If you would like to work with a standalone microcontroller+Wi-Fi combination, you can check out the CC3200.

    Best regards,
    Sarah