Bosch Sensortec Community

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

    Migrating from esp32 to stm32

    Migrating from esp32 to stm32

    ilcnet
    Established Member
    Hello dear BSTRobin
    I have a project Bme688 + lora that works correctly with esp32 wroom microcontroller and my compiler is arduino, for a lot of reasons i want to change microcontroller to stm32, so my questions are:

    1- what is minimum part number of stm32 products that necessary for Bme688 processing.

    2- have we Bme688 libraries for stm32 in ardunio.

    3- without a few base commands between esp32 and stm32, can i use my esp32 codes c++ for stm32 or i need another ide and library for Bme688 with stm32.

    Thanks
    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi ilcnet,

    1. For example, in latest BSEC package, libalgobsec.lib.Size.log mentioned the requirement of MCU Flash and RAM memmory size for "BSEC2.4.0.0_Generic_Release_23012023\algo\normal_version\bin\armcc\Cortex_M4F\libalgobsec.lib".
    text data bss dec hex filename
    24950 0 3720 28670 6ffe (TOTALS)

    BSEC library support host architecture of Cortex_M0, Cortex_M0+, Cortex_M3, Cortex_M4, Cortex_M4F, Cortex_M7.

    2.Latest BSEC-2.4.0.0 had supported Arduino C++ project and C project, see example under folder "C:\work\Solution\BSEC\BSEC2.4.0.0_Generic_Release_23012023\examples\BSEC_Integration_Examples\examples\bsec_iot_example". If you use STM32 under Arduino environment, you should migrate BSEC package to your platform; If you use STM32 under C programming environment, you could refer example code bsec_iot_example.c.

    ilcnet
    Established Member
    Dear BSTRobin thank you for your fast response, i don't understand if i want to use my own code c++ in arduino with esp32 for stm32 with arduino i need to change anything or not.
    Best Regards

    BSTRobin
    Community Moderator
    Community Moderator

    Hi ilcnet,

    The interface associated with the hardware is bus_write(), bus_read(), and you need to see if your platform supports the code implementation within the function.

    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