cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent fsdata_custom.c from being deleted upon CubeMX code generation

Renato Valentim
Associate III

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

2 REPLIES 2
Khouloud ZEMMELI
ST Employee

​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

Khouloud ZEMMELI
ST Employee

​Rq: httpd was replaced by http.