Bosch Sensortec Community

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

    bsec_do_steps() doesn't return anything.

    bsec_do_steps() doesn't return anything.

    nicatali007
    Member

    Hello,

    I want to build an application with a BME688 sensor, BSEC library, and Fudan FM33LG048 ARM Cortex M0 microcontroller. I am using BSEC_2.4.0.0_ExampleCode. Everything seems working except I cannot get anything in return from bsec_do_steps, it is stuck on that line and I cannot solve it.

    bsec_status = bsec_do_steps(bsec_inputs, num_bsec_inputs, bsec_outputs, &num_bsec_outputs);

    What could cause this issues?
    Best Regards
    Nijat Aliyev

     
    bme68x_bsec_update_subscription functionbme68x_bsec_update_subscription functionprocessData functionprocessData function
    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hi nicatali007,

    Did you correctly migrate example code from https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BME688-BSEC-library-for-Fudan-FM33LG048-... to your platform? You can record the print information for check.

    Hi BSTRobin,

    Something weird happened. The debug wasn't printing anything in keil debug printf viewer. While trying to solve that problem I was able to get bsec_ok from bsec_do_steps() function. However, I didn't understand how. Now, the code seems working but only when I put some breakpoints in some lines such as get_data() line. However, without these breakpoints it still gets stuck.

    Hi BSTRobin,

    When I have a delay of 2 seconds (2000 ms) before  bme68x_get_data(); function, I get nFields = 1 (and I get THP data, gas resistance data, and everything is working). However, I get nFields = 0 (meaning that no new data), when I comment the delay function or lower it to 1500 milliseconds and below. 

    What can be the reason for this? Do you know how I can solve it? (screenshots are attached below)
    Best Regards
    Nijat Aliyev


    BSTRobin
    Community Moderator
    Community Moderator

    Hi nicatali007,

    Here are two suggestions:
    1. Increase the stack size in your software project;
    2. Strictly refer to the example code on STM32 we provided previously.

    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