<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86587/cmake-script-for-add-eternal-libaray-bsec-to-test-bosch-sensor-raeding</link><description>hello, 
 i have downloaded ( BSEC ) library from https://www.bosch-sensortec.com/software-tools/software/bsec/ for read sensor data . now want to test the code by build and flashing it with VS code for thingy 91 borad. 
 CMamke file have 
 FILE(GLOB bsec_integration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Apr 2022 04:00:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86587/cmake-script-for-add-eternal-libaray-bsec-to-test-bosch-sensor-raeding" /><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/364345?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 04:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89a657bf-b604-47b5-bc0a-228be2700927</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;Thank you very much , finally build complete . you push me from hell to haven . Thanks again for valuable support&amp;nbsp; .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/364244?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 13:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9a48e16-ea20-4890-85f8-d50630e7d45d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry, I tried to change the name of the folder, but I forgot to update everything before I sent it to you. I changed my previous reply. The issue was in the CMakeLists.txt, line 13. Change it from:&lt;/p&gt;
&lt;p&gt;set(mylib_src_dir&amp;nbsp; &amp;nbsp;${CMAKE_CURRENT_SOURCE_DIR}/bsec)&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;set(mylib_src_dir&amp;nbsp; &amp;nbsp;${CMAKE_CURRENT_SOURCE_DIR}/bsec_lib)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/364223?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 12:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea43ad7-ada5-4683-86ee-df809bbe4b9a</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;thank you sir , i have done as you suggested&amp;nbsp; but i got this error. (in attached image )&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1650544472567v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please find the attached zip file , attached file is modified as you suggest .&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6685.bsec.rar"&gt;devzone.nordicsemi.com/.../6685.bsec.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;thank you very much for the valuable support&amp;nbsp; .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/364184?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 10:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3562686-82fa-4b4f-a282-cd9bb9646fe2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, so to add a &amp;quot;.a&amp;quot; library to an NCS project, you need to add the path to the library and it&amp;#39;s header files. One way to do it is like this:&lt;/p&gt;
&lt;p&gt;Create this folder structure by creating a new folder called bsec_lib next to your src folder (you can place it anywhere, but I will use this location for demonstration).&lt;/p&gt;
&lt;p&gt;inside the bsec folder, create two folders. One called &amp;quot;inc&amp;quot; and one called &amp;quot;lib&amp;quot;.&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;the library folder that you downloaded externally, copy the&amp;nbsp;libalgobsec.a file from&amp;nbsp;BSEC_1.4.8.0_Generic_Release_updated_v3\algo\normal_version\bin\gcc\Cortex_M4\&lt;span&gt;libalgobsec.a into your new &amp;quot;lib&amp;quot; folder, and copy the two .h files from the same folder into your &amp;quot;inc&amp;quot; folder.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now go to your prj.conf file and remove most of your configurations. All you need are these (in order to compile, you may need more later):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NEWLIB_LIBC=y
CONFIG_SENSOR=y
CONFIG_BME680=y
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then open your CMakeLists.txt file to add your library. I did it like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)
target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/bme680.c)
target_sources(app PRIVATE src/bsec_integration.c)
target_sources(app PRIVATE src/bsec_serialized_configurations_iaq.c)
zephyr_library_include_directories(src/)

add_library(my_library STATIC IMPORTED GLOBAL)

set(mylib_src_dir   ${CMAKE_CURRENT_SOURCE_DIR}/bsec_lib)

set(MYLIB_LIB_DIR     ${mylib_src_dir}/lib)
set(MYLIB_INCLUDE_DIR ${mylib_src_dir}/inc)

set_target_properties(my_library PROPERTIES IMPORTED_LOCATION ${MYLIB_LIB_DIR}/libalgobsec.a)
set_target_properties(my_library PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${MYLIB_INCLUDE_DIR})

target_link_libraries(app PUBLIC my_library)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And then it compiled without any errors.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/364027?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 16:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12a19930-455c-493c-906f-45ab5942fed9</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;than you sir for prompt reply , As I already explained i con&amp;#39;t create same error , I have shared all file i am working on .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;my goal is clear i want to build my project file as share as zip , i am ready to do modification in all file as you want but i don&amp;#39;t want to change main.c file .&lt;/p&gt;
&lt;p&gt;my question is same&amp;nbsp;&lt;/p&gt;
&lt;h1 class="name" id="mcetoc_1g13tn2o80"&gt;&amp;quot;CMake script for add eternal libaray ( BSEC ) to test Bosch sensor raeding?&amp;quot;&lt;/h1&gt;
&lt;p&gt;i already shared BSEC file Library download link and downloaded zip file as well .&lt;/p&gt;
&lt;p&gt;you can ignore all file except main.c file .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Bme860 and adxl362 both sensor are supported by nordic ,&lt;/p&gt;
&lt;p&gt;if you resolve my one problem rest problem resolve automatically .&lt;/p&gt;
&lt;p&gt;2. i learn how to add any header file for any project , but this is not sufficient for achieve my goal ,if you have download&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bsec_5F00_1_2D00_4_2D00_8_2D00_0_5F00_generic_5F00_release_5F00_updated_5F00_v3.zip"&gt;bsec_1-4-8-0_generic_release_updated_v3.zip&lt;/a&gt;&lt;span&gt;&amp;nbsp; file as i share in previous post you can see there was&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a folder &amp;quot;config&amp;quot;&amp;nbsp; which contain c file and header files , i don&amp;#39;t know how to provide path to tis folder&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. i want to make a project file by which i can compile main.c file (as shared in zip name&amp;quot;bsec&amp;quot;).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363857?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 10:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f275e942-2779-4b1a-9c05-aecac27d93a6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok,&lt;/p&gt;
&lt;p&gt;Can you please upload a project that gives the same error that you said you had initially? The one where it said this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bme680_bsec_update_subscription&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:140: undefined reference to `bsec_update_subscription&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bme680_bsec_process_data&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:417: undefined reference to `bsec_do_steps&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bsec_iot_init&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:186: undefined reference to `bsec_init&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:207: undefined reference to `bsec_set_state&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:196: undefined reference to `bsec_set_configuration&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bsec_iot_loop&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:539: undefined reference to `bsec_get_state&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:521: undefined reference to `bsec_sensor_control&amp;#39;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363831?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 09:32:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0590a083-f204-47cf-b146-b93aa41ae2e3</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;yes Sir, this file is same and i am getting same error.&lt;/p&gt;
&lt;p&gt;That time i have no solution so i using hit and trial method so , error keep changing with my effort .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t make any changes in rest files , i changed only CMake file script .I you can modify it , my desire is same as in my first post .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i also shared CMake file in my old post you can compare it with ZIP i make several changes in only in CMake file.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363811?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 09:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14d2e12a-a3ae-4f2e-9aa7-7b8bc8f33bf4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;When I try to build your application, it says:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1650445047670v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Do you also get this if you unzip and try to compile the project that you sent? Did you send the correct project?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you send the project that you used to get the error that you mentioned below?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363572?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 12:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b3b1685-9834-4383-9ef3-d52da5cc5888</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bsec.rar"&gt;devzone.nordicsemi.com/.../bsec.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;thank you sir ,&amp;nbsp; As I already explain about my goal and approach .this file is modified by me for test bosc sensor .&lt;/p&gt;
&lt;p&gt;and file attached below is official sample code from bosch&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bsec_5F00_1_2D00_4_2D00_8_2D00_0_5F00_generic_5F00_release_5F00_updated_5F00_v3.zip"&gt;devzone.nordicsemi.com/.../bsec_5F00_1_2D00_4_2D00_8_2D00_0_5F00_generic_5F00_release_5F00_updated_5F00_v3.zip&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363563?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 12:09:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32b6e70e-5bc0-4947-a7ec-3b333418e1ca</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What does it say when you try to upload it? You can also try to use the button insert -&amp;gt; &amp;quot;image/video/file&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1650370102214v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And then click the text that says &amp;quot;upload&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1650370134492v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363535?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 10:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b57cc2b5-a6ab-4997-835d-8cd7f7786608</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;Sir , i tried but not able to post zip file ,can you suggest another way for share file.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363524?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 10:43:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fca6e1b4-22cf-4af9-a4b6-5ce29bba618e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You should be able to just &amp;quot;drag and drop&amp;quot; the zip folder into the text window where you are typing. If you get an error, try to delete the build folder before you zip the folder, to reduce the size (significantly).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363516?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 10:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15a7c166-2d23-48ca-a415-d6cff78a7ee7</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;sir, try to &lt;span&gt;upload zip file but , i don&amp;#39;t know how to upload zip file on chat? please help&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363421?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 06:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:120c8a06-9215-4d7c-aad7-de4bb61f3dc8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. We have had a public Holiday in Norway. Can you please zip the project that you are trying to compile and upload it here, then I can navigate it and see if I can find out what&amp;#39;s missing?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363168?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2022 11:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2307639a-6d9d-47ca-83e0-9a3bc9ae68bc</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;nordic support link for BSEC&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker_v2/doc/sensor_module.html?highlight=bsec#config-external-sensors-bme680-bsec-path"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker_v2/doc/sensor_module.html?highlight=bsec#config-external-sensors-bme680-bsec-path&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;i have followed the link but i think i miss some some step or miss understating , so need your help to build it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363166?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2022 11:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381837f8-f301-44e8-b942-a2c434b6af0f</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (C) 2017 Robert Bosch. All Rights Reserved. 
 *
 * Disclaimer
 *
 * Common:
 * Bosch Sensortec products are developed for the consumer goods industry. They may only be used
 * within the parameters of the respective valid product data sheet.  Bosch Sensortec products are
 * provided with the express understanding that there is no warranty of fitness for a particular purpose.
 * They are not fit for use in life-sustaining, safety or security sensitive systems or any system or device
 * that may lead to bodily harm or property damage if the system or device malfunctions. In addition,
 * Bosch Sensortec products are not fit for use in products which interact with motor vehicle systems.
 * The resale and/or use of products are at the purchasers own risk and his own responsibility. The
 * examination of fitness for the intended use is the sole responsibility of the Purchaser.
 *
 * The purchaser shall indemnify Bosch Sensortec from all third party claims, including any claims for
 * incidental, or consequential damages, arising from any product use not covered by the parameters of
 * the respective valid product data sheet or not approved by Bosch Sensortec and reimburse Bosch
 * Sensortec for all costs in connection with such claims.
 *
 * The purchaser must monitor the market for the purchased products, particularly with regard to
 * product safety and inform Bosch Sensortec without delay of all security relevant incidents.
 *
 * Engineering Samples are marked with an asterisk (*) or (e). Samples may vary from the valid
 * technical specifications of the product series. They are therefore not intended or fit for resale to third
 * parties or for use in end products. Their sole purpose is internal client testing. The testing of an
 * engineering sample may in no way replace the testing of a product series. Bosch Sensortec
 * assumes no liability for the use of engineering samples. By accepting the engineering samples, the
 * Purchaser agrees to indemnify Bosch Sensortec from all claims arising from the use of engineering
 * samples.
 *
 * Special:
 * This software module (hereinafter called &amp;quot;Software&amp;quot;) and any information on application-sheets
 * (hereinafter called &amp;quot;Information&amp;quot;) is provided free of charge for the sole purpose to support your
 * application work. The Software and Information is subject to the following terms and conditions:
 *
 * The Software is specifically designed for the exclusive use for Bosch Sensortec products by
 * personnel who have special experience and training. Do not use this Software if you do not have the
 * proper experience or training.
 *
 * This Software package is provided `` as is `` and without any expressed or implied warranties,
 * including without limitation, the implied warranties of merchantability and fitness for a particular
 * purpose.
 *
 * Bosch Sensortec and their representatives and agents deny any liability for the functional impairment
 * of this Software in terms of fitness, performance and safety. Bosch Sensortec and their
 * representatives and agents shall not be liable for any direct or indirect damages or injury, except as
 * otherwise stipulated in mandatory applicable law.
 *
 * The Information provided is believed to be accurate and reliable. Bosch Sensortec assumes no
 * responsibility for the consequences of use of such Information nor for any infringement of patents or
 * other rights of third parties which may result from its use. No license is granted by implication or
 * otherwise under any patent or patent rights of Bosch. Specifications mentioned in the Information are
 * subject to change without notice.
 *
 * It is not allowed to deliver the source code of the Software to any third party without permission of
 * Bosch Sensortec.
 *
 */

/*!
 * @file bsec_iot_example.c
 *
 * @brief
 * Example for using of BSEC library in a fixed configuration with the BME680 sensor.
 * This works by running an endless loop in the bsec_iot_loop() function.
 */

/*!
 * @addtogroup bsec_examples BSEC Examples
 * @brief BSEC usage examples
 * @{*/

/**********************************************************************************************************************/
/* header files */
/**********************************************************************************************************************/

#include &amp;quot;bsec_integration.h&amp;quot;
#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;sys/printk.h&amp;gt;

/**********************************************************************************************************************/
/* functions */
/**********************************************************************************************************************/

/*!
 * @brief           Write operation in either I2C or SPI
 *
 * param[in]        dev_addr        I2C or SPI device address
 * param[in]        reg_addr        register address
 * param[in]        reg_data_ptr    pointer to the data to be written
 * param[in]        data_len        number of bytes to be written
 *
 * @return          result of the bus communication function
 */
int8_t bus_write(uint8_t dev_addr, uint8_t reg_addr, uint8_t *reg_data_ptr, uint16_t data_len)
{
    // ...
    // Please insert system specific function to write to the bus where BME680 is connected
    // ...
    return 0;
}

/*!
 * @brief           Read operation in either I2C or SPI
 *
 * param[in]        dev_addr        I2C or SPI device address
 * param[in]        reg_addr        register address
 * param[out]       reg_data_ptr    pointer to the memory to be used to store the read data
 * param[in]        data_len        number of bytes to be read
 *
 * @return          result of the bus communication function
 */
int8_t bus_read(uint8_t dev_addr, uint8_t reg_addr, uint8_t *reg_data_ptr, uint16_t data_len)
{
    // ...
    // Please insert system specific function to read from bus where BME680 is connected
    // ...
    return 0;
}

/*!
 * @brief           System specific implementation of sleep function
 *
 * @param[in]       t_ms    time in milliseconds
 *
 * @return          none
 */
void sleep(uint32_t t_ms)
{
    // ...
    // Please insert system specific function sleep or delay for t_ms milliseconds
    // ...
}

/*!
 * @brief           Capture the system time in microseconds
 *
 * @return          system_current_time    current system timestamp in microseconds
 */
int64_t get_timestamp_us()
{
    int64_t system_current_time = 0;
    // ...
    // Please insert system specific function to retrieve a timestamp (in microseconds)
    // ...
    return system_current_time;
}

/*!
 * @brief           Handling of the ready outputs
 *
 * @param[in]       timestamp       time in nanoseconds
 * @param[in]       iaq             IAQ signal
 * @param[in]       iaq_accuracy    accuracy of IAQ signal
 * @param[in]       temperature     temperature signal
 * @param[in]       humidity        humidity signal
 * @param[in]       pressure        pressure signal
 * @param[in]       raw_temperature raw temperature signal
 * @param[in]       raw_humidity    raw humidity signal
 * @param[in]       gas             raw gas sensor signal
 * @param[in]       bsec_status     value returned by the bsec_do_steps() call
 *
 * @return          none
 */
void output_ready(int64_t timestamp, float iaq, uint8_t iaq_accuracy, float temperature, float humidity,
     float pressure, float raw_temperature, float raw_humidity, float gas, bsec_library_return_t bsec_status,
     float static_iaq, float co2_equivalent, float breath_voc_equivalent)
{
    // ...
    // Please insert system specific code to further process or display the BSEC outputs
    // ...
}

/*!
 * @brief           Load previous library state from non-volatile memory
 *
 * @param[in,out]   state_buffer    buffer to hold the loaded state string
 * @param[in]       n_buffer        size of the allocated state buffer
 *
 * @return          number of bytes copied to state_buffer
 */
uint32_t state_load(uint8_t *state_buffer, uint32_t n_buffer)
{
    // ...
    // Load a previous library state from non-volatile memory, if available.
    //
    // Return zero if loading was unsuccessful or no state was available, 
    // otherwise return length of loaded state string.
    // ...
    return 0;
}

/*!
 * @brief           Save library state to non-volatile memory
 *
 * @param[in]       state_buffer    buffer holding the state to be stored
 * @param[in]       length          length of the state string to be stored
 *
 * @return          none
 */
void state_save(const uint8_t *state_buffer, uint32_t length)
{
    // ...
    // Save the string some form of non-volatile memory, if possible.
    // ...
}
 
/*!
 * @brief           Load library config from non-volatile memory
 *
 * @param[in,out]   config_buffer    buffer to hold the loaded state string
 * @param[in]       n_buffer        size of the allocated state buffer
 *
 * @return          number of bytes copied to config_buffer
 */
uint32_t config_load(uint8_t *config_buffer, uint32_t n_buffer)
{
    // ...
    // Load a library config from non-volatile memory, if available.
    //
    // Return zero if loading was unsuccessful or no config was available, 
    // otherwise return length of loaded config string.
    // ...
    return 0;
}

/*!
 * @brief       Main function which configures BSEC library and then reads and processes the data from sensor based
 *              on timer ticks
 *
 * @return      result of the processing
 */
int main()
{
    return_values_init ret;
    printk(&amp;quot;welcome! %s\n&amp;quot;, CONFIG_BOARD);
    /* Call to the function which initializes the BSEC library 
     * Switch on low-power mode and provide no temperature offset */
    ret = bsec_iot_init(BSEC_SAMPLE_RATE_LP, 0.0f, bus_write, bus_read, sleep, state_load, config_load);
    if (ret.bme680_status)
    {
        /* Could not intialize BME680 */
        return (int)ret.bme680_status;
    }
    else if (ret.bsec_status)
    {
        /* Could not intialize BSEC library */
        return (int)ret.bsec_status;
    }
    
    /* Call to endless loop function which reads and processes data based on sensor settings */
    /* State is saved every 10.000 samples, which means every 10.000 * 3 secs = 500 minutes  */
    bsec_iot_loop(sleep, get_timestamp_us, output_ready, state_save, 10000);
    
    return 0;
}

/*! @}*/

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Main code &amp;#39;&lt;/p&gt;
&lt;p&gt;Link for download BSEC library and sample code&amp;nbsp;&lt;a href="https://www.bosch-sensortec.com/software-tools/software/bsec/"&gt;https://www.bosch-sensortec.com/software-tools/software/bsec/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;CMake code&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)
set(CONFIG_EXTERNAL_SENSORS_BME680_BSEC_PATH nrf\v1.9.1\nrf\ext\BSEC_1.4.8.0_Generic_Release_updated_v3)
target_sources(app PRIVATE src/main.c)
&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/363091?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2022 03:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22df228b-477d-4568-83ab-6812c63ef1f8</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;sir i&amp;nbsp; have already share the link for download BSEC library . want to compile example file for testing bosch sensor.&amp;nbsp;&amp;nbsp;&lt;a href="https://www.bosch-sensortec.com/software-tools/software/bsec/"&gt;https://www.bosch-sensortec.com/software-tools/software/bsec/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/362959?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 07:19:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2a047ac-0f73-4dfa-a41f-ba4a0ebf30ce</guid><dc:creator>Edvin</dc:creator><description>[quote user="Mohit Nama"]but sample code have dependency of Configuration file[/quote]
&lt;p&gt;What dependencies is that? Can you show me something, like a screenshot or a file?&lt;/p&gt;
&lt;p&gt;I am trying to help you with this, but I don&amp;#39;t have your project or your files, and hence, I don&amp;#39;t know how to reproduce the issues that you are seeing, and therefore, I don&amp;#39;t know the solution yet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/362860?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 12:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bed6d084-7d96-424a-9198-9963d6c0b430</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;sir , i have set the path of header file , but sample code have dependency of Configuration file ,I want&amp;nbsp;set path for configuration folder&amp;nbsp; , can you please suggest the way. or&amp;nbsp;is any person of your team how can can help me to do this&amp;nbsp; ???&lt;/p&gt;
&lt;p&gt;nordic&amp;nbsp; officially support Bosch Sensor data that&amp;#39;s why i am trying&amp;nbsp; nordic thingy91&amp;nbsp; board . if there was no soliton available then why nordic says about support.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/362277?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 09:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b14a5fe-6557-41af-91f4-7f792a1c7e1a</guid><dc:creator>Edvin</dc:creator><description>[quote user="Mohit Nama"]i on this page , how to set configuration for BSEC is also available , but i am enable to understand . please go through to the link. i need your support to understand it.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;I think you should focus on getting the project to compile before you start tweaking configurations.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t have access to the bsec files.&amp;nbsp;&lt;/p&gt;
[quote user="Edvin Holmseth"]&lt;p&gt;&lt;span&gt;These all look quite similar, so solving one will either solve all, or at least show how to solve all, so let us look at the first one, on line 140 in bsec_integration.c.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You are using a parameter/function called bsec_update_subscription. What is this? Is it a function or a parameter? And where is it defined? I see that you include&amp;nbsp;bsec_integration.h from main.c. Do you include&amp;nbsp;bsec_integration.h from&amp;nbsp;bsec_integration.c as well?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Can you please check this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/362049?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 10:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c3c0b3-162a-48aa-97ed-4e68d10ff81d</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)
target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/bsec_integration.c)
target_sources(app PRIVATE src/bme680.c)
zephyr_library_include_directories(src)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;by adding last line problem not solved. This link is available on nordic official , by this you get more details about&amp;nbsp;&amp;nbsp;&lt;span&gt;bsec_integration.h and bsec_integration.c.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;i on this page , how to set configuration for BSEC is also available , but i am enable to understand . please go through to the link. i need your support to understand it.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker_v2/doc/sensor_module.html?highlight=bsec#config-external-sensors-bme680-bsec-path"&gt;developer.nordicsemi.com/.../sensor_module.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/362037?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 10:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a90906-a420-415f-a84f-76db17aeafd2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;These are the lines from the compiler that is telling you what you need to look into:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bme680_bsec_update_subscription&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:140: undefined reference to `bsec_update_subscription&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bme680_bsec_process_data&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:417: undefined reference to `bsec_do_steps&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bsec_iot_init&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:186: undefined reference to `bsec_init&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:207: undefined reference to `bsec_set_state&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:196: undefined reference to `bsec_set_configuration&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bsec_iot_loop&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:539: undefined reference to `bsec_get_state&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:521: undefined reference to `bsec_sensor_control&amp;#39;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not familiar with the bosch sensor libraries, so I don&amp;#39;t know these files in and out, but you should be able to figure this one out.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In line 140 in bsec_integration.c you call bsec_update_subscription, but the compiler can&amp;#39;t see where this is declared.&lt;/p&gt;
&lt;p&gt;The same applies to:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bsec_integration.c line 417 with bsec_do_steps&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bsec_integration.c line 186 with&amp;nbsp;bsec_init&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bsec_integration.c line 207 with bsec_set_state&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bsec_integration.c line 196 with bsec_set_configuration&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bsec_integration.c line 539 with bsec_get_state&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bsec_integration.c line 521 with bsec_sensor_control&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;These all look quite similar, so solving one will either solve all, or at least show how to solve all, so let us look at the first one, on line 140 in bsec_integration.c.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You are using a parameter/function called bsec_update_subscription. What is this? Is it a function or a parameter? And where is it defined? I see that you include&amp;nbsp;bsec_integration.h from main.c. Do you include&amp;nbsp;bsec_integration.h from&amp;nbsp;bsec_integration.c as well?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It may also be that the compiler is not looking in the src folder for header files (not sure if this is set by default). Try adding this last line to your CMakeLists.txt file:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)
target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/bsec_integration.c)
target_sources(app PRIVATE src/bme680.c)
zephyr_library_include_directories(src)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, I noticed that you have some spaces (whitespace) after the lines &amp;quot;target_sources(app PRIVATE src/main.c)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try removing these. These files are a bit sensitive. The same applies to your prj.conf file if you are going to do changes there in the future.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I am going to be able to tell more exactly why it is failing, then I would need to see more from your project. At least bsec_integration.h and bsec_integration.c.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/361647?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 06:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:363f02e9-8db5-458b-9aa9-b8c2bf5197d1</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;My main.c code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;sys/printk.h&amp;gt;

