Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME680 BSEC Library for ARM64v8 (elf64-littleaarch64)

    BME680 BSEC Library for ARM64v8 (elf64-littleaarch64)

    luiss-mind
    Member

    Hi,

    for an innovative smart-home project, I am trying to use the BME680 connected to a carrier board using the Nvidia TX2 SoM (ARM A57 CPU) 

    Unfortunately I'm unable to use the compiled binaries provided by the BSEC library, because I cannot find a suitable version for my CPU/compiler.

    I'm using GCC 5.4.1 on 64-bit Ubuntu with Linux Kernel 4.4.38.

    I tried to link my executable against both gcc/ARMv8/libalgobsec.a  and RaspberryPI/PiThree_ArmV8-a-64bits/libalgobsec.a, but the binary format is not recognized by the linker.

    Using objdump I noticed that both libraries are compiled with elf32-littlearm fileformat (may be because Raspberry Pi 3 uses 32 bit Debian even if it uses a 64bit CPU).

    It's quite troublesome having an embedded library that cannot be used on modern ARM 64bit Linux OS.

    Is there a plan to release a BSEC binary version with elf64-littleaarch64 file format?

     

    Regards

    Luigi Rodorigo

     

    7 REPLIES 7

    I'm looking for this library as well.

    I currently try to compile my code with the following command (generated through Yocto):

    aarch64-nobios-linux-gcc -march=armv8-a+crc --sysroot=/home/niels/dev/nobi/nobios/build/tmp/work/aarch64-nobios-linux/bme680/1.0-r0/recipe-sysroot -Wall -Wno-unused-but-set-variable -Wno-unused-variable -static -std=c99 -pedantic -iquote./src/BSEC_1.4.7.4_Generic_Release/API -iquote./src/BSEC_1.4.7.4_Generic_Release/algo/normal_version/bin/RaspberryPI/PiThree_ArmV8-a-64bits/ -iquote./src/BSEC_1.4.7.4_Generic_Release/examples ./src/BSEC_1.4.7.4_Generic_Release/API/bme680.c ./src/BSEC_1.4.7.4_Generic_Release/examples/bsec_integration.c ./bsec_bme680.c -L./src/BSEC_1.4.7.4_Generic_Release/algo/normal_version/bin/RaspberryPI/PiThree_ArmV8-a-64bits/ -lalgobsec -lm -lrt -o bsec_bme680

    Would it be possible to provide a library for the aarch64 architecture? The link you shared is for intel CPUs and thus won't work on the arm based cortex A57.

    Thanks!

    Niels

    We would like to share a new BSEC release in elf64-little format. Unfortunately due to a temporary issue on this platform I am not able to attach the release to this post.

    EDIT: attachments are now working again, therefore attached is the requested release. Please let us know your feedback.

    The attachment here is a little bit outdated.

    Are there any news about providing an official version of raspberry pi 64 bits library?

     

    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