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

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)?

Best reply by BSTRobin

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

View original
3 replies
Resolved