Giter Club home page Giter Club logo

Comments (10)

tjuerges avatar tjuerges commented on June 12, 2024 1

I can verify that the behaviour that @ricki-z has seen is genuine and not a one-off problem.

It is not unique to this project and has already been brought up in the espressif8266 firmware issues here section '.text' will not fit in region 'iram1_0_seg'. The issue was closed because a workaround was found although it has not been understood what the real root of the problem is.

(Edit) I should mention that it happened for me every time I compiled this project on a first time installation of platform-io on an up-to-date Debian 64-bit Linux until I installed the workaround mentioned in the issue above. Since then the project compiles just fine (but for numerous warnings) and even runs.

from sensors-software.

ricki-z avatar ricki-z commented on June 12, 2024

We can't save too many language versions in the firmware. The FlashROM and RAM ist very limited. We don't have any idea by now how to solve this.

from sensors-software.

darcoto avatar darcoto commented on June 12, 2024

I made some tests to find more effective way to solve. I try some different approach (with ROM and RAM storage) and my conclusion is that it is not very effective to store more then one language in FlashROM without unnecessarily space lost.
In real usage people never use more than one language in there devices.
So I can offer solution that will build N-firmware files (where N=number of translated languages) each one contains core functions + one language.
Every language will be one extra .h file and compiler will make N-.bin files with suffix like xxx_de.bin, xxx_en.bin
Auto update must send request with parameter for current language and download relevant file.

I can make changes and suggest pull request, but first of all I would like to know your opinion - whether this approach acceptable for you ?

Best regards

from sensors-software.

ricki-z avatar ricki-z commented on June 12, 2024

Can you give me the command line to compile the firmware with platform.io?

from sensors-software.

hakan42 avatar hakan42 commented on June 12, 2024

pio run

Or, if you want to upload the generated binary to an esp

pio run -t upload

from sensors-software.

hakan42 avatar hakan42 commented on June 12, 2024

This reminds me that I wanted to write documentation for using platform.io

from sensors-software.

ricki-z avatar ricki-z commented on June 12, 2024

I'm getting errors on pio run: .platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/nodemcuv2_bg/firmware.elf section .text' will not fit in region iram1_0_seg'
There seems to be a problem with the actual version.

from sensors-software.

darcoto avatar darcoto commented on June 12, 2024

Hmm,
That's strange.
Can you give me some information about build environment ?
Currently I can not reproduce it.
I successfully build 3 firmwares on Mac OS and on Ubuntu with latest version of platformio. Ububtu installation is fresh and clear.

You can compile single firmware with command
pio run -e nodemcuv2_de
pio run -e nodemcuv2_en
pio run -e nodemcuv2_bg

Try to find is the problem persist in all three version or only in bulgarian.
There are almost equal except that in intl_bg.h have a little bit lager svg logo (I will make it smaller).
You can try to replace it with original for the test.

from sensors-software.

ricki-z avatar ricki-z commented on June 12, 2024

It was a fresh install on MacOS 10.11.6 as written on platform.io. The problem persists in all three versions.
My steps:
installed platform.io
deinstall python-dateutil, install python-dateutil==2.2
run 'platformio run'

from sensors-software.

ricki-z avatar ricki-z commented on June 12, 2024

This solved the problem (for McOS, important: don't 'sudo'):
platformio platform uninstall espressif8266
platformio platform install https://github.com/platformio/platform-espressif8266.git#feature/stage
Set platform = espressif8266_stage in platformio.ini

from sensors-software.

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.