Bosch Sensortec Community

    SOLVED

    BSEC library installation instructions for ESP8266

    Highlighted
    Occasional Visitor

    BSEC library installation instructions for ESP8266

    Quoting ESP8266 section in the README of the BSEC library:

    > You will need to modify the file eagle.app.v6.common.ld.h typically found in {YourESP8266PPackageDirectory}\tools\sdk\ld. With reference to the linker script here, After line 177 *libwps.a:(.literal.* .text.*), add *libalgobsec.a:(.literal.* .text.*), which should look like,

        *libwpa.a:(.literal.* .text.*)
        *libwpa2.a:(.literal.* .text.*)
        *libwps.a:(.literal.* .text.*)
        *libalgobsec.a:(.literal.* .text.*)
        *(.irom0.literal .irom.literal .irom.text.literal .irom0.text .irom0.text.* .irom.text .irom.text.*)
    
        /* __FUNCTION__ locals */
        *(.rodata._ZZ*__FUNCTION__)
        *(.rodata._ZZ*__PRETTY_FUNCTION__)
        *(.rodata._ZZ*__func__)

     

    Referencing these lines at the top of the section:

    https://github.com/esp8266/Arduino/blob/c3c61a5f751fcc75440e571b5aa89254dce6e4f7/tools/sdk/ld/eagle....

    If libalgobsec.a file contents are renamed from .o to .c.o, there is no need to modify any framework files. [1] [2] Based on the comment of Core mainainer, this was done originally to keep Espressif SDK files in ram, as those also don't have any extension before the .o. This might be a subject of change in the Core though, but at least in the current state .ld file modification can be avoided.

    [1] https://gitter.im/esp8266/Arduino?at=5f020e983a0d3931fad43f1d

    [2] https://gitter.im/esp8266/Arduino?at=5f04432a3c217837fd815438

    Tags (1)
    1 REPLY 1
    Highlighted
    Community Moderator

    Re: BSEC library installation instructions for ESP8266

    Good sharing.  Thank you.  🙂

    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