<?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>LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106583/log_dbg-causes-system-to-stop-working-properly</link><description>I am learning about Zephyr and currently I am experimenting with the accelerometer on the Nordic Thingy91 device. For programming, I use VSCode and NCS v2.5.0 
 My full source code: 
 
 
 
 And my proj.conf: 
 
 
 
 The code above works without any issues</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Dec 2023 09:56:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106583/log_dbg-causes-system-to-stop-working-properly" /><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461243?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 09:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9384be22-ef29-4285-b141-59b5531e61da</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;Now it is finally clear to me. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461225?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 08:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2784947a-955b-45cf-940d-21c503940bab</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="zazas321"]&lt;p&gt;Apologize for asking many silly questions, bare with me a few more moments!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the variables are stored in stack and I am trying to print them in the scope of the variable it should work without any issues since the variables are not cleared out of stack.&lt;/p&gt;[/quote]
&lt;p&gt;Consider this pseudo code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int *ptr;

void pin_interrupt_function()
{
    printk(&amp;quot;%d&amp;quot;, *ptr);
}

int some_function()
{
    int a = 5;
    ptr = &amp;amp;a;
    return 0;
}

int main()
{
    some_function();
    rest_of_setup();
    ...
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;a&amp;quot; is out of scope once the pin_interrupt_function is called, thus the variable ptr is pointing to is no longer valid.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I stated previously, is that in some cases, you will still see &amp;quot;5&amp;quot; being printed, as no other function has exceeded the previous stack usage,&amp;nbsp;ie. the value is not yet overwritten in RAM.&lt;/p&gt;
&lt;p&gt;But, the above scenario is still undefined behavior.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461100?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 14:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a42e1a5-fe39-4d82-8b73-cecfaa62120c</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;Apologize for asking many silly questions, bare with me a few more moments!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the variables are stored in stack and I am trying to print them in the scope of the variable it should work without any issues since the variables are not cleared out of stack.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you suggesting that whenever I use LOG, I should only use them with GLOBAL scope variables and never variables that are placed in stack? For example, if I do the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void my_function(){
	int a; //this is a variable that is created on the stack 
	a = 5;
	LOG_DBG(&amp;quot;Printing variable a = %i&amp;quot;,a);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Are you suggesting that the above is not correct since the variable is placed on the stack?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461068?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 13:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b391195-040d-4ade-99cf-8b99e4712a9b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No,&amp;nbsp;it worked&amp;nbsp;&lt;strong&gt;by chance&lt;/strong&gt; with printk. Once the variables are declared static, it also works with log.&lt;/p&gt;
&lt;p&gt;The issue is as described above. You must have the variables in question in global RAM, and not in the stack.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461067?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 13:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc537f9e-6e95-4812-a6b8-8c8f99a84b8f</guid><dc:creator>zazas321</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/106583/log_dbg-causes-system-to-stop-working-properly/461065"]It does not matter if you use LOG or printk[/quote]
&lt;p&gt;It does though because it works with printk and does not with LOG.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So can we consider that this is a bug in the&amp;nbsp;&lt;span&gt;&lt;strong&gt;sensor_trigger_set&lt;/strong&gt; function?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461065?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 13:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daa8b05b-0545-4dd9-b3b4-d0db54098907</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;It does not matter if you use LOG or printk. The problem is that the memory provided via function &amp;quot;sensor_trigger_set&amp;quot; was stacked auto-variable, ie. short-lived memory. The function assumes that memory given is global RAM, meaning; it must be global or static declared.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461061?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 13:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d05c5059-d738-4abd-aa67-f8f2efd80e20</guid><dc:creator>zazas321</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/106583/log_dbg-causes-system-to-stop-working-properly/461059"]When LOG subsys is enabled, it will use more stack depth, ie. more RAM when&amp;nbsp;a log-print&amp;nbsp;is called. Once a variable goes out-of-scope, it is not usually overwritten until something else in your system stacks more memory.[/quote]
&lt;p&gt;I cant fully understand what you mean by that. From what you said, I understood that LOG is not recommended for use and I should stick with printk as it is simply much more reliable and simple and it will help me avoid simillar problems in the future. However, in the devzone course it has been recommended to use LOG system to log the information but now after having this issue I am not too sure about that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461059?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 12:57:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dea28ab-4cc1-474a-a077-721956790c5f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;When LOG subsys is enabled, it will use more stack depth, ie. more RAM when&amp;nbsp;a log-print&amp;nbsp;is called. Once a variable goes out-of-scope, it is not usually overwritten until something else in your system stacks more memory.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461057?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 12:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c34a1d-9c6e-48f9-ab62-e2c2ba1c2180</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;Ok I understand but what does LOG prints have to do with it?. Why it works with printk and not with LOG_DBG. From what I understand, LOG statements&amp;nbsp;are pretty much the same as printk except they add a bit more additional information to the prints.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461055?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 12:49:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f16ad1c-971e-47a5-8e47-7958d639e6a9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear that this worked on your end as well.&lt;/p&gt;
&lt;p&gt;When you set a trigger using sensor_trigger_set(), the input variable is used in different contexts, meaning that you get the same address (ie. variable) returned in your callback &amp;quot;trigger_handler&amp;quot;. Since this was stacked memory, it is effectively out-of-scope once you&amp;nbsp;returned from your main-function.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461053?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 12:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddb8bed4-fa11-4b39-aa39-48139b6338b8</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;Not a problem at all. I highly appreciate you working on this.&lt;/p&gt;
&lt;p&gt;I have declared &lt;strong&gt;trig_motion&lt;/strong&gt; and &lt;strong&gt;trig_stationary&lt;/strong&gt; structs as static as shown below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void main(void)
{

	if (!device_is_ready(adxl1362_sens))
	{
		LOG_ERR(&amp;quot;sensor: device %s not ready&amp;quot;, adxl1362_sens-&amp;gt;name);
		return;
	}

	if (IS_ENABLED(CONFIG_ADXL362_TRIGGER))
	{
		LOG_DBG(&amp;quot;Configuring triggers&amp;quot;);
		static struct sensor_trigger trig_motion = {
			.chan = SENSOR_CHAN_ACCEL_XYZ,
			.type = SENSOR_TRIG_MOTION,
		};
		if (sensor_trigger_set(adxl1362_sens, &amp;amp;trig_motion, trigger_handler))
		{
			LOG_ERR(&amp;quot;SENSOR_TRIG_MOTION set error&amp;quot;);
		}

		static struct sensor_trigger trig_stationary = {
			.chan = SENSOR_CHAN_ACCEL_XYZ,
			.type = SENSOR_TRIG_STATIONARY,
		};
		if (sensor_trigger_set(adxl1362_sens, &amp;amp;trig_stationary, trigger_handler))
		{
			LOG_ERR(&amp;quot;SENSOR_TRIG_STATIONARY set error&amp;quot;);
		}
		ext_sensors_accelerometer_threshold_set(5.0, true);
		ext_sensors_accelerometer_threshold_set(0.5, false);
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems to really fix the issue as I am able to get some proper readings:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;#248;*** Booting nRF Connect SDK v2.5.0 ***
[00:00:00.270,507] [1B][0m&amp;lt;dbg&amp;gt; main: main: Configuring triggers[1B][0m
[00:00:00.271,270] [1B][0m&amp;lt;dbg&amp;gt; main: ext_sensors_accelerometer_threshold_set: threshold value to be set : 510[1B][0m
[00:00:00.271,362] [1B][0m&amp;lt;dbg&amp;gt; main: ext_sensors_accelerometer_threshold_set: threshold value to be set : 51[1B][0m
[00:00:00.273,925] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 0.1, y: -0.2, z: -10.7 (m/s^2)[1B][0m
[00:00:00.273,956] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:02.036,041] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 0.5, y: -1.0, z: -5.2 (m/s^2)[1B][0m
[00:00:02.036,071] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:02.038,970] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 0.1, y: -0.8, z: -5.0 (m/s^2)[1B][0m
[00:00:02.039,001] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:02.095,092] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -2.3, y: 14.0, z: -3.8 (m/s^2)[1B][0m
[00:00:02.095,123] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:02.118,652] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -0.3, y: -1.6, z: -10.2 (m/s^2)[1B][0m
[00:00:02.118,682] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:03.364,013] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 2.6, y: -1.3, z: -5.2 (m/s^2)[1B][0m
[00:00:03.364,044] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:03.387,573] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 2.5, y: -1.6, z: -6.6 (m/s^2)[1B][0m
[00:00:03.387,603] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:03.452,575] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 2.2, y: -0.8, z: -1.5 (m/s^2)[1B][0m
[00:00:03.452,575] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:03.526,153] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 0.2, y: -1.0, z: -9.9 (m/s^2)[1B][0m
[00:00:03.526,184] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:05.785,705] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -0.7, y: 0.6, z: -4.6 (m/s^2)[1B][0m
[00:00:05.785,736] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:05.850,555] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 0.7, y: -0.3, z: -9.9 (m/s^2)[1B][0m
[00:00:05.850,585] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:08.783,172] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -6.3, y: 6.5, z: -9.8 (m/s^2)[1B][0m
[00:00:08.783,203] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:08.815,582] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -2.0, y: -0.6, z: -11.9 (m/s^2)[1B][0m
[00:00:08.815,582] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:08.874,603] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -1.7, y: 0.1, z: -6.6 (m/s^2)[1B][0m
[00:00:08.874,603] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:08.916,015] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -1.5, y: -1.9, z: -2.8 (m/s^2)[1B][0m
[00:00:08.916,046] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:08.930,816] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: 0.0, y: -3.8, z: -8.2 (m/s^2)[1B][0m
[00:00:08.930,816] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:08.983,856] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -0.5, y: 0.2, z: -9.2 (m/s^2)[1B][0m
[00:00:08.983,856] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
[00:00:24.189,758] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -13.8, y: 10.3, z: -9.4 (m/s^2)[1B][0m
[00:00:24.189,788] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Activity detected[1B][0m
[00:00:24.216,308] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: x: -0.1, y: -1.9, z: -10.8 (m/s^2)[1B][0m
[00:00:24.216,308] [1B][0m&amp;lt;dbg&amp;gt; main: trigger_handler: Inactivity detected[1B][0m
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please help me understand in a simple terms what exactly caused this weird behaviour?&amp;nbsp; It is really strange to me that such a simple change can cause such a big issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/461027?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 11:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db5481cd-9403-406c-a192-568de8d3e4e7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry it took a bit of time.&lt;/p&gt;
&lt;p&gt;Could you try declaring &amp;quot;trig_motion&amp;quot; and &amp;quot;trig_stationary&amp;quot; as static or move them to global scope and see if this fixes the issue on your side as well?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looks like these are stored in the sensor API, and cannot be a stacked variable.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/460839?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 13:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c999006d-f1ff-429f-baf9-09405bb166d4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your patience in this matter.&lt;/p&gt;
&lt;p&gt;I have been looking into what this can be, even to the extent where I have disabled adxl372 (+ set its csn pin inactive), but I have not been able to find the root-cause of this behavior when logging is enabled.&lt;/p&gt;
&lt;p&gt;Given that this is the parameter input to the function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;(gdb) print *drv_data.inact_trigger
$4 = {type = 60672, chan = 57344}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is clearly something occurring in the driver side of the adxl362 implementation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will continue to dig deeper.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/460693?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 05:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e241c44-a468-495c-a42f-a4769dcfc2c1</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;Hello. I am glad that you are able to reproduce the issue. Have you been able to look into this more?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_DBG causes system to stop working properly</title><link>https://devzone.nordicsemi.com/thread/460180?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 14:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a237c0c-c207-43fa-b325-5ab8d6c29a2e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am able to reproduce the issue. First thought was the floats in the log debug prints, but that should not explain the strange events that is printed.&lt;/p&gt;
&lt;p&gt;I am digging deeper to see what can have caused this, and will get back tomorrow with more relevant debug info.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>