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,

    As you haven't got correct Chip ID, you should check your I2C or SPI hardware communication.

    In your another topic https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/Nucleo-WL55JC1-BME688-basic-communicatio... we had provide example code on STM32 fore your reference.

    Hello,

    Thank you for your response.

    How about the way to check if the sensor still works or not?

    BSTRobin
    Community Moderator
    Community Moderator

    Hi huytyskland,

    You could capture I2C or SPI waveform and check the time sequence in data sheet.

    For example, I2C tme sequence.

    I2C multiple byte read.png

    So, If I understand you correctly, I will execute the requesting-receiving process (such as the example in the I2C read in the datasheet). 

    If I receive some signal displayed in waveform, then I know the sensor still works. Am I right?

    If that is the case, I assume this testing process is executed after the initialisation of the sensor. However, right now, the intialisation does not start as expected (my doubt is the software cannot read the chip ID leading to the error of "No Device Found" as I mentioned in the post). Thus, without initialisation, the testing process cannot be executed and I cannot know whether the sensor works or not.

    Could you kindly clarify my doubt or I am thinking incorrectly?

    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