Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME68x BSEC with ESP8266 crashes

    BME68x BSEC with ESP8266 crashes

    lehm
    New Poster

    HI,

    I want to get the Air Quality Index from the BSEC Arduino Library. installing besec2 from github and the bosch bme68x library lets me compile everything and the code runs. Put the callback is never called and thus I have no outputs in the serial monitor, init works fine without errors and also run is called often and reports no errors. 

    After some time, maybe 10 minutes (I havent stopped it exactly) the esp8266 crashed with a stacktrace and restarts. Using the stacktrac decoder only gives a "LoadStoreError" and no atacktrace indicating that this happened in the already linked lib from bsec2. If I never call the run function from bsec this issues is gone. Maybe its somekind of buffer overflow. What are the next steps to debug this problem ? (its a esp8266 feather so no debugging interface avilable sadly), but I can print everything.

    2 REPLIES 2

    BSTRobin
    Community Moderator
    Community Moderator

    Hi lehm,

    Thanks for your inquiry.

    The following are the memory requirements for the BSEC library under the ESP platform in file "BSEC2.4.0.0_Generic_Release_23012023\algo\normal_version\bin\esp\esp8266\libalgobsec.a.Size.log". You can check the memory allocation of your host platform. Try increasing the stack size before running BSEC.

    BSEC library size.png

    I already tried that and the crash from low memoery is different (it results in compile errors) downgrading to BSEC1 'solves' the issue and outputs data without issues but this is obviously not a solution but just a temporary fix.

    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