Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Using BSX lite with Segger

    Using BSX lite with Segger

    Ceranthor
    New Poster

    Hi,

    I want ot use BSX Lite to calculate quaterions with outputs of my 9 dof sensor (100 Hz readings refresh rate as in the implemention guide). Is it possible to use different sensor with this software and also how to add it to segger embedded studio? I am using NRF52840 (cortex m4) so this should be supported on my board.

    Thanks for any help

    5 REPLIES 5

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Ceranthor,

    You could select IMU and magnetometer sensor from Bosch product selector guide: https://www.bosch-sensortec.com/media/boschsensortec/downloads/promotion_material/product-selector-e...

    NRF52840 was ARM Cortex-M4F architecture inside. Add libalgobsx.a library under the folder "BSXlite_Cortex_M3_M4_M4F\algo\algo_bsx\Lib\libalgobsx3_CortexM4F" and header files to your IDE, following integration guide to do migration.

    Yes i made it but when i tried to integrate my readings in 10 ms intervals (100Hz like in the integration guide) i get something like this: when turning to check roll my output rise 0 to 200 - 300 and drop back to 90 when rotating by 90 degrees. The same happens on the other parameters like pitch and yaw. is something missing? I calibrated IMU and giving to the functions in right units m/s2 and rads/s. 

    Can I ask you how did you integrated BSXLite with Segger for NRF52840?
    I am strugling with linking it with both Segger and also Arduino (Adafruit NRF52) but it fails to link .
    I am  not sure if the libalgobsx.a is comoiled with hard floating point support .
    I am using " -mfloat-abi=hard -mfpu=fpv4-sp-d16"
    If I am looking to the BSEC_Software_Library implementation for Arduino and I see there are 2 versions of libalgobsec.a (one in the cortex-m4 directory and one in cortex-m4/fpv4-sp-d16-hard) 
    For BSXLite I can find only one library.... and I dont know if it is hardfp or softfp
    Can you help me ?

    I do not know how to add it to Adruino IDE for segger i added a path in project settings and included all H files in top section. I also added .a file from m4HardFP.

    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