Skip to main content
Visitor II
November 4, 2020
Question

Can a STM Mcu replace an ESP8266 for a file system and a webserver?

  • November 4, 2020
  • 4 replies
  • 1161 views

Hi guys!

I just have a question if STMs MCU's are capable of doing somethings that I need.

Currently I have a project that integrates an ESP8266 for the SPIFF (File System) and a Wi-Fi module for a Webserver. I really dont want to keep using the ESP8266 and move onto a mcu that I am more familiar with.

I did some research but couldn't find concrete evidence that the STM can replace the ESP8266.

So I am asking here if the STM MCU is capable of:

  1. Can a STM MCU provide a filesystem within its flash memory? If not what do I need to do to get a File System within a STM MCU
  2. Can a STM MCU provide a webserver? I read something about LWip but didn't say practically it supports webservers. Would I need a STM that has a built in Ethernet controller? etc

Any tips are helpful thanks

TLDR; I need to replace an ESP8266 for a STM mcu but needs a file system and Webserver/Http Server

    This topic has been closed for replies.

    4 replies

    Super User
    November 5, 2020

    Most STM32 chips are much more capable than an ESP8266, however you might have trouble finding already-built projects and it may take a while to come up to speed. It technically can do the things you ask, but file systems in flash are not ideal (unless they're read only) and the LwIP support is not awesome.

    If you have an ESP8266 up and running, I would stick with that unless you really need the extra processing power and are willing to pay for it in time and effort.

    CLeo.1Author
    Visitor II
    November 5, 2020

    I see, I have a couple of questions for you. Whats the way to do file systems on a STM32 chip then? Let say I have HTML,CSS, JS to store. What do you mean LWip isnt the best? is there a better alternative for what I need?

    Graduate II
    November 6, 2020

    STM32 MCU can do many things, but, what your device will be capable of, very much depends on how good and advanced firmware you can write.

    One doesn't need an actual file system to serve few "files" with some server. Especially if the files are static. lwIP has a solution and example for that.

    CLeo.1Author
    Visitor II
    November 7, 2020

    Would you guide me to the link, I couldnt never find LWip examples