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

deepSleep with espressif #179

Closed
TimJay opened this issue Apr 19, 2015 · 19 comments
Closed

deepSleep with espressif #179

TimJay opened this issue Apr 19, 2015 · 19 comments
Assignees
Milestone

Comments

@TimJay
Copy link
Contributor

TimJay commented Apr 19, 2015

esp8266/Arduino added support for deepSleep(), please update the platform.

@ivankravets
Copy link
Member

@TimJay this feature with deepSleep() has not been released official yet. It's located in develop branch. We can't update arduino-espressif framework to non-stable branch for the all our users.

@valeros please prepare new arduino-espressif package and explain @TimJay how he can replace manually within ~/.platformio/packages folder.

@TimJay
Copy link
Contributor Author

TimJay commented Apr 21, 2015

Ah, ok. Missed that. Thanks for looking into the package anyhow @valeros 👍
I tried replacing the content of the extracted local packages with the new version from esp8266/Arduino, but ran into compiling issues.

@ivankravets
Copy link
Member

but ran into compiling issues

@valeros knows about it. He will explain you how to use this develop snapshot.

@TimJay
Copy link
Contributor Author

TimJay commented Apr 21, 2015

Nice! Great work btw, thanks.

@valeros
Copy link
Member

valeros commented Apr 21, 2015

Hello @TimJay. You can download the new arduino framework for ESP from this link:
https://drive.google.com/file/d/0B3M423-5AXSDblF6aDZfZUxYWEU
Now, you can delete the folder with old version of arduino-espressif in ~/.platformio/packages and unzip there new version.
Please tell me about the results.

@TimJay
Copy link
Contributor Author

TimJay commented Apr 21, 2015

Hei @valeros
after the replacement, I get a bunch of linker errors:

xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/firmware.elf -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -T /home/___/.platformio/packages/ldscripts/esp8266.ld .pioenvs/autogen_esp01/src/main.o -L/home/___/.platformio/packages/framework-arduinoespressif/sdk/lib -L.pioenvs/autogen_esp01 -Wl,--start-group .pioenvs/autogen_esp01/libFrameworkArduino.a .pioenvs/autogen_esp01/libFrameworkArduinoVariant.a -lgcc -lc -lpp -lmain -lwpa -llwip -lnet80211 -lphy -lhal -Wl,--end-group
.pioenvs/autogen_esp01/libFrameworkArduino.a(libc_replacements.o): In function `strtod':
libc_replacements.c:(.irom0.text+0x344): undefined reference to `sinh'
libc_replacements.c:(.irom0.text+0x34e): undefined reference to `sinh'
libc_replacements.c:(.irom0.text+0x35c): undefined reference to `hypot'
libc_replacements.c:(.irom0.text+0x366): undefined reference to `hypot'
libc_replacements.c:(.irom0.text+0x374): undefined reference to `hypotf'
.pioenvs/autogen_esp01/libFrameworkArduino.a(libc_replacements.o): In function `__errno':
libc_replacements.c:(.irom0.text+0x37e): undefined reference to `hypotf'
libc_replacements.c:(.irom0.text+0x38c): undefined reference to `logf'
libc_replacements.c:(.irom0.text+0x396): undefined reference to `logf'

Let me know if you need to full log...

@valeros
Copy link
Member

valeros commented Apr 21, 2015

Sorry, it's my mistake.
Try this platformio.ini

[env:esp01_8266]
platform = espressif
framework = arduino
board = esp01
build_flags = -lm

@TimJay
Copy link
Contributor Author

TimJay commented Apr 21, 2015

xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/firmware.elf -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -T /home/___/.platformio/packages/ldscripts/esp8266.ld .pioenvs/autogen_esp01/src/main.o -L/home/___/.platformio/packages/framework-arduinoespressif/sdk/lib -L.pioenvs/autogen_esp01 -Wl,--start-group .pioenvs/autogen_esp01/libFrameworkArduino.a .pioenvs/autogen_esp01/libFrameworkArduinoVariant.a -lm -lgcc -lc -lpp -lmain -lwpa -llwip -lnet80211 -lphy -lhal -Wl,--end-group
/home/___/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/autogen_esp01/firmware.elf section `.text' will not fit in region `iram1_0_seg'

@valeros
Copy link
Member

valeros commented Apr 21, 2015

Strange, can you show me your main file source code?
You can upload it here https://gist.github.com/

@TimJay
Copy link
Contributor Author

TimJay commented Apr 21, 2015

Just a very basic deepSleep test:

#include "main.h"

void setup() {
    pinMode(BUILTIN_LED, OUTPUT);
    int i;
    for (i = 0; i < 10; i++) {
        digitalWrite(BUILTIN_LED, HIGH);
        delay(50);
        digitalWrite(BUILTIN_LED, LOW);
        delay(50);
    }
    ESP.deepSleep(5000000, WAKE_RF_DISABLED);
}

void loop() {
}

@TimJay
Copy link
Contributor Author

TimJay commented Apr 21, 2015

main.h

#ifndef _main_h_
#define _main_h_
#include "Arduino.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
void loop();
void setup();
#ifdef __cplusplus
} // extern "C"
#endif /* __cplusplus */

#endif /* _main_h_ */

@valeros
Copy link
Member

valeros commented Apr 21, 2015

Strange, I compiled your code without errors.
Could you show me full log, please?

@TimJay
Copy link
Contributor Author

TimJay commented Apr 21, 2015

