Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    After running bme688 for sometime, the i2c device(bme688) is not found

    After running bme688 for sometime, the i2c device(bme688) is not found

    Deepak
    New Poster

    Hi,

    We have a custom hardware based on STM32MP1 and also the bme688 using i2c interface along with some other peripherals too.
    For our use case, we are using Yocto Linux.

    We use the BSEC2.4.0 library for TPHG measurements. We were able to compile the application successfully using the library, Thanks to your team ( https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/Linking-BSEC-2-4-0-for-Cortex-A7-Gives-V... ).
    A small briefing about the current situation:

    1. Using the bme68x_dev structure, added intf, write, read and delay_us.
    2. bme68x_init() and bsec_init() functions are sucessfull and are able to read the BSEC version.
    3. bsec_set_configuration() returned 0. We have used "bme688_sel_33v_3s_4d" configuration file Selectivity file.
    4. bsec_update_subscription() also returned 0. We have used the virtual outputs that does not use the scan mode. sample rate used is "BSEC_SAMPLE_RATE_LP". I have attached the samples
    5. In an infinite loop, executing "read_sensor_and_process_data()". It sets the forced mode and gets the data. bsec_do_steps() also returns 0. We are getting the outputs(attached the logs) in almost every iteration, depending on the next_call in the bsec_bme_settings, and also based on the IAQ accuracy.

    The issue that we face right now is that, after running for sometime, the i2c device(bme688) disappears. It shows device not found when tried to read or write something. We need to reboot the system to be able to run the application again.

    It is not found even in the i2cdetect command. All the other devices are present.
    There is no particular time when it disappears. It may be after a short duration, or a long duration(like 15 hours or more).

    We have no idea why this problem occurs. Please help.

    Also please refer to the attached files.

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hi Deepak,

    For your description "The issue that we face right now is that, after running for sometime, the i2c device(bme688) disappears. It shows device not found when tried to read or write something. We need to reboot the system to be able to run the application again.", you can capture I2C waveform to check how about the actual hardware communication.

    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