2020-11-24 09:36 PM
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?
Solved! Go to Solution.
2020-11-25 04:04 AM
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
2020-11-25 03:20 AM
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
2020-11-25 04:04 AM
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