platformio run 
[Tue Apr 21 21:17:10 2015] Processing autogen_esp01 (platform: espressif, build_flags: -lm, board: esp01, framework: arduino)
--------------------------------------------------------------------------------
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/src/main.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -DPLATFORMIO=010400 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/src/main.cpp
xtensa-lx106-elf-gcc -o .pioenvs/autogen_esp01/FrameworkArduino/cont_util.o -c -std=c99 -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/cont_util.c
xtensa-lx106-elf-gcc -o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_noniso.o -c -std=c99 -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_noniso.c
xtensa-lx106-elf-gcc -o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring.o -c -std=c99 -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring.c
xtensa-lx106-elf-gcc -o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_analog.o -c -std=c99 -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_analog.c
xtensa-lx106-elf-gcc -o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_digital.o -c -std=c99 -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_digital.c
xtensa-lx106-elf-gcc -o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_pulse.o -c -std=c99 -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_pulse.c
xtensa-lx106-elf-gcc -o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_shift.o -c -std=c99 -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_shift.c
xtensa-lx106-elf-gcc -o .pioenvs/autogen_esp01/FrameworkArduino/libc_replacements.o -c -std=c99 -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/libc_replacements.c
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/Esp.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/Esp.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/HardwareSerial.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/HardwareSerial.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/IPAddress.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/IPAddress.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/Print.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/Print.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/Stream.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/Stream.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/Tone.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/Tone.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/WMath.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/WMath.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/WString.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/WString.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/abi.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/abi.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_main.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_main.cpp.cpp
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/FrameworkArduino/i2c.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant .pioenvs/autogen_esp01/FrameworkArduino/i2c.cpp.cpp
xtensa-lx106-elf-gcc -x assembler-with-cpp -Os -mlongcalls -mtext-section-literals -MMD -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO=10601 -I/home/___/.platformio/packages/framework-arduinoespressif/sdk/include -I.pioenvs/autogen_esp01/FrameworkArduino -I.pioenvs/autogen_esp01/FrameworkArduinoVariant -c -o .pioenvs/autogen_esp01/FrameworkArduino/cont.o .pioenvs/autogen_esp01/FrameworkArduino/cont.S
xtensa-lx106-elf-ar rcs .pioenvs/autogen_esp01/libFrameworkArduino.a .pioenvs/autogen_esp01/FrameworkArduino/cont_util.o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_noniso.o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring.o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_analog.o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_digital.o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_pulse.o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_wiring_shift.o .pioenvs/autogen_esp01/FrameworkArduino/libc_replacements.o .pioenvs/autogen_esp01/FrameworkArduino/Esp.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/HardwareSerial.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/IPAddress.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/Print.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/Stream.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/Tone.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/WMath.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/WString.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/abi.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/core_esp8266_main.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/i2c.cpp.o .pioenvs/autogen_esp01/FrameworkArduino/cont.o
xtensa-lx106-elf-ranlib .pioenvs/autogen_esp01/libFrameworkArduino.a
xtensa-lx106-elf-ar rcs .pioenvs/autogen_esp01/libFrameworkArduinoVariant.a
xtensa-lx106-elf-ranlib .pioenvs/autogen_esp01/libFrameworkArduinoVariant.a
xtensa-lx106-elf-g++ -o .pioenvs/autogen_esp01/firmware.elf -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -T /home/___/.platformio/packages/ldscripts/esp8266.ld .pioenvs/autogen_esp01/src/main.o -L/home/___/.platformio/packages/framework-arduinoespressif/sdk/lib -L.pioenvs/autogen_esp01 -Wl,--start-group .pioenvs/autogen_esp01/libFrameworkArduino.a .pioenvs/autogen_esp01/libFrameworkArduinoVariant.a -lm -lgcc -lc -lpp -lmain -lwpa -llwip -lnet80211 -lphy -lhal -Wl,--end-group
/home/___/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/autogen_esp01/firmware.elf section `.text' will not fit in region `iram1_0_seg'
collect2: error: ld returned 1 exit status
scons: *** [.pioenvs/autogen_esp01/firmware.elf] Error 1
========================= [ ERROR ] Took 2.93 seconds =========================

@valeros
Copy link
Member

valeros commented Apr 21, 2015

OK, I have reproduced this error on Ubuntu x64.
I will try to fix it tomorrow.

@TimJay
Copy link
Contributor Author

TimJay commented Apr 21, 2015

Great, thanks!

@valeros
Copy link
Member

valeros commented Apr 22, 2015

To avoid breaking the stable release I have created individual branch for your case. Here are two required steps to use it:

  1. Delete your previous version of PlatformIO:
    pip uninstall platformio
  2. Install new fixed version:
    pip install https://github.com/valeros/platformio/archive/feature/esp_newframework.zip

@TimJay
Copy link
Contributor Author

TimJay commented Apr 22, 2015

Works nicely with the updated ~/.platformio/packages/arduino-espressif installed and the default platformio.ini.
DeepSleep hacked ESP-01 module now sleeps at 33microAmps 👍

@valeros
Copy link
Member

valeros commented Apr 22, 2015

Glad to hear it!
We will try to add full support for new framework as soon as possible.

@ivankravets ivankravets added this to the 1.5.0 milestone Apr 27, 2015
@ivankravets ivankravets modified the milestones: 2.0.1, 1.5.0 May 14, 2015
@ivankravets ivankravets modified the milestones: 2.0.0, 2.0.1 May 22, 2015
@ivankravets
Copy link
Member

Resolved in PlatformIO 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants