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,
I am able to use the example of LwIP server given with c2000ware. I can run it on my target and have a good communication between device and PC.
Now, i would like to change the html file to use my own web application. I have HTML and javascript files, I moved them in this folder : C:\ti\c2000\C2000Ware_3_03_00_00\libraries\communications\Ethernet\third_party\lwip\lwip-2.1.2\src\apps\http\fs\fs
and I saw that I have to run a script (makefsdata) to generate the good files for my device
My question is, how to run this script. If i write the command "makefsdata" in command prompt, it says that the command does not exist...
Thanks in advance for your help !
Hi Nathan,
The file makefsdata is a perl script. Make sure you have perl installed.
To run it in a bash terminal you need to go to the location "\lwip-2.1.2\src\apps\http\fs" and run "./makefsdata fs" to process the files in sub directory fs.
Thanks,
Yashwant
Hi Yashwant,
Thanks for your answer !
I installed Perl and I have version 5.14.
I went to the location lwip-2.1.2\src\apps\http\makefsdata and run command: perl makefsdata. The result is : FIND: paramater format not correct. When I open the perl script makefsdata, I can see as third command: open(FILES, "find . -type f |");
So I think that the error is due to this command. Can you see what is wrong ?
Hi Nathan,
The script uses unix system commands like find, cp. I would suggest you to use unix shell like git bash or mingw if you are on windows.
Thanks,
Yashwant
Ok it seems to work but I always have the old HTML page on my server.
I see that there is 2 makefsdata, one in lwip-2.1.2\src\apps\http\fs, and the other in lwip-2.1.2\src\apps\http\makefsdata. I run the two files with git bash but maybe I only have to run one of them ?
Nathan,
You can run the script in lwip-2.1.2\src\apps\http\fs which will automatically pick the html files in the fs subdirectory.
After running the script with correct flags check if the generated fsdata.c file has been updated with structures of your custom html pages. You need to update the fsdata.c file in the location C2000Ware_3_03_00_00\libraries\communications\Ethernet\third_party\lwip\lwip-2.1.2\src\apps\http\fsdata.c and rebuild the project for the server to get updated.
Thanks,
Yashwant