Bosch Sensortec Community

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

    BMI270 Config File

    mullercw
    Member

    Re: BMI270 Config File

    I have tried adjusting the burst size. While 32, 64 and 128 seem to work 256, 512, 1024, 2048, 4096 and 8192 all fail. Is this expected? It takes >5 seconds to load when using 128 sized bursts. I need to find a way to spped this up. The SPI interface meets your set up and hold requirements.

    Can you confirm that you have a system that can load this file in 15-30ms?

    Minhwan
    Community Moderator

    Re: BMI270 Config File

    Hello mullercw, 

     

    5s for config file is quite slow. Yes, technically 8192 should work. 

    However, burst write config file, it requires ca. 6.6 ms at 10 MHz SPI Interface. 

    Thanks, 

    kpoon12
    New Poster

    Re: BMI270 Config File

    How to create config file? I want to config gyro with level tigger. Is it way to do that? 

    Minhwan
    Community Moderator

    Re: BMI270 Config File

    Hello, 

     

    Do you mean that you want to use gyro and hardware interrupt trigger? 

    Config file and both your reqeusts are seperate. 

    In terms of gyro, you can check our example, https://github.com/BoschSensortec/BMI270-Sensor-API/tree/master/examples/bmi270

    And, level trigger ( assume hardware interrupt pin), please check below code. 

     

    struct bmi2_int_pin_config int_pin_config;

     

    /* Interrupt setting */
    int_pin_config.pin_type = BMI2_INT1;
    int_pin_config.int_latch = BMI2_INT_NON_LATCH;
    int_pin_config.pin_cfg[0].output_en = BMI2_INT_OUTPUT_ENABLE; // Output enabled
    int_pin_config.pin_cfg[0].od = BMI2_INT_PUSH_PULL; // OpenDrain disabled
    int_pin_config.pin_cfg[0].lvl = BMI2_INT_ACTIVE_LOW; // Signal Low Active
    int_pin_config.pin_cfg[0].input_en = BMI2_INT_INPUT_DISABLE; // Input Disabled
    // INT1 active high, pushpull, output enabled
    rslt = bmi2_set_int_pin_config( &int_pin_config, &bmi2_dev);

     

    Thanks, 

    kpoon12
    New Poster

    Re: BMI270 Config File

    I can get DRDY or ANY_MOTION to hardware interrupt pin.

    But: 

    I want to try get interrupt, if the sensor_data.sens_data.gyr.x  > 1000.

    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