Bosch Sensortec Community

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

    BMI270 I2C init error

    BMI270 I2C init error

    mgchoi
    New Poster

    [Current settings]
    1. interface: I2C fast mode 400Khz
    2. address: 0x68

    [Problem]
    As shown in the attached, -2, -9 error code is generated when BMI270 is initialized during initial boot of the terminal

    Afterwards, if bmi270 is reinitialized, normal booting and reading sensor values (retry is random, but usually booting normally after about two times)

    [Code]
    rslt = bmi270_init(&bmi270Dev);
    bmi2_error_codes_print_result(rslt); --> Outputs code generated here

    I can't determine what the error code number is. I ask for your help me.
    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hi mgchoi,

    -2 return value means communication error. If communication error occurs, loading config file failed and return -9.
    You can check your code in bmi2_interface_init() function.

    Thank you for your answer.
    It's settled.

    BSTRobin
    Community Moderator
    Community Moderator

    Welcome, mgchoi.

    Good news.

    Hi, BSTRobin

    I have an additional question.


    1. For BMI270 what's the difference if there's no AVG and only BW?

    I have 2/1 and 4/1 settings as below, but if I set ODR to 100HZ and set it to Half, does the data output to 50hz?

    Am I right in understanding?

    mgchoi_0-1686550190601.jpeg

    2.  Power Mode
    - - Low Power Mode
    - - Normal mode
    - - High performance mode
    ** Are there any files with restrictions for each of the above 3 modes? It is not written separately in Datasheet.
    e.g. Maximum ODR, RANGE, BW, AVG etc…

    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