#include &amp;quot;bsec_integration.h&amp;quot;

/**********************************************************************************************************************/
/* functions */
/**********************************************************************************************************************/

/*!
 * @brief           Write operation in either I2C or SPI
 *
 * param[in]        dev_addr        I2C or SPI device address
 * param[in]        reg_addr        register address
 * param[in]        reg_data_ptr    pointer to the data to be written
 * param[in]        data_len        number of bytes to be written
 *
 * @return          result of the bus communication function
 */
int8_t bus_write(uint8_t dev_addr, uint8_t reg_addr, uint8_t *reg_data_ptr, uint16_t data_len)
{
    // ...
    // Please insert system specific function to write to the bus where BME680 is connected
    // ...
    return 0;
}

/*!
 * @brief           Read operation in either I2C or SPI
 *
 * param[in]        dev_addr        I2C or SPI device address
 * param[in]        reg_addr        register address
 * param[out]       reg_data_ptr    pointer to the memory to be used to store the read data
 * param[in]        data_len        number of bytes to be read
 *
 * @return          result of the bus communication function
 */
int8_t bus_read(uint8_t dev_addr, uint8_t reg_addr, uint8_t *reg_data_ptr, uint16_t data_len)
{
    // ...
    // Please insert system specific function to read from bus where BME680 is connected
    // ...
    return 0;
}

/*!
 * @brief           System specific implementation of sleep function
 *
 * @param[in]       t_ms    time in milliseconds
 *
 * @return          none
 */
void sleep(uint32_t t_ms)
{
    // ...
    // Please insert system specific function sleep or delay for t_ms milliseconds
    // ...
}

/*!
 * @brief           Capture the system time in microseconds
 *
 * @return          system_current_time    current system timestamp in microseconds
 */
int64_t get_timestamp_us()
{
    int64_t system_current_time = 0;
    // ...
    // Please insert system specific function to retrieve a timestamp (in microseconds)
    // ...
    return system_current_time;
}

/*!
 * @brief           Handling of the ready outputs
 *
 * @param[in]       timestamp       time in nanoseconds
 * @param[in]       iaq             IAQ signal
 * @param[in]       iaq_accuracy    accuracy of IAQ signal
 * @param[in]       temperature     temperature signal
 * @param[in]       humidity        humidity signal
 * @param[in]       pressure        pressure signal
 * @param[in]       raw_temperature raw temperature signal
 * @param[in]       raw_humidity    raw humidity signal
 * @param[in]       gas             raw gas sensor signal
 * @param[in]       bsec_status     value returned by the bsec_do_steps() call
 *
 * @return          none
 */
void output_ready(int64_t timestamp, float iaq, uint8_t iaq_accuracy, float temperature, float humidity,
     float pressure, float raw_temperature, float raw_humidity, float gas, bsec_library_return_t bsec_status,
     float static_iaq, float co2_equivalent, float breath_voc_equivalent)
{
    // ...
    // Please insert system specific code to further process or display the BSEC outputs
    // ...
}

/*!
 * @brief           Load previous library state from non-volatile memory
 *
 * @param[in,out]   state_buffer    buffer to hold the loaded state string
 * @param[in]       n_buffer        size of the allocated state buffer
 *
 * @return          number of bytes copied to state_buffer
 */
uint32_t state_load(uint8_t *state_buffer, uint32_t n_buffer)
{
    // ...
    // Load a previous library state from non-volatile memory, if available.
    //
    // Return zero if loading was unsuccessful or no state was available, 
    // otherwise return length of loaded state string.
    // ...
    return 0;
}

/*!
 * @brief           Save library state to non-volatile memory
 *
 * @param[in]       state_buffer    buffer holding the state to be stored
 * @param[in]       length          length of the state string to be stored
 *
 * @return          none
 */
void state_save(const uint8_t *state_buffer, uint32_t length)
{
    // ...
    // Save the string some form of non-volatile memory, if possible.
    // ...
}
 
/*!
 * @brief           Load library config from non-volatile memory
 *
 * @param[in,out]   config_buffer    buffer to hold the loaded state string
 * @param[in]       n_buffer        size of the allocated state buffer
 *
 * @return          number of bytes copied to config_buffer
 */
uint32_t config_load(uint8_t *config_buffer, uint32_t n_buffer)
{
    // ...
    // Load a library config from non-volatile memory, if available.
    //
    // Return zero if loading was unsuccessful or no config was available, 
    // otherwise return length of loaded config string.
    // ...
    return 0;
}

/*!
 * @brief       Main function which configures BSEC library and then reads and processes the data from sensor based
 *              on timer ticks
 *
 * @return      result of the processing
 */
int main()
{
    k_msleep(1000);
    printk(&amp;quot;programm statr \n\r&amp;quot;);
    return_values_init ret;
     printk(&amp;quot;initializes the BSEC library \n\r&amp;quot;);
    /* Call to the function which initializes the BSEC library 
     * Switch on low-power mode and provide no temperature offset */
    ret = bsec_iot_init(BSEC_SAMPLE_RATE_LP, 0.0f, bus_write, bus_read, sleep, state_load, config_load);
    if (ret.bme680_status)
    {
        /* Could not intialize BME680 */
        printk(&amp;quot;Could not intialize BME680 \n\r&amp;quot;);
        return (int)ret.bme680_status;
  
    }
    else if (ret.bsec_status)
    {
        /* Could not intialize BSEC library */
       printk(&amp;quot;Could not intialize BSEC library&amp;quot;);
        return (int)ret.bsec_status;
    }
    
    /* Call to endless loop function which reads and processes data based on sensor settings */
    /* State is saved every 10.000 samples, which means every 10.000 * 3 secs = 500 minutes  */
    bsec_iot_loop(sleep, get_timestamp_us, output_ready, state_save, 10000);
    
    return 0;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/361645?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 06:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6da7da49-b578-4df2-9ae9-947a3019691b</guid><dc:creator>Mohit Nama</dc:creator><description>&lt;p&gt;Sir now i explain&amp;nbsp;situation step by step. in odder to interface with BSE i have taken following step . Please correct me where i was wrong .&lt;/p&gt;
&lt;p&gt;Step 1:&amp;nbsp; &amp;nbsp;Download library from&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.bosch-sensortec.com/software-tools/software/bsec/"&gt;https://www.bosch-sensortec.com/software-tools/software/bsec/&lt;/a&gt;&amp;nbsp;offical ink on nrodic site.&lt;/p&gt;
&lt;p&gt;Step 2: after extracting the file . i have created a folder in name&amp;quot; bsec&amp;quot;&amp;nbsp; you can see the path in image&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649137563761v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Step3: copy file from bsec_ito_example (1LHS) to scr folder of my &amp;quot;bsec&amp;quot; fle(2RHS)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ( 1 )&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (2)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649137849858v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Step4: change name from of&amp;nbsp; &amp;quot;bse_ito_example &amp;quot; which contain the main code (1)&lt;/p&gt;
&lt;p&gt;copy and rename in my application folder(2)&amp;nbsp; &amp;nbsp; &amp;nbsp;(i add zephyr library for print_k in main file , remain code is same )&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (1)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (2)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649137993023v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Step5: As i learn&amp;nbsp;&amp;nbsp;from Nordic academy &amp;quot;ho to add external header file &amp;quot;&amp;nbsp; and take steps as suggested .&lt;/p&gt;
&lt;p&gt;My CMake file look like&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)
target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/bsec_integration.c)  
target_sources(app PRIVATE src/bme680.c)  
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Step6: As usual is add new application in VS code on making Build directory by selecting Thingy91_nrf9160&lt;/p&gt;
&lt;p&gt;Terminal&amp;nbsp; shows ERROR&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/Users/mohit/nrf/v1.9.1/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec
-- Zephyr version: 2.7.99 (C:/Users/mohit/nrf/v1.9.1/zephyr), build: v2.7.99-ncs1-1
-- Found Python3: C:/Users/mohit/nrf/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Found west (found suitable version &amp;quot;0.12.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: thingy91_nrf9160
-- Cache files will be written to: C:/Users/mohit/nrf/v1.9.1/zephyr/.cache
-- Found dtc: C:/Users/mohit/nrf/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: gnuarmemb (c:/Users/mohit/nrf/v1.9.1/toolchain/opt)
-- Found BOARD.dts: C:/Users/mohit/nrf/v1.9.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160.dts
-- Generated zephyr.dts: C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr/dts.cmake
Parsing C:/Users/mohit/nrf/v1.9.1/zephyr/Kconfig
Loaded configuration &amp;#39;C:/Users/mohit/nrf/v1.9.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_defconfig&amp;#39;
Merged configuration &amp;#39;C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/prj.conf&amp;#39;
Merged configuration &amp;#39;C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/mohit/nrf/v1.9.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
-- Found partition manager static configuration: C:/Users/mohit/nrf/v1.9.1/nrf/boards/arm/thingy91_nrf9160/pm_static.yml
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build
-- west build: building application
[1/174] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[2/174] Generating include/generated/driver-validation.h
[3/174] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[4/174] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/174] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[6/174] Generating include/generated/offsets.h
[7/174] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[8/174] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[9/174] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[10/174] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[11/174] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[12/174] Generating linker_zephyr_pre0.cmd
[13/174] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[14/174] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[15/174] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[16/174] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[17/174] Linking C static library zephyr\arch\common\libisr_tables.a
[18/174] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[19/174] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[20/174] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[21/174] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[22/174] Linking C static library zephyr\arch\common\libarch__common.a
[23/174] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[24/174] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[25/174] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[26/174] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[27/174] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[28/174] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[29/174] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[30/174] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[31/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[32/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[33/174] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj
[34/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[35/174] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[36/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[37/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[38/174] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[39/174] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
[40/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[41/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[42/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[43/174] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
[44/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[45/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[46/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
[47/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[48/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[49/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[50/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[51/174] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[52/174] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[53/174] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
[54/174] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
[55/174] Building C object zephyr/boards/boards/arm/thingy91_nrf9160/CMakeFiles/..__nrf__boards__arm__thingy91_nrf9160.dir/nrf52840_reset.c.obj
[56/174] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
[57/174] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
[58/174] Building C object zephyr/boards/boards/arm/thingy91_nrf9160/CMakeFiles/..__nrf__boards__arm__thingy91_nrf9160.dir/board_secure.c.obj
[59/174] Linking C static library zephyr\lib\posix\liblib__posix.a
[60/174] Building C object CMakeFiles/app.dir/src/main.c.obj
[61/174] Building C object CMakeFiles/app.dir/src/bsec_integration.c.obj
../src/bsec_integration.c: In function &amp;#39;bsec_iot_init&amp;#39;:
c:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:163:27: warning: unused variable &amp;#39;bsec_status&amp;#39; [-Wunused-variable]
  163 |     bsec_library_return_t bsec_status = BSEC_OK;
      |                           ^~~~~~~~~~~
[62/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[63/174] Building C object CMakeFiles/app.dir/src/bme680.c.obj
[64/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[65/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[66/174] Linking C static library zephyr\boards\boards\arm\thingy91_nrf9160\lib..__nrf__boards__arm__thingy91_nrf9160.a
[67/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[68/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[69/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[70/174] Linking C static library app\libapp.a
[71/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[72/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[73/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[74/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[75/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[76/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[77/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[78/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[79/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[80/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[81/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[82/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[83/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[84/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[85/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[86/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[87/174] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[88/174] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[89/174] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[90/174] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/power.c.obj
[91/174] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/soc.c.obj
[92/174] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[93/174] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[94/174] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/constraint.c.obj
[95/174] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/debug/thread_info.c.obj
[96/174] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy/residency.c.obj
[97/174] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
[98/174] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[99/174] Building C object zephyr/CMakeFiles/zephyr.dir/C_/Users/mohit/nrf/v1.9.1/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[100/174] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[101/174] Building C object zephyr/CMakeFiles/zephyr.dir/C_/Users/mohit/nrf/v1.9.1/nrf/lib/adp536x/adp536x.c.obj
[102/174] Building C object zephyr/CMakeFiles/zephyr.dir/C_/Users/mohit/nrf/v1.9.1/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
[103/174] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[104/174] Generating linker_zephyr_pre1.cmd
[105/174] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[106/174] Linking C static library zephyr\libzephyr.a
[107/174] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
[108/174] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[109/174] Linking C static library zephyr\drivers\console\libdrivers__console.a
[110/174] Building C object zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_common.c.obj
[111/174] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[112/174] Building C object zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_nrfx_twim.c.obj
[113/174] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[114/174] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[115/174] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[116/174] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[117/174] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
[118/174] Linking C static library zephyr\drivers\i2c\libdrivers__i2c.a
[119/174] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
[120/174] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
[121/174] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[122/174] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/mohit/nrf/v1.9.1/modules/hal/nordic/nrfx/mdk/system_nrf9160.c.obj
[123/174] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[124/174] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/mohit/nrf/v1.9.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[125/174] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
[126/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[127/174] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
[128/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[129/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[130/174] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
[131/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[132/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[133/174] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/mohit/nrf/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_dppi.c.obj
[134/174] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/mohit/nrf/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[135/174] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/mohit/nrf/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_twi_twim.c.obj
[136/174] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/mohit/nrf/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
[137/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[138/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[139/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[140/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[141/174] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/mohit/nrf/v1.9.1/modules/hal/nordic/nrfx/drivers/src/nrfx_twim.c.obj
[142/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[143/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[144/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
[145/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[146/174] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
[147/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[148/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[149/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
[150/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
[151/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
[152/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
[153/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
[154/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[155/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[156/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[157/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
[158/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
[159/174] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[160/174] Linking C static library zephyr\kernel\libkernel.a
[161/174] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map 
cmd.exe /C &amp;quot;cd . &amp;amp;&amp;amp; C:\Users\mohit\nrf\v1.9.1\toolchain\opt\bin\arm-none-eabi-gcc.exe   zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf  -Wl,-T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=C:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a  zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/posix/liblib__posix.a  zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a  zephyr/boards/boards/arm/thingy91_nrf9160/lib..__nrf__boards__arm__thingy91_nrf9160.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/i2c/libdrivers__i2c.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -L&amp;quot;c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v8-m.main/nofp&amp;quot;  -LC:/Users/mohit/nrf/v1.9.1/Nordic_Acadmey/bsec/build/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  C:/Users/mohit/nrf/v1.9.1/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc310_platform_0.9.13.a  -no-pie  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn &amp;amp;&amp;amp; cmd.exe /C &amp;quot;cd /D C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\build\zephyr &amp;amp;&amp;amp; C:\Users\mohit\nrf\v1.9.1\toolchain\opt\bin\cmake.exe -E echo &amp;quot;&amp;quot;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bme680_bsec_update_subscription&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:140: undefined reference to `bsec_update_subscription&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bme680_bsec_process_data&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:417: undefined reference to `bsec_do_steps&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bsec_iot_init&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:186: undefined reference to `bsec_init&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:207: undefined reference to `bsec_set_state&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:196: undefined reference to `bsec_set_configuration&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(bsec_integration.c.obj): in function `bsec_iot_loop&amp;#39;:
C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:539: undefined reference to `bsec_get_state&amp;#39;
c:/users/mohit/nrf/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\src\bsec_integration.c:521: undefined reference to `bsec_sensor_control&amp;#39;
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;c:\Users\mohit\nrf\v1.9.1\toolchain\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\Users\mohit\nrf\v1.9.1\Nordic_Acadmey\bsec\build&amp;#39;
The terminal process terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CMake script for add eternal libaray ( BSEC )   to test  Bosch sensor raeding?</title><link>https://devzone.nordicsemi.com/thread/361545?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 13:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9477a072-0127-4aed-8b2a-89da4f2fec9c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, can you copy everything that is printed before &amp;quot;-- Configuring incomplete, errors occured!&amp;quot; It should say something about what failed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>