Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Cannot compile BSEC (1.4.7.3) + NodeMCU + Arduino 1.8.9

    Highlighted
    Established Member

    Cannot compile BSEC (1.4.7.3) + NodeMCU + Arduino 1.8.9

    I have code which works on an STM32**.   The code is the "basic.ino" example from the BSEC github download (dated 5-19-2019) + Tiny ASCII only library for an OLED display.

    ** by works I mean the Serial monitor printed out the full compliment of measurements and calculations (IAQ etc) from the BME680 and the OLED display functioned properly.

    It compiled to 69K for the STM32.

    I 've modified the platform.txt for the ESP8266 pretty much the same way the STM32 platform.txt was modified.

    Now I'm using a NodeMCU V1 -12E and when I try to compile I continually receive an error:   "section `.text1' will not fit in region `iram1_0_seg'"

    I'm guessing there are some memory boundries on the NodeMCU but except for knowing the term "Memory boundry" I'm lost.

    It seems others have this software on the ESP platform so I'm assuming its something I did or didnot do.   Any suggestions would be appreciated.

    John

     

     

     

    More compile messages:

    Linking everything together...
    "C:\\Users\\john\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-gcc" -CC -E -P -DVTABLES_IN_FLASH "C:\\Users\\john\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/ld/eagle.app.v6.common.ld.h" -o "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277/local.eagle.app.v6.common.ld"
    "C:\\Users\\john\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-gcc" -fno-exceptions -Wl,-Map "-Wl,C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277/BSEC_OLED_01.ino.map" -g -Wall -Wextra -Os -nostdlib -Wl,--no-check-sections -u app_entry -u _printf_float -u _scanf_float -Wl,-static "-LC:\\Users\\john\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/lib" "-LC:\\Users\\john\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/lib/NONOSDK221" "-LC:\\Users\\john\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/ld" "-LC:\\Users\\john\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/libc/xtensa-lx106-elf/lib" -Teagle.flash.4m.ld -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -o "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277/BSEC_OLED_01.ino.elf" -Wl,--start-group "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277\\sketch\\BSEC_OLED_01.ino.cpp.o" "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277\\libraries\\BSEC\\bme680\\bme680.c.o" "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277\\libraries\\BSEC\\bsec.cpp.o" "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277\\libraries\\SSD1306Ascii\\SSD1306Ascii.cpp.o" "C:\\Users\\john\\AppData\\Local\\Temp\\arduino_cache_443982\\core\\core_90112c4c14131254599985420ac2c45f.a" -lhal -lphy -lpp -lnet80211 -llwip2-536-feat -lwpa -lcrypto -lmain -lwps -lbearssl -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc "-LC:\\Users\\john\\Documents\\Arduino\\libraries\\BSEC\\src\\esp8266" -lalgobsec -Wl,--end-group "-LC:\\Users\\john\\AppData\\Local\\Temp\\arduino_build_639277"
    c:/users/john/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\john\AppData\Local\Temp\arduino_build_639277/BSEC_OLED_01.ino.elf section `.text1' will not fit in region `iram1_0_seg'

    collect2.exe: error: ld returned 1 exit status

     

     

     

     

    {compiler.libraries.ldflags}

    Tags (2)
    2 REPLIES 2
    Community Moderator

    Re: Cannot compile BSEC (1.4.7.3) + NodeMCU + Arduino 1.8.9

    To solve this, you would need to modify the linker script and specifically define where the library should be placed in memory.

    Some instructions to guide you with these steps can be found here.

    Established Member

    Re: Cannot compile BSEC (1.4.7.3) + NodeMCU + Arduino 1.8.9

    Thank you...... read the instructions, how interesting 🙂

    Seriously, thanks, I'm working with the STM32 at the moment and won't get back to the ESP for some time.  However I expect your link will solve my  problem.

    John

     

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist