Giter VIP home page Giter VIP logo

Comments (5)

me-no-dev avatar me-no-dev commented on July 30, 2024

the ESP maps only 1MB of the flash and that is the reason such setting does not exist :) Only 1MB can be used for sketch

from arduino-esp8266fs-plugin.

igrr avatar igrr commented on July 30, 2024

It's possible to do that, but you won't be able to run code which is above 1M mark. So this may be useful for OTA updates if the size of your firmware exceeds 512k, but I haven't seen any project which approaches this size yet.
If you do that, then yes, you need to create a linker script variant and add an entry to boards.txt.

from arduino-esp8266fs-plugin.

bebo-dot-dev avatar bebo-dot-dev commented on July 30, 2024

Running out of free space for OTA update was one of the things I was thinking about..but it's a concern that's probably some way off because my .bin is currently 312,168 bytes when built.

Learning about how to create a new linker script variant .ld sounds interesting though. Do you know if there's any info about how to do this anywhere?

from arduino-esp8266fs-plugin.

 avatar commented on July 30, 2024

how about this? http://wiki.jackslab.org/images/Esp8266-flash-layout-ota-4096.png Is this configuration possible with Arduino IDE?

from arduino-esp8266fs-plugin.

Pablo2048 avatar Pablo2048 commented on July 30, 2024

Hi, please see the attached linker script for 2M/4M variant. Also there is need to change boards.txt (now probably by some python script) with this:
generic.menu.FlashSize.4M2M=4M (2M SPIFFS)
generic.menu.FlashSize.4M2M.build.flash_size=4M
generic.menu.FlashSize.4M2M.build.flash_ld=eagle.flash.4m2m.ld
generic.menu.FlashSize.4M2M.build.spiffs_start=0x200000
generic.menu.FlashSize.4M2M.build.spiffs_end=0x3FB000
generic.menu.FlashSize.4M2M.build.spiffs_blocksize=8192
generic.menu.FlashSize.4M2M.build.spiffs_pagesize=256
generic.menu.FlashSize.4M2M.upload.maximum_size=1044464

eagle.flash.4m2m.zip

from arduino-esp8266fs-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.