Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI160B FIFO Data remains same after data reading

    BHI160B FIFO Data remains same after data reading

    vamshi
    Established Member

    Hi team,

    We are using BHI160B IMU and working on example from https://github.com/BoschSensortec/BHy1_driver_and_MCU_solution/blob/master/examples/rotation_vector_...
    using STM32-L053R8 board.

    We are facing a problem with physical interrupt as we were unable to read data. Then we started reading the Host Interrupt status register in this, first bit (BIT0) is the interrupt status that indicates new data is ready. At the first time, this bit0 is high after we read data from FIFO then it is becoming low.

    It should become high when new data is available but both data in the FIFO (Same data->no change) and Bit0 (Low) remain the same for the next iteration.
    What might be the reason? could anyone help us to resolve this problem

    Host Int.PNG

    Data in FIFO
    image (4).png

    Any help would be very thankful.

     

     

    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hi vamshi,

    You could refer attached BHI160 example code, and run it again.

    vamshi
    Established Member

    Thank you for the reply,

    I had run the code provided by you, below are my observations in debug mode. Still, it is behaving the same. The interrupt status bit is not becoming high after the first iteration. What else might be the issue?

    a) During the first interrupt, data in the FIFO as below
    Host Int_RTOS.PNG

    b) After the first interrupt, data in the FIFO same and the second interrupt is not getting HIGH as below (control is in while loop only)
    Host Int_Value0_RTOS_01.PNG

    c) The variable "value" which is passing to the function is 0 for second interation as below. This is the reason for not updatinf data in the FIFO.
    Host Int_Value0_RTOS.PNG

    Please help me to resolve this issue.

    vamshi
    Established Member

    Hi,

    Now we made four more BHI160B IMU boards & we have ordered 100 quantity also to use in our end application.
    But we are facing issues i.e... among those four boards, we found only two are working fine and the remaining have the problem of interrupt generation or firmware upload not completed.

    Is there any way to solve this issue?

    Because we thought it to continue in our end application but they are getting stuck i.e. not getting data from it. What might be the reason??

    Any help would be very thankful.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi vamshi,

    First, you need to make sure that your sensor part number(BHI160, BHI160B, BHI160BP) matches the firmware you used. Then you run the example program provided before, and it will work well.

    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