Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME688: Chip ID and operation

    BME688: Chip ID and operation

    huytyskland
    Member

    Hello everyone,

    Currently, I am working with the sensor BME 688 with the board Nucleo-WL55JC1. 

    I am reading and testing the code with the self-test (https://github.com/BoschSensortec/BME68x-Sensor-API/blob/master/examples/self_test/self_test.c) and the code did not work. I tracked the code and in the file bme68x.c line 156, the chip id was not equal to the constant BME68X_CHIP_ID which led to the error Device Not Found.

    I have 2 assumptions:

    • There was something happened with the chip or the code (I only changed the I2C read and write function - attached later). For this I am not sure where to check.
    • The  sensor BME688 did not work properly (did not turn on, hardware error,...). How can I check if this assumption is correct.

    I changed the code of I2C read and write based on the attached folder of this reference (In the comment) . Basically, I used the

    HAL_I2C_Master_Transmit and HAL_I2C_Master_Receive. I also commented out the SPI related functions.
     
    Does anyone have any idea how to clarify my 2 assumptions?
     
    Thank you, Huy Nguyen.

     

    11 REPLIES 11

    BSTRobin
    Community Moderator
    Community Moderator

    Hi huytyskland,

    If the sensor is working, the I2C waveform will receive an ACK signal.
    Did you design BME688 hardware yourself?

    Hello,

    I used this module: https://pi3g.com/products/bme688-breakout-board/ with the BME688 on it. I used the I2C pin on the module to connect it with the Nucleo board and I carefully checked the connection pin multiple times.

     

    BSTRobin
    Community Moderator
    Community Moderator

    Hi huytyskland,

    You could capture actual I2C waveform and check it.

    Hello BSTRobin,

    Thank you for your suggestion. I will do that.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi huytyskland,

    Did it work on your side?

    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