Loading...
 
Skip to main content

System Workbench for STM32


HTTPD Server - fsdata.c issue

Bernard,

I am not running Linux. I am using Windows. If I exclude fsdata.c from the build, the program builds successfully without errors.

However, if I type the IP address in the URL bar of Firefox, I get "Unable to connect" message. I checked the lwipopts.h file and I see #define LWIP_HTTPD 1. I can ping the Discovery board and it replies to the ping request.

If I look in the Release->Middlewares->Third_Party->LwIP->apps->httpd folder, I see httpd.o but no fsdata.o. I assume the html code is in httpd.o. Is that correct? The web code includes an index.html file which is what the browser would be looking for.

Does anything else need to be done to start the HTTPD server? I believe that would be taken care if by the call to HAL_LWIP_Init in main.c.

It would be nice if there was a guide somewhere that told how to setup a HTTPD server using CubeMX and System Workbench.