Skip to content

512k (no SPIFFS) breaks OTAs #966

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

Closed
sven337 opened this issue Nov 4, 2015 · 4 comments
Closed

512k (no SPIFFS) breaks OTAs #966

sven337 opened this issue Nov 4, 2015 · 4 comments

Comments

@sven337
Copy link

sven337 commented Nov 4, 2015

OTAs in Updater.cpp are broken with _SPIFFS_start = 0. The following seems to fix them:

-PROVIDE ( _SPIFFS_start = 0 );
-PROVIDE ( _SPIFFS_end = 0 );
+PROVIDE ( _SPIFFS_start = 0x4027B000 );
+PROVIDE ( _SPIFFS_end = 0x4027B000 );

@igrr
Copy link
Member

igrr commented Nov 5, 2015

Thanks, well noted.
I didn't think OTAs were possible with 512k flash at all.

@sven337
Copy link
Author

sven337 commented Nov 5, 2015

They are possible - I got them working. But I don't think the program can be very big :)

(Is there a particular ESP module with a bigger flash that you would recommend?)

@reaper7
Copy link
Contributor

reaper7 commented Nov 5, 2015

yes, it's works with 512k module, for eg sketch ArduinoOTA->OTALeds (~277k)
with mod:
PROVIDE ( _SPIFFS_start = 0x4027B000 );
PROVIDE ( _SPIFFS_end = 0x4027B000 );
inside eagle.flash.512k0.ld

@igrr
Copy link
Member

igrr commented Nov 5, 2015

New ESP-01 modules come with bigger flash, because AT firmware doesn't fit into 512k any more.
These new modules can be distinguished by black PCB solder mask.

@igrr igrr closed this as completed Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants