Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI360 bhy2_hif_check_boot_status_ram timeout error

    BHI360 bhy2_hif_check_boot_status_ram timeout error

    thisiskishore
    New Poster

    We are using BHI360 on custom board connected to host controller over I2C. I am trying to load firmware for BHI360 (BHI360.fw.h) and using euler example from BHY2 Sensor APIs. Loading of firmware to Ram is ok but "bhy2_hif_check_boot_status_ram " is timing out. I am seeing Boot Status Reg as 0x18 and its not changing.

    The following is the debug print from host

    ./bhi360_test
    BHI360 found. Product ID read 89
    Host interrupt control
    Wake up FIFO enabled.
    Non wake up FIFO enabled.
    Status FIFO disabled.
    Debugging disabled.
    Fault enabled.
    Interrupt is active high.
    Interrupt is level triggered.
    Interrupt pin drive is push-pull.
    Loading firmware into RAM.
    Entered - bhy2_upload_firmware_to_ram
    bhy2_upload_firmware_to_ram result - 0
    Booting from RAM.
    Entered Boot from Ram
    bhy2_hif_exec_cmd result - 0
    bhy2_hif_check_boot_status_ram result - -5
    bhy2_hif_boot_program_ram - 1 Result - -5
    bhy2_boot_from_ram result - -5
    [API Error] Timed out

    Kindly suggest way forward to resolve this issue. 

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hi thisiskishore,

    Thank for your inquiry.
    Ensure that your BHI360 hardware is designed with reference to the Shuttle board(https://www.bosch-sensortec.com/media/boschsensortec/downloads/shuttle_board_flyer/application_board...) and data sheet.
    I uploaded BHI360 example code on STM32 for your reference, hope it will be helpful for you.
    Euler example require acc, gyro, mag sensor. It is not corrent example for you as you only use BHI360. You can also refer to attached example code, enable the following macro definitions and eanble Game rotation vector virtual sensor ID to get Four elements output.
    #define BHI260_6DOF

    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