Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    How can I verify the trimming coefficients of the BMP390 sensor?

    agai
    New Poster

    How can I verify the trimming coefficients of the BMP390 sensor?

    How can I verifiy the trimming coefficients stored in the NVM of the BMP390 sensor? I would expect to find a checksum somewhere in the NVM section and a corresponding checksum formula in order to be able to verify the values. This is a memory dump of the trimming coefficients received from the BMP390 (Register addresses: 0x31 - 0x45):

    trimming coefficients bmp390trimming coefficients bmp390 

    3 REPLIES 3
    FAE_CA1
    Community Moderator

    Re: How can I verify the trimming coefficients of the BMP390 sensor?

    Hi,

    Thanks for your inquiry.

    BMP390 doesn't have checksum to verify if the read from NVM for the coefficient parameters are correct or not. Basically you could run self-test at https://www.bosch-sensortec.com/media/boschsensortec/downloads/application_notes_1/bst-mps-an006.pdf. If the self-test passes, then it means the parameters from NVM are correct. Otherwise, the self-test will fail.

    BMP390 API source code can be found at https://github.com/BoschSensortec/BMP3-Sensor-API.

    Thanks.

    agai
    New Poster

    Re: How can I verify the trimming coefficients of the BMP390 sensor?

    Many thanks for your reply!

    The library Adafruit_BMP3XX implements a crc check of the trimming coefficients using the address 0x30, where a crc8 is stored. I've checked it on my BMP390-application and it is correct. The address 0x30 consists of a  crc8 which ca be calculated using the 0x1D polynomial. Why is this not part of the official documentation? 

    FAE_CA1
    Community Moderator

    Re: How can I verify the trimming coefficients of the BMP390 sensor?

    Hi,

    BMP390 API code is available online at Github. There is a bmp3_selftest.c file that has CRC check function for NVM parameters at https://github.com/BoschSensortec/BMP3-Sensor-API/blob/master/self-test/bmp3_selftest.c.

    Thanks.

    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