2

I'm confused about my esp8266-01 if they have SPIFFS or not. Is there a way to find it out? If they have, how to get their size?

I've got the following flash id: 0x1440e0.

Example SPIFFS apps keep crashing with wdt reset and lots of dumped hexes.

asked Mar 25, 2018 at 1:49
1
  • SPIFFS size is determined by you when you upload the sketch Commented Mar 25, 2018 at 7:20

1 Answer 1

2

First you need to know the size of the flash memory attached to esp8266 on your module. Common sizes are 512 kB (4Mbit), 1 MB (8Mbit) and 4 MB. Espressif Flash Download Tool (Windows) or esptool can determine it.

You can choose the size of the SPIFFS in your flash 'layout' by selecting the option in IDE Tools menu. Take one according to for you flash size and size of the files you want to put into SPIFFS.

If you have 1 MB flash on your module and you want to use OTA upload, let flash space for twice a space taken by the sketch.

answered Mar 25, 2018 at 5:19
12
  • All the data like WiFi config and binaries go to the flash memory? There is no other dedicated memory for those? Commented Mar 25, 2018 at 11:56
  • 1
    no. esp8266 uses the flash memory like a PC uses a hard-drive Commented Mar 25, 2018 at 12:01
  • Also, more importantly, I'm getting wdt reset errors with sometimes lots of hex dumps after uploading SPIFFS example apps. I've set the SPIFFS size to 512 (of 1M flash), but not sure if the Flash mode is correct. Any idea? Thanks Commented Mar 25, 2018 at 12:01
  • did you upload the SPIFFS image with the SPIFFS upload IDE plugin? Commented Mar 25, 2018 at 12:03
  • I've tried that as well as formatting the SPIFFS using the example code. Not sure what would be a working strategy. I've tried the following among others pastiebin.com/5ab790f66e9a1 Commented Mar 25, 2018 at 12:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.