Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMI270 with TI CC2640 Sensor Controller

    BMI270 with TI CC2640 Sensor Controller

    tkobet
    New Poster

    We're working with a custom board based on the TI CC2640R2, and while we are able to fit the 8k config file into flash with the rest of the application, RAM is very limited, and we cannot integrate the BMI270 API, so we are basically driving the BMI270 at the register level through TI's SPI API.

    We have managed to get the config file to load (INTERNAL_STATUS reports init_ok).  This is with code running in the main firmware application.  This product makes use of the CC26xx family's Sensor Contoller, which is a low-power auxiliary sub-system intended for simple sensor interfaces.  Due to its limitations, we have to download the 8k config file using the main micro, then after the config file has been downloaded, actual gyro data acquisition is driven by the sensor controller.

    While init completes, we are not getting any data from the gyro.  After init completes, the main firmware has to release control of the SPI port so the Sensor Controller can take it over.  The config file download uses a data rate of 10 MHz so it can be completed as quickly as possible, but the SPI data rate on the Sensor Controller is limited to 1.1 MHz.  Would you expect this change in the SPI data rate after config file download to cause issues?

    I found while working on the config file download that It appears the timing is very tight on the init sequence.  If I code all the SPI transfers one immediately after the other, I can get the download to succeed (INTERNAL_STATUS reports init_ok).  If I put the SPI transfers into a generic transfer function, introducing function call over head between each step, the download fails, and INTERNAL_ERROR reports "long processing time, processing halted".  The CC26xx Sensor Controller has its own set of APIs to drive a SPI interface, and I'm wondering if it's too slow for the BMI270.

    Once the config file is downloaded, can the BMI270 then be driven at a lower clock rate, with more latency between successive commands for gyro setup and data reads?

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hello tkobet,

    1.For your description "The config file download uses a data rate of 10 MHz so it can be completed as quickly as possible, but the SPI data rate on the Sensor Controller is limited to 1.1 MHz. Would you expect this change in the SPI data rate after config file download to cause issues?", BMI270 supports 10 MHz SPI data rate, it will work well as long as SPI master date rate is not greater than 10 MHz.
    2.The configuration file needs to be loaded in segments. The length of segments depends on the maximum length supported by the SPI host. Initialization takes a while, but it only needs to be initialized once.

    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