Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA456 WITH STM32

    BMA456 WITH STM32

    QQW
    New Poster

    我使用stm的iic实现计步功能但是在写入配置时失败,返回值rslt=0xFB我们使用了arundio的配置数组,在读取0x2A状态前rslt都是为0的这意味这前面操作的都是成功的   我们不知道这是为什么!!!!请求帮助 !谢谢! 我们已经确定该设备的iic地址为0X19.

    附上我的程序  

    希望有人指出我的错误;

     

    5 REPLIES 5

    BSTRobin
    Community Moderator
    Community Moderator

    Hello QQW,

    1.Firstly, please refer the following BMA456 I2C schematic to check bma456 device address. If SDO pin was connected to high level, device address should be 0x19. Otherwise, device address should be 0x18;

    BMA456 I2C schematic.png

    2.In writing config file function bma4_write_config_file(), it has a SW procedure in code. After you run the code, you could capture I2C waveform by logic analyzer and check if the I2C waveform match with your SW procudure.

    你好  我已经很确定该设备的IIc地址为0x19,因为读0x18时并不能读出芯片ID

    BSTRobin
    Community Moderator
    Community Moderator

    Hello QQW,

    Suggest you check I2C waveform next step.

    我想要知道bma 456和bma456h有什么区别?

    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