Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI160B initialisation error

    BHI160B initialisation error

    ale_monta
    New Poster

    Hello, 

    I'm using a BHI160B on my custom PCB, I can detect the sensor with an I2C scan and I can read and write its registers fine. The firmware gets loaded without problems.

    However, when I configure the sensor to sample the accelerometer, the configuration works fine but when I start reading the FIFO I get the Meta Event Type 0x4 (Error).

    The values of the bhy_data_meta_event_t struct are the following:

    meta_event_id = 0xFE
    event_number = 0x4
    sensor_type = 0x21
    event_specific = 0x15

    I tried several sensors and they all have the same issue.

    I know the code works because when I use it on the BHI160B shuttle board, it works fine, I can read the sensor data without problems.

    The firmware I'm using is bosch_pcb_7183_di03_bmi160-7183_di03-2-1-11696_20180502

    Can you please advise on what could be the problem?

    Thanks!

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hello ale_monta,

    There were example code in github, could you refer it and check your SW code?

    https://github.com/BoschSensortec/BHy1_driver_and_MCU_solution/blob/master/examples

    Hi,

    I already use those examples.

    I'm sure my code is correct because it works fine on the shuttle board.

    However, I wanted to know if there is a way to debug the issue from the error codes logged.

    Thanks

    BSTRobin
    Community Moderator
    Community Moderator

    Hello ale_monta,

    For your HW board, could you give out your BHI160B schematic for check?

    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