<?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>Build asset_tracker_v2 from source error: ADXL362_RANGE_MAX_M_S2 undeclared here (not in a function)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78556/build-asset_tracker_v2-from-source-error-adxl362_range_max_m_s2-undeclared-here-not-in-a-function</link><description>Hi there, 
 I&amp;#39;m trying to build the asset_tracker_v2 example application from source and receiving this error: 
 
 Could you tell me how to resolve this error please? 
 Also, an explanation as to why this is happening would be an added bonus as I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Nov 2023 09:32:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78556/build-asset_tracker_v2-from-source-error-adxl362_range_max_m_s2-undeclared-here-not-in-a-function" /><item><title>RE: Build asset_tracker_v2 from source error: ADXL362_RANGE_MAX_M_S2 undeclared here (not in a function)</title><link>https://devzone.nordicsemi.com/thread/457778?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 09:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f5f52a0-fcfc-47b5-9952-2f27f818ae6a</guid><dc:creator>Ivan Popov</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Weirdly, I&amp;#39;m building for Thingy:91 (&lt;span&gt;thingy91_nrf9160ns target with SDK and toolchain at version 2.5.0) and &lt;strong&gt;the build error disappears only when I move the property&lt;/strong&gt; (the same goes for the timeout&amp;#39;s property CONFIG_ADXL362_TIMEOUT_MAX_S) from the overlay config file &lt;strong&gt;to the prj.conf&lt;/strong&gt;. At this point I&amp;#39;m wondering why would I need the overlay config file at all.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ivan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build asset_tracker_v2 from source error: ADXL362_RANGE_MAX_M_S2 undeclared here (not in a function)</title><link>https://devzone.nordicsemi.com/thread/324927?ContentTypeID=1</link><pubDate>Sat, 14 Aug 2021 10:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ab4945d-a009-476e-ad84-cef78011b374</guid><dc:creator>daz</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Thanks for replying, your response helped me resolve this issue as a small change to the build process meant that the&amp;nbsp;&lt;span&gt;CONFIG_ADXL362_ACCEL_RANGE_2G was not being set.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Daz&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build asset_tracker_v2 from source error: ADXL362_RANGE_MAX_M_S2 undeclared here (not in a function)</title><link>https://devzone.nordicsemi.com/thread/324827?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 11:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fff839f8-9076-4b3b-93cf-451de18d1644</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you building for thingy91_nrf9160ns? Are you building with any additional options enabled? Have you made any changes to the application?&lt;/p&gt;
&lt;p&gt;The application folder should contain a &amp;quot;boards&amp;quot; folder with a configuration file for thingy91_nrf9160ns. This configuration file should contain:&lt;br /&gt;CONFIG_ADXL362_ACCEL_RANGE_2G=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>