Bosch Sensortec Community

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

    Need BSEC library compiled with -mfloat-abi=softfp option

    Need BSEC library compiled with -mfloat-abi=softfp option

    DanijelH
    New Poster

    I've downloaded BSEC_1.4.8.0_Generic_Release_updated_v3 package.

    I use gcc-arm-none-eabi-10-2020-q4-major compiler and my architecture is ARM Cortex M4F, and my code has to compile with "softfp" value for -mfloat-abi option.

    It seams that provided BSEC library located at algo/normal_version/bin/gcc/Cortex-M4F is compiled with "hard" value.

    Can you provide me library with compiled with -mfloat-abi=softfp option ?

    Thanks.

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hello DanijelH,

    BSEC compiled with "hard" option was more suitable for your host architecture.

    First of all, thanks for reply.

    I'm aware that "hard" option is more sutable, but in my project I have to use some other third party libs that are "softfp" precomiled.

    Just for the record, I've tried to link my project agenst:
    BSEC_1.4.8.0_Generic_Release_updated_v3/algo/normal_version/bin/gcc/Cortex_M4/libalgobsec.a
    and linking was successful. 

    It seems that this solution works for me, because tests show that humidity measurements are compensated and so close to values read from referent device.

    I think this workaround is ok, what is your opinion ?

    My explanation for successful linking of CortexM4 libalgobsec.a library is that actually these archs differs in support for hardware floating point unit, and that compiling with "softfp"option for CortexM4F would actually result in the same binary as it is provided for CortexM4.

     

    BSTRobin
    Community Moderator
    Community Moderator

    Hello DanijelH,

    Yes, you could try to use library under "BSEC_1.4.8.0_Generic_Release\algo\normal_version\bin\gcc\Cortex_M4" folder. This library is used for Cortex-M4 without hardware floating point.

    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