Comments (11)
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:
- Remove all the includes / linking I had been trying as a workaround from
build_flags
platformio platform uninstall espressif8266
platformio platform install https://github.com/platformio/platform-espressif8266.git#feature/stage
- Set
platform = espressif8266_stage
inplatformio.ini
Thank you!
from platform-espressif8266.
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.
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.
See comment https://community.platformio.org/t/platformio-3-0-broke-all-my-esp8266-projects/747/7?u=ivankravets
from platform-espressif8266.
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.
@sticilface both version should work. I've just checked it. Could you try again?
from platform-espressif8266.
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.
@vlast3k you should specify new platform in project configurattion file, platformio.ini
platformio = espressif8266_stage
from platform-espressif8266.
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.iniplatformio = 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.
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.
from platform-espressif8266.
Related Issues (20)
- Update Arduino Core to 3.1.1
- Clang as the compiler? HOT 2
- Erasing flash memory on every upload platformIO HOT 3
- Upload Filesystem Image OTA fails for ESP8266 d1_mini board
- Board Lifely Agrumino Lemon unknow HOT 1
- Issue with multiple targets
- Bearssl The cipher AES128-SHA is not supported for TLSv1.2
- Arduino + ESP8266-RTOS-SDK HOT 1
- error: can't read source directory *** [.pio\build\esp32cam\spiffs.bin] Error 1 // I Need it Quick HOT 1
- **Feature Request** Please add Board AZ-Delivery D1 Mini ESP8266MOD 12-F HOT 1
- Screen gets stuck at the 'Please Wait' window HOT 1
- request board esp8266_deauther HOT 1
- unable to build project error: unknown opcode or format name 'typedef' HOT 1
- Neovim + platformio Unknown argument -mtext-section-literals
- PIO builder on espressif8266 platform (xtensa gcc) fails if CPLUS_INCLUDE_PATH env variable is set
- arduino: clangtidy breaks if --extra-arg=-std=c++17 is passed
- Debugging with GDBStub hangs
- Program size check does not respect `board_upload.maximum_size` from `platformio.ini`
- Monitor_filter not working
- Including SoftwareSerial.h fails to compile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform-espressif8266.