KSDK HTTP server application using KSDK lwIP and FreeRTOS Changing Static Website pages

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KSDK HTTP server application using KSDK lwIP and FreeRTOS Changing Static Website pages

1,775 Views
MWMinor
Contributor V

Hi

I am trying to change the content of the web pages in the lwip demo app http freertos.

The documtation says..

To modify content available through the web server you must complete following steps:
1. Modify, add or delete files in folder "middleware\lwip_2.0.0\src\apps\httpsrv\mkfs\web_pages".
2. Run the script file "middleware\lwip_2.0.0\src\apps\httpsrv\mkfs\mkfs.pl <directory name>" to generate new "httpsrv_fs_data.c".
For example:
C:\sdk\middleware\lwip_2.0.0\src\apps\httpsrv\mkfs> mkfs.pl webpage
Processing file webpage/auth.html
Processing file webpage/cgi.html
Processing file webpage/favicon.ico
Processing file webpage/help.html
Processing file webpage/httpsrv.css
Processing file webpage/index.html
Processing file webpage/NXP_logo.png
Processing file webpage/poll.html
Processing file webpage/request.js
Processing file webpage/ssi.shtml
Processing file webpage/welcome.html
Done.
3. Overwrite the middleware\lwip_2.0.0\src\apps\httpsrv\httpsrv_fs_data.c file by the new generated middleware\lwip_2.0.0\src\apps\httpsrv\mkfs\httpsrv_fs_data.c file.
4. Re-compile the HTTP server application example and download it to your board.

 

But the html pages are located in a directory..

MWMinor_0-1715841535301.png

 

whilst the mkfs.pl programme is located in a different directory..

MWMinor_1-1715841535304.png

 

and neither of them make reference to middleware\lwip_2.0.0\.... so I am confused.

Can anyone shine any light please...??

Thanks

 

0 Kudos
Reply
1 Reply

1,685 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that you have to install perl on your PC, then try based on the readme.txt.

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply