Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BHI 360 SPI interface is not working

    BHI 360 SPI interface is not working

    jack1
    New Poster

    Hi support team,

    We are trying to use our ble mcu to drive bhi 360 via spi interface, but failed to get data back. We have the test few mode on cpol and cpoa with 11and 00 mode. The vdd and vddio both given with 1.8v. The resetn is low, and interrupt line is not controled. Picture attatched is the waveform we send to the bhi 360 via SPI.  Is there any different between the required one and our?  We have proting the code form coines, eulers.c , to a arm m0 based mcu. Could your give some hint for confurging the spi interface? 

    best,

    jack

    5 REPLIES 5

    BSTRobin
    Community Moderator
    Community Moderator

    Hi jack1,

    Based on BHI360 sensor API v1.6.0, I uploaded BHI360 example code on STM32 for your reference.
    And also uploaded SPI waveform during read BHI360 chip ID for your reference.

    SPI Read BHI360 Chip ID.png
    To see all detailed SPI waveform, you can install Saleae logic(https://www.saleae.com/downloads) and open "BHI360 without BMM350_SPI waveform.logicdata".

    HI Robin, Thanks for proving the spi wavefrom. I have made bhi360 wroks on spi mode.

    BSTRobin
    Community Moderator
    Community Moderator

    Good news, jack1.

    HI Robin, 

    I made bhi360 keep running without interrput via spi. I have made the same process as your provided, the process has attached under post.

    We have read reg 0x2D, which is returning 0x03, which is confusing me. Is there any key point missing to make the interrupt works?  

    This the pictrue of the last 0x03 read in the last part of initialitions. 

    the_last_bit_we_read.png

    This is the pictrue shows the whole processes of the initialition. 

    whole_waveform.png

    , Best

    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