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.
Hello everyone,
Well my post is related to an issue with TIVA and CC3100 Http web server.
The main goal of my project is to watch out for different sensors connected to my TIVA launchpad plus CC3100.
I have achieved it using Energia Framework as there is a simple web server example already defined,so little modifications were needed using Energia.
Now when coming To ccs,MSP430F5529 + CC3100 works fine with all the examples defined in SDK,tried most of them even the Http server one also and i was able to control the on board LEDs using web browser.
The problem i am facing with TIVA + cc3100 ,I read the doc for http server example ,it says we need to dumpl the server.ucf file into flash using Uniflash first,but i wonder why to do that,when we can do everything using CCS.
To program the board for Http web server(to control on board Leds),the steps i followed are as
1.imported the WLAN_AP project into my workspace and Set the path for tivaware. ( import path (C:\ti\CC3100SDK_1.2.0\cc3100-sdk\platform\tiva-c-launchpad\example_project_ccs\getting_started_with_wlan_ap))
2. tried to build the apllication to verify the paths,everything was quite good to go.
2. Now replaced the main .c by the main.c from C:\ti\CC3100SDK_1.2.0\cc3100-sdk\examples\http_server.
3.Tried to build it again,now there i am getting some errors that,LED1,LED2 etc are not defined.
I know the problem is there with board.c and board.h files of the program because no functions are defined for tiva leds under these files.
I tried to define those leds but i am not able to find where Led1 has to be defined as PortF pin1 and Led2 as PortF pin2.
If possible suggest some resources to go easily with the whole thing.
Thank you
regards
Sajad
Hi Sajad
LED1 and LED2 are not actually addressing the PortF pin1/pin2. This is an enumeration type for http_server example.
typedef enum
{
NO_LED,
LED1,
LED2,
LED3
} ledEnum;
One more thing, If you are not using Uniflash to download "server.ucf" to the serial-flash, what did you plan to download that file which contains html files into serial-flash? You have to flash html files in order to access the corresponding pages.
Thanks
Hi Nazamul & Charles,
Thank you for your response,
Charles i have tried those wifi examples ,they seem to be working with TIVA + CC3100.
Nizamul, I defined the LED ports in Enum file,But the thing was ,how to flash html files using into TIVA + CC3100 ,
Now it seems i also have to try that poor mans method for flashing.
your help is appreciated.
Regards
Rather SAJAD
Hi Sajad,
Please check the "C:\ti\CC3100SDK_1.1.0\cc3100-sdk\examples\file_operations" or http://processors.wiki.ti.com/index.php/CC31xx_File_Operations_Application.
Based on content of your html file(s), you can store those in TM4C123G's RAM or ROM. Please do care about double quote ( \ " double quote content " \ ).
Thanks
Hi
Sorry, I didn't find a helpful online tutorial on this. More than a year ago, I did by my own. You need to do the following changes on the "example/file_operation" source code.
1. Change the file name defined by "SL_FILE_NAME". This should be something like this "www/html_file_name.html" or "www/safe/html_file_name.html" based on your application mode. (More on this at chapter 12 of swru368a.pdf).
2. Change the content of const variable "oldMacDonald" with your html code. I did something like below
const _u8 pagecontent[] = "<!DOCTYPE html>\
<html>\
<head>\
<title>SimpleLink(TM) - CC31xx - TI WiFi On Chip</title>\
</head>\
<body>\
Hello World!\
</body>\
</html>";
[NOTE: If you change the file content variable from "oldMacDonald" to "pagecontent". Then make sure to change the rest]
Hopefully, You will build after the above change and able to browse the loader page with "HTTP Server" application. Let me know if you find any difficulties.
Thanks