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

Eclipse data folder to spiffs upload. #1063

Closed
miky2k opened this issue Nov 20, 2015 · 4 comments
Closed

Eclipse data folder to spiffs upload. #1063

miky2k opened this issue Nov 20, 2015 · 4 comments

Comments

@miky2k
Copy link

miky2k commented Nov 20, 2015

Under eclipse compiled with (512k/64k) option there is no way to build and flash data directory.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@igrr
Copy link
Member

igrr commented Nov 20, 2015

Do you mean you want SPIFFS upload function implemented in Eclipse?
Eclipse isn't officially supported, but I think @Links2004 is using it for development. Perhaps he can give some advice.

@Links2004
Copy link
Collaborator

you can create your own make targets for example mkspiffs.

  1. create a file makefile.init in the project root
vecho := @echo
Q := @

ARDUINO_BASE      = D:/Coding/avr/Programme/arduino-nightly
ESP8266_BASE      = $(ARDUINO_BASE)/hardware/esp8266com/esp8266
ESP8266_TOOLS     = $(ESP8266_BASE)/tools

mkspiffs:
    $(vecho) Staring mkspiffs...
    $(ESP8266_TOOLS)/mkspiffs/mkspiffs.exe -c "../data" mkspiffs.bin

image

image

@igrr can you check the mkspiff command, i never used it before ;) is the block, size and page needed?

@far5893 may your ESP8266_BASE path is in your user arduino dir (when you have installed via json)

@igrr
Copy link
Member

igrr commented Nov 20, 2015

You also need to pass block size, page size, and image size to mkspiffs.
These are defined for each flash size variant in boards.txt, i.e. for 512k(64k SPIFFS):

generic.menu.FlashSize.512K64.build.spiffs_start=0x6B000
generic.menu.FlashSize.512K64.build.spiffs_end=0x7B000
generic.menu.FlashSize.512K64.build.spiffs_blocksize=4096

These values must be given to mkspiffs, otherwise created image will not be compatible with SPIFFS configuration in firmware.

mkspiffs command line arguments are described here: https://github.com/igrr/mkspiffs#usage

Edit: size should be equal to spiffs_end - spiffs_start.
Page size defaults to 256, so it is not given for many of the board variants (this should probably be fixed).

@devyte
Copy link
Collaborator

devyte commented Oct 19, 2017

Closing per #3655 .

@devyte devyte closed this as completed Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants