Bosch Sensortec Community

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

    temperature values is always 0

    temperature values is always 0

    JimitP
    New Poster

    Hi ,

     

    I am trying to integrate BESEC software to interface BME680  with EFR32BG22(Cortex M33).I sucessfully integrate libalgobsec.a file for GCC cortex M33F into my project.The project get  compiled sucessfully without any error.

    I have problem with the output data from the BME680.The temperature value remain 0 all the time, and CO2,Iaq and breath values take quiet long time to show-up (initially they all shows 0 values)

    My program take reading every 3 sec. I am using simplicity studio IDE and GNU ARM v10.2.1 compiler.

    I susppect there is  someting wrong with bsec_init()(initialization in BESEC library) function .It looks like  temperature functionality of BME680 is not getting initialize properly.

    I am attaching the snapshot output console:

    Please help me to resolve this issue.

     

    Thank You

    8618fd96-29e6-478f-b562-c2ccca8fb874.jpg

     

    30 REPLIES 30

    Hi team,

    I am struggling to include your BSEC in our platform. Now we changed our platform to dialog 14531.

    We interfaced with the same bme680 ic to get the AQI values.
    Do you have any reference which somebody might have done this job on the same dialog platform?

    Otherwise, please let us know to include your libs. Could please share the latest bsec libs and sample applications?

    Regards,
    Kumar

     

     

     

    Hi Kumar, 

     

    We have official github bsec2 library as below. (latest)

    https://github.com/BoschSensortec/Bosch-BSEC2-Library

    Also, you can find our migration guide in BSEC 2.x software. 

    https://www.bosch-sensortec.com/software-tools/software/bme688-software/

    Thank you. 

    Hi Minhwan,

    Still i am working on the same libraray compilation and gettign the below error.

    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
    Build target 'DA14531'
    Note: source file '..\src\user_custs1_impl.c' - object file renamed from '.\out_DA14531\Objects\user_custs1_impl.o' to '.\out_DA14531\Objects\user_custs1_impl_1.o'.
    Note: source file '..\src\user_peripheral.c' - object file renamed from '.\out_DA14531\Objects\user_peripheral.o' to '.\out_DA14531\Objects\user_peripheral_1.o'.
    linking...
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_interface.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_do_steps.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_get_configuration.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_get_state.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_get_version.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_init.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_reset_output.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_sensor_control.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_set_configuration.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_set_state.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6242E: Cannot link object bsec_codegen_update_subscription.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6449E: While processing ..\src\libalgobsec.lib(Bsec.o): ELF header refers to section-name string table section #10 but that section has type 1879048195 (SHT_ARM_ATTRIBUTES) instead of SHT_STRTAB
    Not enough information to produce a SYMDEFs file.
    Not enough information to produce a FEEDBACK file.
    Not enough information to list image symbols.
    Not enough information to list load addresses in the image map.
    Finished: 15 information, 0 warning and 12 error messages.
    ".\out_DA14531\Objects\BME68x_BSEC_Integration.axf" - 12 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed: 00:00:06

    could tell me the exact problem. I am using Cortex-M0+  platform for the below link. could share the library for this platform.

    C:\Users\fkumar\bsec_1-4-8-0_generic_release_updated_v3\BSEC_1.4.8.0_Generic_Release_updated_v3\algo\normal_version\bin\armcc\Cortex_M0+

    Regards,

    Kumar

     

     

    Hi Minhwan,

    I have another doubt, my platform is Cortex-M0+ and having 32Kb flash memory now the default stack is loaded with the space occupied with 20Kb.

    Now I have space to include 10Kb can this allow me to fit your library into this memory.

    I took the library from your latest SDK link: 

    C:\Users\fkumar\bsec_1-4-8-0_generic_release_updated_v3\BSEC_1.4.8.0_Generic_Release_updated_v3\algo\normal_version\bin\armcc\Cortex_M0+

    bsec_datatypes.h

    bsec_interface.h

    libalgobsec.lib

    libalgobsec.lib.Size

    when i open the "libalgobsec.lib.Size" is showing as below:

    text        data        bss        dec        hex  filename
    19469        0          1248     20717    50ed (TOTALS)

    The above statement means the flash requires 19Kb right?  have only 10Kb available, that means there is some memory issue right?

    I am using da14531? and in recent compilation i am getting the below error?

    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
    Build target 'DA14531'
    Note: source file '..\src\user_custs1_impl.c' - object file renamed from '.\out_DA14531\Objects\user_custs1_impl.o' to '.\out_DA14531\Objects\user_custs1_impl_1.o'.
    Note: source file '..\src\user_peripheral.c' - object file renamed from '.\out_DA14531\Objects\user_peripheral.o' to '.\out_DA14531\Objects\user_peripheral_1.o'.
    linking...
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6406E: No space in execution regions with .ANY selector matching Channel.o(i.bsec_Channel_reset).
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6406E: No space in execution regions with .ANY selector matching bme680.o(.text).
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6406E: No space in execution regions with .ANY selector matching ffixi.o(.text).
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6406E: No space in execution regions with .ANY selector matching nmi_handler.o(.text).
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6406E: No space in execution regions with .ANY selector matching arch_system.o(i.__ARM_common_ll_muluu).

    .

    .

    .

    .

    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_custs1_def.o(.constdata).
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6406E: No space in execution regions with .ANY selector matching iusefp.o(.text).
    .\out_DA14531\Objects\BME68x_BSEC_Integration.axf: Error: L6407E: Sections of aggregate size 0xc28 bytes could not fit into .ANY selector(s).
    Not enough information to produce a SYMDEFs file.
    Not enough information to produce a FEEDBACK file.
    Not enough information to list image symbols.
    Not enough information to list load addresses in the image map.
    Finished: 4 information, 0 warning and 124 error messages.
    ".\out_DA14531\Objects\BME68x_BSEC_Integration.axf" - 124 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed: 00:00:10

    Based on the above statement you can suggest where it went wrong?

    Regards,

    Kumar

    Hi Kumar, 

     

    You can see the error " No space in execution regions with .ANY selector matching iusefp.o(.text)."

    I think your MCU is not enough space to implement BSEC library. 

    Thank you. 

    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