<?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>Using Bosch BSEC lib throws stack overflow on Asset Tracker</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65622/using-bosch-bsec-lib-throws-stack-overflow-on-asset-tracker</link><description>I tried to use the Bosch BSEC library for the Asset Tracker application for nRF9160. 
 It seems that the Asset Tracker was build for BSEC 1.4.7.4 which is unfortunately no more available on Bosh website so I upgraded the project to use BSEC 1.4.8.0 but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Sep 2020 10:59:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65622/using-bosch-bsec-lib-throws-stack-overflow-on-asset-tracker" /><item><title>RE: Using Bosch BSEC lib throws stack overflow on Asset Tracker</title><link>https://devzone.nordicsemi.com/thread/268714?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 10:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77e92e63-8c79-4fe5-83a2-f93829e84acd</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;A PR to add support for BSEC v1.4.8.0 has been opened: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/2878"&gt;https://github.com/nrfconnect/sdk-nrf/pull/2878&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Bosch BSEC lib throws stack overflow on Asset Tracker</title><link>https://devzone.nordicsemi.com/thread/268659?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 08:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7b547a0-c93f-4793-b27f-5e6f053677f0</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;We have been able to identify the thread that overflows.&lt;/p&gt;
&lt;p&gt;It is the cloud backend thread that overflows during sensor initialization. Increasing that thread size to 4096 (the only value tried so far) got the system running: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/c37956ae6b27b4486c315380f5d67e0a0443aa2c/subsys/net/lib/nrf_cloud/src/nrf_cloud.c#L605"&gt;https://github.com/nrfconnect/sdk-nrf/blob/c37956ae6b27b4486c315380f5d67e0a0443aa2c/subsys/net/lib/nrf_cloud/src/nrf_cloud.c#L605&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Bosch BSEC lib throws stack overflow on Asset Tracker</title><link>https://devzone.nordicsemi.com/thread/268375?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 18:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12f836f8-917b-4ed5-99da-2f1b9877e1dd</guid><dc:creator>DurandA</dc:creator><description>&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;In the meantime for other people encountering the same issue, an older version of the lib (1.4.7.4) can still be downloaded by editing the download URL from the confirmation email.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Bosch BSEC lib throws stack overflow on Asset Tracker</title><link>https://devzone.nordicsemi.com/thread/268362?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 15:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8373a1db-9610-4cc4-abd8-31e4a2bec606</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The stack size I thought it would be, especially after you ruled out the application workqueue and main thread, was for the bsec_thread, defined in asset_tracker/src/env_sensors/bsec.c:69.&lt;/p&gt;
&lt;p&gt;However, that did not work either.&lt;/p&gt;
&lt;p&gt;I tried to debug a bit further, but that did not lead any way.&lt;/p&gt;
&lt;p&gt;I have informed our developers, so hopefully it will be fixed soon.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>