Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI260AP i2C interface

    BHI260AP i2C interface

    mmgg
    New Poster

    Hello

    BHI260AP is being implemented on the board.

    I confirmed that I read the register such as i2c communication and chip id.

    The error occurs while loading firmware as shown below.
    (We changed the firmware name to the one we used before.)

    root@imx8mmevk:/sys/class/input/input0# echo 1 > download_ram_firmware
    [ 1085.740430] [D]<BHY><bhy2_store_download_ram_firmware><912>HAL request to load firmware
    [ 1085.749135] [I]<BHY><bhy2_download_ram_firmware><825>fw name: ram_patch.bin
    [ 1085.762468] [I]<BHY><bhy2_download_ram_firmware><831>fw data: 2B 66 00 00
    [ 1085.769263] [I]<BHY><bhy2_download_ram_firmware><833>fw size: 106156
    [ 1085.776879] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1086.776889] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1087.776886] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1088.776886] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1089.776886] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1090.776888] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1091.776888] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1092.776893] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1093.776887] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1094.776887] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1095.776887] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1096.776886] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1097.776889] [I]<BHY><bhy2_ts_sync_work_func><7461>Downloading firmware, not read HUB time
    [ 1097.853680] [D]<BHY><bhy2_irq_control_setup><539>host int ctrl 0x04
    [ 1098.014205] [D]<BHY><bhy2_upload_and_boot_ram_firmware><770>irq status is 0B after fw download
    [ 1103.137678] [E]<BHY><bhy2_download_ram_firmware><878>No initialized meta event
    [ 1103.145603] [E]<BHY><bhy2_store_download_ram_firmware><925>FW error is 0
    [ 1103.159075] [D]<BHY><bhy2_dump_registers><185>dump register map:
    [ 1103.165091] [D]<BHY><bhy2_dump_data><151>00 00 C0 04 00 00 00 00 00 00 00 00 00 00 00 00
    [ 1103.173188] [D]<BHY><bhy2_dump_data><151>00 00 00 01 FF FF FF FF 89 03 2E 14 67 17 67 17
    [ 1103.181284] [D]<BHY><bhy2_dump_data><151>4A 38 16 CC 04 00 00 70 00 0B 00 00 00 BF 00 00
    [ 1103.189377] [D]<BHY><bhy2_dump_data><158>00 00 00 00 00 00 00 00 00 00
    [ 1103.200958] [E]<BHY><bhy2_read_post_mortem_data><671>read post mortem failed ret=-6
    [ 1103.208617] [D]<BHY><bhy2_dump_data><158>01 00 05 00
    [ 1103.218704] [I]<BHY><bhy2_read_post_mortem_data><684>Request postmortem failed again 0xf
    [ 1103.226798] [D]<BHY><bhy2_dump_data><158>01 00 05 00
    [ 1103.231765] [E]<BHY><bhy2_store_download_ram_firmware><933>Try to read post mortem data failed

     

    Since then, the log below has continued to appear.

     

    [ 1140.787537] [E]<BHY><bhy2_enqueue_ring_buffer><64>One item lost due to data queue full
    [ 1141.779610] [E]<BHY><bhy2_enqueue_ring_buffer><64>One item lost due to data queue full
    [ 1142.779610] [E]<BHY><bhy2_enqueue_ring_buffer><64>One item lost due to data queue full
    [ 1143.779603] [E]<BHY><bhy2_enqueue_ring_buffer><64>One item lost due to data queue full

     

    Is there a sequence for firmware loading or if the way I did it is wrong?

    11 REPLIES 11

    BSTRobin
    Community Moderator
    Community Moderator

    Hi mmgg,

    What about your hardware? Such as 6doF or 9doF? Do you use extended Flash?
    And which firmware you used?

    There were BHI260AP example code for your reference: https://github.com/boschsensortec/BHY2-Sensor-API/tree/master/examples

    Hi, BST Robin

    Firmware is Bosch_APP30_SHUTTLE_BHI260_aux_BMM150.fw
    Firmware for RAM was used.
    It does not use extended flash.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi mmgg,

    You could refer attached BHI260AP example code on STM32.

    Thanks, BOSCH

    We are using Linux Driver.
    Downloading F/W using Sysfs
    A post mortem failed ret=-6 error has occurred.
    When I looked it up, it was found to be dccm_acc_err as shown in the picture below.
    I would like to proceed with the debugging work, is there any solution related to this?

    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