2020-03-30 02:42 AM
Where should the fsdata_custom.c be located? It works fine in the Middlewares/Third_Party/LwIP/src/apps/http directory however it is deleted by CubeMX with code generation when I save the .ioc file. Logical should be be Src together with the other custom files. This gives an error: fc.c cannot find fsdata_custom. My Src is included in the Source locations.
Thanks
2020-04-02 07:44 AM
Hello @Renato Valentim , Yes it should be under Middlewares\Third_Party\LwIP\src\apps\http
Some info :
- HTTPD_USE_CUSTOM_FSDATA enabled requires once code has been generated to have in your project folder within Middlewares\Third_Party\LwIP\src\apps\httpd folder "fsdata_custom.c" instead of "fsdata.c".
- Adding "fsdata_custom.c" can be done by renaming existing "fsdata.c" file in "fsdata_custom.c".
- If "fsdata.c" has not been copied in your project, it can be taken from the Firmware Repository (Menu Help > Updater Settings...) Software Package folder within Middlewares\Third_Party\LwIP\src\apps\httpd folder.
- Depending on project settings and IDE used, "fsdata_custom.c" or "fsdata.c" can be removed after each code generation. Please take care of this!
Best Regards,
Khouloud
2020-04-03 12:30 AM
Rq: httpd was replaced by http.