2022-05-21 1:31 AM
I am working on httpd server project. My website codes are high memory (200MB). I converted my html/css codes to C file (fsdata.c). My C files now 200MB. I want to use SD Card for reading to C files. How can i do it? My SD Card 2GB.
2022-05-21 2:01 AM
You'd need to add in SDIO/SDMMC and FATFS code to access the card, and them modify the file system code that deals with the fsdata so it recognizes a path that has files on the card, and then pulls and sends that data.
2022-05-21 2:04 AM
do you have example code?
2022-05-22 7:51 AM
You don't want fsdata.c on the card for the web server. You want the binary data.
2022-05-22 10:50 AM
I write code for a living...
Suggest you start by porting one of the CubeF7 FATFS+SDMMC examples to your board. Once that works find an appropriate point in the LwIP server code to integrate reading from the the media via the FSDATA structures.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.