cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP server fsdata_custom.c project problems

DRude.1
Associate II

I am trying to create a http server. I create the fsdata.c file using makefsdata.exe. Then I exclude this file from the compilation of the project. However the project throws errors when trying to build the project:

../Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd_opts.h:386:27: fatal error: fsdata_custom.c: No such file or directory

make: *** [Middlewares/Third_Party/LwIP/src/apps/http/subdir.mk:21: Middlewares/Third_Party/LwIP/src/apps/http/fs.o] Error 1

make: *** Waiting for unfinished jobs....

It ask about having the fsdata_custom.c file in project folder, but what is fsdata_custom.c? Where I can create or get this file?

1 ACCEPTED SOLUTION

Accepted Solutions
DRude.1
Associate II

Thanks for advise, it solved my problem. Intresting, why it coudn't be set in CubeMX. HTTPD_USE_CUSTOM_FSDATA can be set just like Enable in CubeMX and no have opportunity for Disable

View solution in original post

2 REPLIES 2
SKacp.1
Senior II

Hello,

Please change define HTTPD_USE_CUSTOM_FSDATA in file "lwipopts.h" from "1" to "0"

/*----- Default Value for HTTPD_USE_CUSTOM_FSDATA: ---*/

#define HTTPD_USE_CUSTOM_FSDATA 0

DRude.1
Associate II

Thanks for advise, it solved my problem. Intresting, why it coudn't be set in CubeMX. HTTPD_USE_CUSTOM_FSDATA can be set just like Enable in CubeMX and no have opportunity for Disable