Bosch Sensortec Community

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

    BMA456 Init fail.

    BMA456 Init fail.

    JamesQiangLiu
    New Poster

    Hi Team,

        I'm using the source codes from https://github.com/BoschSensortec/BMA456-Sensor-API, the config file has been programmed through i2c but the value from reg BMA4_INTERNAL_STAT is still 0x0 which means the initialization isn't completed.  I tried to  find any clue by dumpping  some error registers but haven't got any idea yet. 

    [00:00:00.000,000] <info> app: -config_stream_status=0x0
    [00:00:00.000,000] <info> app: -BMA4_INTERNAL_ERROR[5F]=0x0, rslt[0]
    [00:00:00.000,000] <info> app: -BMA4_ERROR_ADDR[2]=0x0, rslt[0]
    [00:00:00.000,000] <info> app: -BMA4_STATUS_ADDR[3]=0x10, rslt[0]
    [00:00:00.000,000] <info> app: -BMA4_INIT_CTRL_ADDR[59]=0x1, rslt[0]
    [00:00:00.000,000] <info> app: -BMA4_POWER_CONF_ADDR[7C]=0x2, rslt[0]

       It's a bit weird that same code works with the reference board(The Grove - Step Counter(BMA456)), but i don't see any hw change will cause this issue, given the i2c communication works well. 

      I also looked at the link  https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMA456-Init-Fails/m-p/20683#M5944 and make sure i'm following the suggestions provided.

      Any advice would be much appeciated to  locate this issue. 

    Thanks,

    James

     

    4 REPLIES 4

    JamesQiangLiu
    New Poster

    BTW, it worked for some time when i was tracing this problem,  but fails again without any change from software.

    Since there is no error from the i2c programming, i'm wondering which kind of problem could stop it from setting the status register.

    Hello JamesQiangLiu,

    I setup example code based on https://github.com/BoschSensortec/BMA456-Sensor-API. Loading config file was succesful. Please refer attachement example code.

    Thanks BSTRobin,

        Forgot to updating, the example codes are good, the problem comes from the implementation of delay which is not quite accurate enough. It works now.

     

    Regards,

    James

    Hello JamesQiangLiu,

    Good, welcome.

    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