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.

Problems compiling the CCS5 version of the Simple HTTP Web Server Application

Other Parts Discussed in Thread: MSP430FR5735, MSP-EXP430FR5739

I wonder if you can help me? I am trying get the webserver demo running for the FRAM MSP430FR5735 board with the CC3000 module but I can’t get the standard code to compile.

Here is what I have done:

1)    I downloaded the CC3000+FRAM Simple HTTP Web Server Application code from the Ti website (http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_Downloads) .

2)   I unzipped & copied the code to my C:\ti\ folder where I created a directory called ‘Webserver’.

3)   I opened up CSS5 and started a new project based on the MSP430FR5735 with the ‘blinky’ application. I compiled this application and everything was ok.

4)   I then excluded ‘blinky’ from the build

5)   I then imported the ‘demo.c’ file from the webserver directory into the project structure.

 

When I try and build the project I get a lot of errors thrown that it can’t find some (or most) of the included files (e.g. #include "wlan.h", #include "cc3000.h",#include "strlib.h".....).

If I change the include path to all of the locations that the flagged problems are located (which seems a very laborious task – is there a better way of doing this??)  I still get problems that the project can’t build:

 

Description         Resource  Path              Location    Type

#171 expected a declaration                   webserv                            line 103, external location: C:\lib\CC3000HostDriver\evnt_handler.h         C/C++ Problem

#171 expected a declaration                   webserv                            line 103, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#171 expected a declaration                   webserv                            line 116, external location: C:\lib\CC3000HostDriver\evnt_handler.h         C/C++ Problem

#171 expected a declaration                   webserv                            line 116, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#171 expected a declaration                   webserv                            line 131, external location: C:\lib\CC3000HostDriver\evnt_handler.h         C/C++ Problem

#171 expected a declaration                   webserv                            line 131, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#171 expected a declaration                   webserv                            line 145, external location: C:\lib\CC3000HostDriver\evnt_handler.h         C/C++ Problem

#171 expected a declaration                   webserv                            line 145, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#171 expected a declaration                   webserv                            line 157, external location: C:\lib\CC3000HostDriver\evnt_handler.h         C/C++ Problem

#171 expected a declaration                   webserv                            line 157, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#171 expected a declaration                   webserv                            line 223, external location: C:\lib\CC3000HostDriver\hci.h        C/C++ Problem

#171 expected a declaration                   webserv                            line 223, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h   C/C++ Problem

#171 expected a declaration                   webserv                            line 237, external location: C:\lib\CC3000HostDriver\hci.h        C/C++ Problem

#171 expected a declaration                   webserv                            line 237, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h   C/C++ Problem

#171 expected a declaration                   webserv                            line 250, external location: C:\lib\CC3000HostDriver\hci.h        C/C++ Problem

#171 expected a declaration                   webserv                            line 250, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h   C/C++ Problem

#171 expected a declaration                   webserv                            line 264, external location: C:\lib\CC3000HostDriver\hci.h        C/C++ Problem

#171 expected a declaration                   webserv                            line 264, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h   C/C++ Problem

#171 expected a declaration                   webserv                            line 277, external location: C:\lib\CC3000HostDriver\hci.h        C/C++ Problem

#171 expected a declaration                   webserv                            line 277, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h   C/C++ Problem

#171 expected a declaration                   webserv                            line 291, external location: C:\lib\CC3000HostDriver\hci.h        C/C++ Problem

#171 expected a declaration                   webserv                            line 291, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h   C/C++ Problem

#171 expected a declaration                   webserv                            line 305, external location: C:\lib\CC3000HostDriver\hci.h        C/C++ Problem

#171 expected a declaration                   webserv                            line 305, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h   C/C++ Problem

#171 expected a declaration                   webserv                            line 71, external location: C:\lib\CC3000HostDriver\netapp.h  C/C++ Problem

#171 expected a declaration                   webserv                            line 71, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\netapp.h            C/C++ Problem

#171 expected a declaration                   webserv                            line 89, external location: C:\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#171 expected a declaration                   webserv                            line 89, external location: C:\lib\CC3000HostDriver\netapp.h  C/C++ Problem

#171 expected a declaration                   webserv                            line 89, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#171 expected a declaration                   webserv                            line 89, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\netapp.h            C/C++ Problem

#760 variable "hci_evnt_hdr_t" is not a type name                  webserv                            line 56, external location: C:\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#760 variable "hci_evnt_hdr_t" is not a type name                  webserv                            line 56, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h      C/C++ Problem

#760 variable "netapp_pingreport_args_t" is not a type name                 webserv                            line 195, external location: C:\lib\CC3000HostDriver\netapp.h            C/C++ Problem

#760 variable "netapp_pingreport_args_t" is not a type name                 webserv                            line 195, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\netapp.h                    C/C++ Problem

#760 variable "tNetappIpconfigRetArgs" is not a type name                   webserv                            line 237, external location: C:\lib\CC3000HostDriver\netapp.h            C/C++ Problem

#760 variable "tNetappIpconfigRetArgs" is not a type name                   webserv                            line 237, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\netapp.h                    C/C++ Problem

#760 variable "tNetappIpconfigRetArgs" is not a type name                   webserv                            line 94, external location: C:\ti\Webserver\source\apps\MSP-EXP430FR5739\webserver\webserver\cc3000.h                C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 107, external location: C:\lib\CC3000HostDriver\evnt_handler.h           C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 107, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h      C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 122, external location: C:\lib\CC3000HostDriver\evnt_handler.h           C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 122, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h      C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 136, external location: C:\lib\CC3000HostDriver\evnt_handler.h           C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 136, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h      C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 148, external location: C:\lib\CC3000HostDriver\evnt_handler.h           C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 148, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h      C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 160, external location: C:\lib\CC3000HostDriver\evnt_handler.h           C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 160, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h      C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 228, external location: C:\lib\CC3000HostDriver\hci.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 228, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h     C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 241, external location: C:\lib\CC3000HostDriver\hci.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 241, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h     C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 255, external location: C:\lib\CC3000HostDriver\hci.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 255, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h     C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 268, external location: C:\lib\CC3000HostDriver\hci.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 268, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h     C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 282, external location: C:\lib\CC3000HostDriver\hci.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 282, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h     C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 296, external location: C:\lib\CC3000HostDriver\hci.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 296, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h     C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 310, external location: C:\lib\CC3000HostDriver\hci.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 310, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\hci.h     C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 79, external location: C:\lib\CC3000HostDriver\netapp.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 79, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\netapp.h                    C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 94, external location: C:\lib\CC3000HostDriver\evnt_handler.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 94, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\evnt_handler.h      C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 95, external location: C:\lib\CC3000HostDriver\netapp.h            C/C++ Problem

#78-D this declaration has no storage class or type specifier                  webserv                            line 95, external location: C:\ti\Webserver\source\lib\CC3000HostDriver\netapp.h                    C/C++ Problem

 

Do you have any idea on where I am going wrong… am I importing the files/project incorrectly.

I am now completely out of ideas so any guidance on where I am going wrong & the best way to import existing projects into CCS5 will be appreciated.

Many thank.

Michael

  • Hi Michael,

    I suggest that you import the project so that you get all the dependencies and settings correct.

    Instructions:

    Open CCS5

    File->import

    select Code Composer Studio -> Existing CCS/CCE Eclipse Projects.

    Click next and then Browse to the project source folder you downloaded.

    Select all the projects in Discovered Projects: list and click finish

    This will import everything including project options and libraries.

    Good luck

  •  Hi Thanks for the information.... I tried that and I still get errors (Please see the screen grab)

     

     

  • Hi,

    I was going off of general knowledge. I have never worked with this example before so I downloaded the source from http://www.ti.com/lit/zip/swrc246 

    and there is no CCS project files; just IAR.  

    Does anyone know if CCS is supported for this demo?

    You can download http://www.ti.com/lit/zip/swrc235 which is the homeautomation project.  It has CCS support.  So you can try that and then use it as a CCS project reference for creating the HTTP demo.

  • It looks like the link on the download page still calls off just the IAR version (http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_Downloads) for the web server

     

    I think I got the version for the CCS compiler from the E2E forum link …

    http://e2e.ti.com/support/low_power_rf/f/851/p/187337/675485.aspx#675485

    [Note: I have tried to compile this and it still doesn’t import & compile properly]

     

    Towards the bottom of the page there was the following post from a Ti Employee with a link to a new CCS version of the web server demo–

     

    Posted by Pedro5084  

    onJun 20, 2012 11:11 PM

    •                        
    • Prodigy670 points
    • Hi Paul,
    • We are pending finalization of the patch programmer license, the patch will improve the first time configuration, but is not required to run the attached package, which includes the new version of the web server. It has a new host driver, and one of the added features is to send the TX complete after all packets have been acknowledged. This feature is utilized in the web server and will wait for tx completion after sending all the html pages, before closing the socket.
    • 2728.CC3000_FRAM_webserver_2_0_16.zip
    • Pedro