Skip to content
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

SPIFFS crashes Fatal exception 0(IllegalInstructionCause) if SPIFFS not assigned #5246

Closed
1 task done
AcuarioCat opened this issue Oct 14, 2018 · 4 comments · Fixed by #5249
Closed
1 task done

SPIFFS crashes Fatal exception 0(IllegalInstructionCause) if SPIFFS not assigned #5246

AcuarioCat opened this issue Oct 14, 2018 · 4 comments · Fixed by #5249
Assignees
Milestone

Comments

@AcuarioCat
Copy link

Basic Infos

  • [x ] This issue complies with the issue POLICY doc.
  • [x ] I have read the documentation at readthedocs and the issue is not addressed there.
  • [x ] I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • [x ] If there is a stack dump, I have decoded it.
  • [x ] I have filled out all fields below.

Platform

  • Hardware: WemosD1 and NodeMCU V1.0
  • Core Version: 12/10/2018 00:34
  • Development Env: Visual Micro
  • Operating System: Windows

Problem Description

More of a 'gotcha' than a problem so it turns out.
On previous builds if a SPIFFS region wasn't assigned calling SPIFFS.begin() worked silently (ok, I guess there would have been problems later on).
On the current git calling begin() causes:
Fatal exception 0(IllegalInstructionCause):
epc1=0x4000e25d, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

As I said, more of a gotcha than a bug but it would be kinder if there was some sort of compiler warning.

@scropion86
Copy link

without s sketch mostly you cant get more help , try to completely erase your ESP Flash and re-upload your sketch if you still have an issue post your code here to look at it

@AcuarioCat
Copy link
Author

AcuarioCat commented Oct 14, 2018

Here it is:

#include <ESP8266WiFi.h>
#include <FS.h>

void setup()
{
	Serial.begin(115200);
	delay(1000);
	
	Serial.println("Start SPIFFS");
	SPIFFS.begin();
}

void loop()
{
}

Set your build up to 4MB (no SPIFFS), build with the lates git and run it - continual crashes.
Do the same with 2.4.2 (or any previous build), no crash.

If you set the build to (for example) 4MB (1MB SPIFFS), no problem.

As I said, it's a gotcha but it would be good to have some sort of warning if this is possible.

@d-a-v
Copy link
Collaborator

d-a-v commented Oct 14, 2018

@scropion86 @AcuarioCat thanks for MCVE. bug reproduced.

d-a-v added a commit to d-a-v/Arduino that referenced this issue Oct 14, 2018
@d-a-v
Copy link
Collaborator

d-a-v commented Oct 14, 2018

fix on its way #5249

@d-a-v d-a-v added this to the 2.5.0 milestone Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants