Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMI085: bmi08a_load_config_file Error [-6] : Config stream error

    BMI085: bmi08a_load_config_file Error [-6] : Config stream error

    ysqcn
    Established Member

    Hi,

    We are trying to migrate our own BMI085 driver to https://github.com/BoschSensortec/BMI08x-Sensor-API, howeven when run read_sensor_data.c, we get bellow error message:

     

    BMI08x initialization success!
    Accel chip ID - 0x1f
    Gyro chip ID - 0xf
    Uploading config file !
    bmi08a_load_config_file Error [-6] : Config stream error
    init_bmi08x     Error [-6] : Config stream error

     

     

    It fails when check BMI08X_REG_ACCEL_INTERNAL_STAT:

     

                        if (rslt == BMI08X_OK)
                        {
                            /* Wait till ASIC is initialized. Refer the data-sheet for more information */
                            dev->delay_us(BMI08X_MS_TO_US(BMI08X_ASIC_INIT_TIME_MS), dev->intf_ptr_accel);
    
                            /* Check for config initialization status (1 = OK)*/
                            rslt = bmi08a_get_regs(BMI08X_REG_ACCEL_INTERNAL_STAT, &reg_data, 1, dev);
                        }

     

     

    In our original driver, we don't do much configure to Accel, and we can read out the Accel samples from register 0x12-0x17, like bellow

     

    ---Acc: 2741  6050  60997   (13.125013 13.125013 13.125013)
    ---Acc: 2744  6065  60984   (13.139379 13.139379 13.139379)
    ---Acc: 2734  6063  60982   (13.091495 13.091495 13.091495)
    ---Acc: 2749  6074  60980   (13.163321 13.163321 13.163321)

     

     

    Could you comment where the problem would be?

    I already use the latest code :

    commit 631a966891885643f180e18e94870411b8f4c3fc (HEAD -> master, tag: bmi08x_v1.5.8, origin/master, origin/HEAD)
    Author: Bosch Sensortec <github@bosch-sensortec.com>
    Date:   Wed Mar 16 19:34:09 2022 +0100
    
        Fixed bugs related to config file loads on certain platforms.

     

    Thanks

    -Austin

     

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi ysqcn,

    There was BMI08x example code attached on STM32. You could compare with your code and run it again.

    ysqcn
    Established Member

    Thanks. The problem is in our bmi08x->write hook which needs some delay to ensure the massive write (46bytes) are actually written into the chip.

    BSTRobin
    Community Moderator
    Community Moderator

    Welcome, ysqcn.

    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