• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Unable to use SPIFF to store parameters

Q&A Forum › Category: ESP8266 › Unable to use SPIFF to store parameters
0 Vote Up Vote Down
Anthony asked 6 years ago

I followed the tutorial “WiFi manager with ESP8266 example #2 to save parameters in the flash memory of an Adafruit Huzzah board.  The serial monitor always logs this error message “ failed to open config file for writing”.  I tried to do the  SPIFF.format() first just in case the fs is not formstted and got the same error.  I also tried setting the Flash size to 4M (1M SPIFFs) under tools in the Arduino IDE and the compile would fail.  What am I doing wrong?  I would like to use that to save an encrption key in the program I am developing.

Question Tags: ESP8266
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Anthony.
Can you check if your board has a PUYA flash chip on it?
It seems that there is a problem with those chips and trying to write to SPIFFS. Any sketch you try will fail to write to SPIFFS if you have a new module with the PUYA flash chip on it.
https://github.com/esp8266/Arduino/issues/4061
https://github.com/esp8266/Arduino/issues/4102
Unfortunately,  I haven’t found an answer for that issue.

However, SPIFFS works if you use the “Sketch Data Upload ” option with Arduino IDE, which I think it’s not ideal for what you want to do.

Regards,
Sara

0 Vote Up Vote Down
Anthony answered 6 years ago

Thank you.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.