Bosch Sensortec Community

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

    Build BHI260 firmware as *.fw.h files with the BHI260 SDK

    Build BHI260 firmware as *.fw.h files with the BHI260 SDK

    bsole
    New Poster

    I have a custom board with an nrf52840 with a BHI260AP+BMM150+BMP390, and I'm able to upload firmware normally using the given firmware on the BHY2_SensorAPI github repo.

    However, I want to build my own firmware because there's no BHI260AP_aux_BMM150_BMP390.fw.h option, forcing me to choose between firmware that include all chips (i.e. BHI260AP_aux_BMM150_BMP390_BME688-flash.fw.h, which includes an BME688 which I don't have, wasting memory), or firmware that includes one but not the other (BHI260AP_aux_BMM150.fw.h or BHI260AP_BMP390.fw.h). Plus BHI260AP_aux_BMM150_BMP390_BME688-flash.fw.h doesn't include Orientation data, and neither BHI260AP_aux_BMM150_BMP390_BME688-flash.fw.h nor BHI260AP_BMP390.fw.h don't provide the BMP390's temperature data.

    I was able to setup the BHI260 SDK in VSCode and build the examples, but it doesn't provide *.fw.h files, only *.fw files. I need *fw.h files to upload firmware from the nrf52840 to the bhi260AP. How can I get the *.fw.h files as well?

    If not, then can I just get a custom BHI260AP_aux_BMM150_BMP390.fw.h build, including the BHI260AP_aux_BMM150.fw.h's orientation data (and possibly including the BMP390's temperature data)?

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi bsole,

    Thanks for your inquiry.
    You can download BHI260AP SDK from here https://www.bosch-sensortec.com/products/smart-sensor-systems/bhi260ap, and refer to SDK quick start guide https://www.bosch-sensortec.com/media/boschsensortec/downloads/application_notes_1/bst-bhi260ab-an00... to generate fw by yourself.

    You can You can use the tools in the attachment to convert .fw file to .h file.

    how do I use the converter?

    BSTRobin
    Community Moderator
    Community Moderator

    usage: fw2h.exe <in-file> <out-file>

    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