Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMI270 Initialization on DA14531

    BMI270 Initialization on DA14531

    ByteOff
    Occasional Visitor

    I'm using a chip with very small memory and can't afford the 8k to load the intialization file. I've tried loading the initialization file from `bmi270_maximum_fifo.c` but the status register 0x21 return a 0x02 (initialization error). After uploading the configuration file, I've checked my I2C driver and it is confirming that 329 bytes have been written. This matches the size of the initialization file in `bmi270_maximum_fifo.c`. What are some other possible causes of this status error?

    Also, can someone definitively say - is there a way to configure and read accel and gyro values without loading any configuration file? I've seen mixed answers on the forums. 

    In case it helps, here is the relevant code snippet:

    bmi_write_byte(BMI2_PWR_CONF_ADDR, 0x00);  // Power on & disable power save

    systick_wait(500);

    bmi_write_byte(BMI2_INIT_CTRL_ADDR, 0x00); // init start - prepare config file load

    systick_wait(20);

    // Download config file to BMI270

    bytes_written = bmi_write_bytes(BMI2_INIT_DATA_ADDR, bmi270_config_file, sizeof(bmi270_config_file));

    bmi_write_byte(BMI2_INIT_CTRL_ADDR, 0x01); // initialization loaded

     

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hi ByteOff,

    A configuration file is required.
    You can strictly refer to BMI270 maximum fifo example code: https://github.com/boschsensortec/BMI270-Sensor-API/blob/master/bmi270_max_fifo_examples/accel_gyro/...

    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