Skip to main content
KAnahar
Associate III
May 10, 2022
Question

I am using STM32F7 series. I created httpd server ethernet project. I have web code which html,css,js. But my microcontrollers memory not enough for these codes. I need to use SD Card.

  • May 10, 2022
  • 5 replies
  • 1472 views

I need to put it my web codes (html, css, js) to SD Card. Also These codes need to work on SD Card. Because my web codes memory size is around 300MB. Normally I worked my code (basic html files) without SD Card. It needs converting to fsdata.c files. I have 'makeFSdata.exe' file. When I change to HTML codes, I click and work .exe file. Then build my project.

How is it possible with SD Card? All web site folders need to work on SD Card.

This topic has been closed for replies.

5 replies

Markus GIRDLAND
ST Employee
May 11, 2022

Hello there,

Are you using on an STM32 provided board or your own custom PCB? Did you check for example projects for when servers and interfacing with uSD cards?

Some inspiration:

C:\Users\USER\STM32Cube\Repository\STM32Cube_FW_F7_V1.16.0\Projects\STM32746G-Discovery\Applications\FatFs\FatFs_uSD

KAnahar
KAnaharAuthor
Associate III
May 12, 2022

It didn't help to me

KAnahar
KAnaharAuthor
Associate III
May 12, 2022

also this is my designed board

Tesla DeLorean
Guru
May 12, 2022

Should be possible to integrate SDMMC and FATFS support, and get the serving routines to pull the data from files directly rather than the fsdata methods.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Pavel A.
May 12, 2022

Also note that all decent browsers understand compression. Large static files can be stored in compressed form and sent out as is.