-
Notifications
You must be signed in to change notification settings - Fork 13.3k
SPIFFS.begin() crashes (stops) ESP without errors and only a line of garbage in serial monitor #3030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry to spam here. The solution was to upload with correct flash size settings in the IDE. To enable error messages and prevent this kind of issue here is one solution to the code above:
|
I have exactly the same issue even using this safety code. SPIFFS.format() works but SPIFFS.begin() crashes with nothing interesting in stacktrace. Similar to issue #2655 |
I recently (today) had the same issue with ESP07. And the result was: power supply. Issue disappeared after adding 1mF capacitor to the circuit ... |
Tive o mesmo problema. Estava utilizando o FlashSize "1M (no SPIFFS)", alterei para "1M (192 SPIFFS)" e funcionou. |
This makes sense. Can’t use SPIFFS without having one.
Isso faz sentido. Não é possível usar o SPIFFS sem ter um.
Sorry for my Google-Portuguese but I just wanted others to know what is this about.
… On 26 Apr 2019, at 00:05, diegogrosmann ***@***.***> wrote:
Tive o mesmo problema. Estava escolhendo o FlashSize "1M (no SPIFFS)", alterei para "1M (192 SPIFFS)" e funcionou.
|
O único cuidado que devemos ter é com o tamanho do SPIFFS. Se estiver usando OTA o tamanho total do bin (sketch + SPIFFS) tem que ser menor que 50% da FLASH. The only care we should take is with the size of SPIFFS. If using OTA, the total bin size (sketch + SPIFFS) must be less than 50% of FLASH. |
Actually, this issue is caused by the fact, that default board setting for certain (most) devices is No SPIFFS.
I’m dealing usually with 32mb/4MByte devices where the sketch takes less than 1MB which is OK for OTA when the SPIFFS is minimal (2MB/Mo = 16Mb plus 1MB sketch and 1MB sketch temp for ota switch.
On
M.
Odesláno z iPhonu
26. 4. 2019 v 16:17, dg321 <[email protected]>:
… O único cuidado que devemos ter é com o tamanho do SPIFFS. Se estiver usando OTA o tamanho total do bin (sketch + SPIFFS) tem que ser menor que 50% da FLASH.
The only care we should take is with the size of SPIFFS. If using OTA, the total bin size (sketch + SPIFFS) must be less than 50% of FLASH.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Basic Infos
Hardware
Hardware: ESP-07
Core version: I don't know
Description
All I get in the serial monitor is this:
When I should get (if ESP not damaged):
Or if damaged I should get an error message or equivalent that SPIFFS begin fails. If I remove "SPIFFS.begin();" The sketch runs normally.
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB
CPU Frequency: 80Mhz
Flash Mode: dio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck
Sketch
The text was updated successfully, but these errors were encountered: