Bosch Sensortec Community

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

    SPI interface with bhi260ap and ATSAMD51 MCU

    SPI interface with bhi260ap and ATSAMD51 MCU

    rajesh_s
    Established Member

    Hi,

    I am using bhi260ap IMU for my project from command line as well as low level interface i can able to communicate with imu via I2C, but if i try to do the same with SPI i couldn't able to do it with either way.please help me with this issue.

    Steps followed:

    1.Directly connected IMU sensor with MCU which is having 1.8V as supply and communication voltage(Not working).
    2.Using a level shifter, connected 3.3V supply MCU to IMU. connected MISO,MOSI,SCK,SS and VDD,VDDIO(1.8V given) and ground connected(Not working).

    NOTE: Above two steps are working fine with I2C interface with their respective connections.

    We have gone through the entire Datasheet and still this issue persisit. Is there any other connection required for SPI?

    14 REPLIES 14

    BSTRobin
    Community Moderator
    Community Moderator

    Hi rajesh_s,

    Could you send out your hardware schematic and let us review it?

    rajesh_s
    Established Member

    Hi,
    I have attached schematics of both IMU carrier board and MCU.please find the attachment.

    rajesh_s
    Established Member

    Hi,

    As per the datasheet(BHI260AP) of yours we have gone through a point

    In page 25 of BHI260AP datasheet it detailed mention the Connection Diagram  and In Notes(1) it written to connect the Hostboot to VDDIO.

    1.Hostboot should be HIGH (it select the host interface) in page 26 Topic-(Physical Primary Host Interface).

    But in our case the Hostboot is LOW does it impact in SPI communication As it shows in your page 2 of your schematic(BHI260AP).

    Can you please suggest us what to do with this query.

    rajesh_s
    Established Member

    Hi,
    We are waiting for your reply.Please guide us through this issue.
    Additional info: we configured our master (samd51) with spi mode 0 and connected all connections without any pullup or pulldown resistor (as per datasheet). we have tried frequency in a range starting from 1MHZ to 50 MHZ none of them are working.

    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