Giter Club home page Giter Club logo

Comments (11)

n8henrie avatar n8henrie commented on May 29, 2024 1

Worked brilliantly, thanks!

I didn't bother installing the dev version of platformio -- though this was recommended so may be necessary in some cases. My steps:

  1. Remove all the includes / linking I had been trying as a workaround from build_flags
  2. platformio platform uninstall espressif8266
  3. platformio platform install https://github.com/platformio/platform-espressif8266.git#feature/stage
  4. Set platform = espressif8266_stage in platformio.ini

Thank you!

from platform-espressif8266.

n8henrie avatar n8henrie commented on May 29, 2024

I'm also seeing this bug with the git version.

Using the same sketch and the latest git version of https://github.com/esp8266/Arduino in both cases, Arduino IDE compiles and uploads the sketch without issue whereas with Platformio requires additional build_flags*, and subsequently complains:

.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/esp01/firmware.elf section `.text' will not fit in region `iram1_0_seg'

I have to use the git version due to fixes with the esp8266mdns since the latest release.

I think working on a fix is likely far above my capabilities, but I'm happy to help debug / give further information.

* -I$PIOHOME_DIR/packages/framework-arduinoespressif8266-git/tools/sdk/libc/xtensa-lx106-elf/include -L$PIOHOME_DIR/packages/framework-arduinoespressif8266-git/tools/sdk/libc/xtensa-lx106-elf/lib -lc

from platform-espressif8266.

ivankravets avatar ivankravets commented on May 29, 2024

We have just created special stage branch that allows working with latest Arduino Framework with "1 click". See http://docs.platformio.org/en/latest/platforms/espressif8266.html#using-arduino-framework-with-staging-version

from platform-espressif8266.

ivankravets avatar ivankravets commented on May 29, 2024

See comment https://community.platformio.org/t/platformio-3-0-broke-all-my-esp8266-projects/747/7?u=ivankravets

from platform-espressif8266.

sticilface avatar sticilface commented on May 29, 2024

I had to still manually install the feature/stage in step 3, which seems to overwrite the normal platformio directory

unless i did this it said espressif8266_stage not found.

I'm using the development version of platformio too... I guess what i would be aiming for is to have the two versions side by side.. and to switch just using that platform flag. so i could even build both at the same time.
:)

from platform-espressif8266.

ivankravets avatar ivankravets commented on May 29, 2024

@sticilface both version should work. I've just checked it. Could you try again?

from platform-espressif8266.

vlast3k avatar vlast3k commented on May 29, 2024

i am still somehow facing problems with this..i uninstalled all esp stuff and then installed just the stage

admins-mini-2:vThingCO2 admin$ platformio platform uninstall espressif8266
Uninstalling espressif8266 @ 1.2.0:     [OK]
Uninstalling framework-arduinoespressif8266 @ 1.20300.1:        [OK]
The platform 'espressif8266' has been successfully uninstalled!
admins-mini-2:vThingCO2 admin$ platformio platform uninstall espressif8266_stage
Uninstalling espressif8266_stage @ 1.3.0-alpha1:        [OK]
Uninstalling framework-arduinoespressif8266 @ 1.20400.0-dev:    [OK]
Uninstalling sdk-esp8266 @ 1.10502.0:   [OK]
Uninstalling tool-espotapy @ 1.0.0:     [OK]
Uninstalling tool-esptool @ 1.409.0:    [OK]
Uninstalling toolchain-xtensa @ 1.40802.0:      [OK]
The platform 'espressif8266_stage' has been successfully uninstalled!
admins-mini-2:vThingCO2 admin$ platformio platform install https://github.com/platformio/platform-espressif8266.git#feature/stage
PlatformManager: Installing platform-espressif8266
git version 1.9.3 (Apple Git-50)
Cloning into '/Users/admin/.platformio/platforms/installing-WPU0LS-package'...
remote: Counting objects: 92, done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 92 (delta 46), reused 51 (delta 21), pack-reused 0
Unpacking objects: 100% (92/92), done.
Checking connectivity... done.
espressif8266_stage @ 1.3.0-alpha1 has been successfully installed!
PackageManager: Installing toolchain-xtensa @ ~1.40802.0
Downloading...
Unpacking...
toolchain-xtensa @ 1.40802.0 has been successfully installed!
PackageManager: Installing tool-esptool @ ~1.409.0
Downloading...
Unpacking...
tool-esptool @ 1.409.0 has been successfully installed!
PackageManager: Installing tool-espotapy @ ~1.0.0
Downloading...
Unpacking...
tool-espotapy @ 1.0.0 has been successfully installed!
The platform 'https://github.com/platformio/platform-espressif8266.git#feature/stage' has b

and then after building

/Users/admin/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/node
mcu/firmware.elf section `.text' will not fit in region `iram1_0_seg'
collect2: error: ld returned 1 exit status
*** [.pioenvs/nodemcu/firmware.elf] Error 1

from platform-espressif8266.

ivankravets avatar ivankravets commented on May 29, 2024

@vlast3k you should specify new platform in project configurattion file, platformio.ini

platformio = espressif8266_stage

from platform-espressif8266.

vlast3k avatar vlast3k commented on May 29, 2024

ahhh it turned out that with the stage version.. apparently the new SDK the
code becomes larger
after stripping a lot of the code
with the stable version i get
text data bss dec hex filename
324332 5580 31144 361056 58260 .pioenvs\nodemcuv2\firmware.elf

and with stage
text data bss dec hex filename
353721 7576 31408 392705 5fe01 .pioenvs\nodemcuv2\firmware.elf

and before stripping the code - with stable it was
text data bss dec hex filename
391461 8548 31544 431553 695c1 .pioenvs\nodemcuv2\firmware.elf

i wasn't really expecting this and since it coincided with this topic that
was raised a month ago - i decided that this is the case - sorry for this

On Thu, Nov 10, 2016 at 11:24 PM, Ivan Kravets [email protected]
wrote:

@vlast3k https://github.com/vlast3k you should specify new platform in
project configurattion file, platformio.ini

platformio = espressif8266_stage


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAeDp0yLcyquk1eJBanDJVlhmras6RFpks5q84uRgaJpZM4J5uqT
.

from platform-espressif8266.

tjuerges avatar tjuerges commented on May 29, 2024

Same problem. Almost a tiny project. Pristine installation of platformio: same bug. Following advice from @n8henrie Success!

I really do not grok what the root of the issue is. Can somebody please explain to me why the 'stage' version can link binaries which fit into the board's memory when the 'default' version cannot? Thanks a lot!

from platform-espressif8266.

n8henrie avatar n8henrie commented on May 29, 2024

from platform-espressif8266.

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.