Bosch Sensortec Community

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

    Not been able to get BMI270 up and running.

    Not been able to get BMI270 up and running.

    nataphonk
    New Poster

    Hi all,

     

    I am writing an application for interacting with bmi270 imu sensor on linux. The following steps are my attempts.

     

    1. I'm implementing HAL for a BMI270 library from BoschSensortec/BMI270-Sensor-API: This respository contains Bosch Sensortec's BMI270 inertial measur...

    2. In i2c read and write function implementation, I logged the register address, length and data for debugging purposes.

    3. I try compiling the example from the library: bmi270_examples/accel_gyro/accel_gyro.c , but I can't get the data back.

    4. I attached a relevant HAL implementation, application code and log files for more information.

     

    If you need more details, please feel free to inform me.

     

    Thank you so much in advance,

    Nataphon

    3 REPLIES 3

    Minhwan
    Community Moderator
    Community Moderator

    Hi nataphonk, 

     

    Thanks for your question. 

    Minhwan_0-1658441619223.png

    I saw your log and your initialization got as 0x03 which is invalid driver. It was supposed to be 0x01 which is okay. 

    Can you capture your data using logic analyzer and share the data? 

    I assume there is some wrong point when you download config file. 

    Did you download 8KB config file at once?

    Thank you. 

    Hi Minhwan,

     

    I finally got it working by reducing page bytes down to 2K and bmi->read_write_len down to 1k. The register 0x21 status is now 0x01.

     

    Thanks you so much,

    Nataphon

    Minhwan
    Community Moderator
    Community Moderator

    Good to hear that 🙂 

    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