Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Nucleo-WL55JC1 + BME688: basic communication

    Nucleo-WL55JC1 + BME688: basic communication

    huytyskland
    Member

    Hello everyone,

     

    Currently, I am working with the board Nucleo-WL55JC1 to communicate with the sensor BME688. However, I cannot have any response from it.

     

    My goal is to receive the chip ID from the sensor.

    My steps (based on the datasheet of BME688):

    • I used I2C3 from the board to connect with the sensor.
    • I set sensor in write mode by (HAL_I2C_Master_Transmit(&hi2c3, (uint16_t)I2C_ADDRESS, &chip_address_write, TXBUFFERSIZE, 10000)).
    • I sent the register address from the board to the sensor in write more (HAL_I2C_Master_Transmit(&hi2c3, (uint16_t)I2C_ADDRESS, &chip_ID_reg, TXBUFFERSIZE, 10000)).
    • I read the data from the sensor (HAL_I2C_Master_Receive(&hi2c3, (uint16_t)I2C_ADDRESS, (uint8_t *)aRxBuffer_testing, RXBUFFERSIZE, 10000)).

    I2C_ADDRESS: the address of the sensor, chip_ID_reg: the register address of the chip ID, chip_address_write: address of the sensor in write mode, axRxBuffer_testing: the place to store received data from the sensor.

     

    Even though the I2C transmissions were successful, I did not receive anything from the sensor. I am not even sure if my procedure and what I sent was right.

     

    Do anyone have experience working with this sensor? Please give me some hint on communicating with it.

     

    Thank you, Huy Nguyen.

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi huytyskland,

    First, you should ensure your hardware is correct. You can refer BME688 schematic in data sheet or shuttle board;
    Second, there is attached example code on STM32 for your reference.

    Hello,

    Thank you for your response. Can you be a little bit more detailed about the "hardware"? Do you mean that the wire should be correctly connected?

    BSTRobin
    Community Moderator
    Community Moderator

    Hi huytyskland,

    If you used BME688 shuttle board, you can refer schematic https://www.bosch-sensortec.com/media/boschsensortec/downloads/shuttle_board_flyer/application_board..., and correctly connect with Nucleo-WL55JC1.

    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