BSEC Arduino Library - Cant upload to ESP8266 because .text1' will not fit in region `iram1_0_seg'

Hy,

I would like to try the Bosch BME866 eval board using an Adafruit Feather HUZZAH ESP8266.
I followed the guide at BSEC-Arduino-library/README.md at master · boschsensortec/BSEC-Arduino-library · GitHub

  1. Installed the latest Arduino (also tried the latest 1.x.x Arduino)
  2. Installed Bosch-BME68x-Library-1.1.40407.zip and Bosch-BSEC2-Library-1.4.2200.zip
  3. Put "https://github.com/esp8266/Arduino/releases/download/3.1.1/package_esp8266com_index.json" in Additional Boards Manager URLs
  4. Selected the right board
  5. Checked the platform.txt file (i didn't had to modify)
  6. Opened the examples/generic_examples/basic/basic.ino

This basic.ino contains the following comment: "has been designed to work with Adafruit ESP8266 Board"
When I verified this, I got the following error:

Library Bosch-BSEC2-Library-1.4.2200 has been declared precompiled:
Using precompiled library in /home/mate/Arduino/libraries/Bosch-BSEC2-Library-1.4.2200/src/esp8266
/home/mate/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: basic.ino.elf section .text1' will not fit in region iram1_0_seg'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Adafruit Feather HUZZAH ESP8266.

I didn't modified the example code, do you have any idea why I can't upload this example code to the ESP?

Thank you

Ps: I tried it under Windows, got the same error.

1 Like

In the Tools menu, change the MMU: entry so you get more memory available for your text segment. On my "LOLIN(WEMOS) D1 R2 & mini" board I changed it to "16KB cache + 48KB IRAM (IRAM)" and that got it to compile and upload correctly for me.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.