Skip to main content
Visitor II
May 26, 2023
Solved

File System to store HTML Web pages in NUCLEO-H745-ZIQ

  • May 26, 2023
  • 2 replies
  • 2792 views

I am trying to develop simple HTTP Web Server using NUCLEO-H745-ZIQ board.

The idea is to have file system to store our HTML web pages.

Do you have an example code to achieve this ? Or else please suggest us a way to have file system to load our html pages using NUCLEO-H745-ZIQ board.

    This topic has been closed for replies.
    Best answer by FBL

    Hi @PB S.1​,

    1. You can find the file system under this link. Projects/STM32H743I-EVAL/Applications/LwIP/LwIP_HTTP_Server_Raw/Fs
    2. To use FS data file, you can refer to HTTPD_FSDATA_FILE in httpd_opts.h. Then, you can specify FS_ROOT and add the appropriate entry for your custom HTML file.

    2 replies

    Explorer II
    May 26, 2023
    Technical Moderator
    May 30, 2023

    Hello @PB S.1​,

    You can migrate the following example used for NUCLEO-H743 under Projects\NUCLEO-H743ZI\Applications\LwIP 

    PB S.1Author
    Visitor II
    May 31, 2023

    Hi @F.Belaid​ ,

    I found an example project under the repository that you have mentioned.

    I wanted to know how to generate fsdata_custom.c.

    Suppose if I want to add my HTML web files, how to generate fsdata_custom.c corresponding to my web files?

    Technical Moderator
    May 31, 2023

    Hello again @PB S.1​,

    To include "fsdata_custom.c" instead of "fsdata.c" for the file system (to prevent changing the file included in CVS) you should set this to 1.

    #define HTTPD_USE_CUSTOM_FSDATA  1 

     You can find this define in lwipopts.h.