<?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>segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833</link><description>Hello, 
 I am trying to set a data breakpoint expression on a global array or global variable but I don&amp;#39;t seem to be able to. 
 Each time I set a data breakpoint I get a &amp;#39; ? &amp;#39; next to the breakpoint. See attached picture. 
 uint8_t ble_ad[HB_BLE_AD_BUFF_SIZE_MAX</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Jan 2023 14:53:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833" /><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/406067?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 14:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10ef0fbd-799c-436d-a644-09611b5c0ac6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mohamed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is good to hear that you were able to find out what triggered the fault in the end.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Learner"]I would have thought the tools would have reported a BUFFER OVERFLOW error instead.[/quote]
&lt;p&gt;I am not sure how a fault handler could be made to detect buffer overruns. There are not any mechanisms to catch buffer overruns before memory corruption occurs either. The first step which I normally take in these&amp;nbsp;situations&amp;nbsp;is to have a look at the stack trace to see if I can determine where the exception was raised. The &amp;quot;Faulting instruction address&amp;quot; indicated that you may have had a corrupt function pointer.&amp;nbsp;&lt;/p&gt;
[quote user="Learner"]I would appreciate it if you could answer it or point me to a document that describes this.[/quote]
&lt;p&gt;I am not aware of any documentation that covers this, but I showed you where you could find the stack areas in the .map file.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/405431?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 10:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fc0e458-7072-4e15-aaef-a4d9fe0f344e</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Good Morning Vidar,&lt;/p&gt;
&lt;p&gt;The root cause of the MPU FAULT I was getting is an index that went astray and caused a buffer overflow. I would have thought the tools would have reported a BUFFER OVERFLOW error instead.&lt;/p&gt;
&lt;p&gt;So, although I managed to find the bug in my firmware I am still interested in your answer to my previous question,&lt;/p&gt;
[quote userid="92434" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404410"]please help me find where the stack starts and whether it builds up or down.[/quote]
&lt;p&gt;I would appreciate it if you could answer it or point me to a document that describes this.&lt;/p&gt;
&lt;p&gt;Thank you for your support over the last 10 days or so.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404748?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 09:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a42eba3-b6f2-4e7d-8884-66b2df4df6b1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mohamed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The system workqueue stack is here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; .noinit.&amp;quot;WEST_TOPDIR/zephyr/kernel/system_work_q.c&amp;quot;.0&lt;br /&gt; 0x2000d760 0x820 zephyr/kernel/libkernel.a(system_work_q.c.obj)&lt;/span&gt;&lt;/p&gt;
[quote userid="92434" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404744"]Did you have a look at the stack analyzer log file stack_analyzer_logs.txt I attached as a link in my previous message? there is nothing in the logs that suggest the stack is overflowing. Please have a[/quote]
&lt;p&gt;I did, and I am not saying a&amp;nbsp;believe&amp;nbsp;it is a stack overflow. My suggestion was in response to your comment here:&amp;nbsp;&lt;/p&gt;
[quote userid="92434" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404503"]There is no mention of stack overflow violation but I am suspecting there is.[/quote]
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404744?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 09:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae338c4-b8d7-4d6c-aab9-2e8062a8c311</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Good Morning Vidar,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404734"]The map file did not get uploaded. [/quote]
&lt;p&gt;Here it is again.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1106.zephyr.map"&gt;/cfs-file/__key/communityserver-discussions-components-files/4/1106.zephyr.map&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404734"]Anyway, the easiest way to try to rule out a stack overflow is often to try increasing the stack size, or have you tried that already?[/quote]
&lt;p&gt;Did you have a look at the stack analyzer log file stack_analyzer_logs.txt I attached as a link in my previous message? there is nothing in the logs that suggest the stack is overflowing. Please have a look.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404734?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 08:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b735addd-f648-46f0-a8be-1acd5d7336b8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mohamed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The map file did not get uploaded. Anyway, the easiest way to try to rule out a stack overflow is often to try increasing the stack size, or have you tried that already? The&amp;nbsp;sysworkq stack can be adjusted through the&amp;nbsp;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE symbol.&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;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404503?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 09:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26570879-5cfb-4ef6-b581-c80741ec9ff9</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Good Morning Vidar,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404457"]The stack area&amp;nbsp;allocated to&amp;nbsp;each thread&amp;nbsp;can be found in the&amp;nbsp;map file.[/quote]
&lt;p&gt;I am attaching my map file please let me know where the stack area is.&lt;/p&gt;
&lt;p&gt;/cfs-file/__key/communityserver-discussions-components-files/4/2437.zephyr.map&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404457"]If you are unsure if it is enabled, you can check&amp;nbsp;if CONFIG_MPU_STACK_GUARD=y[/quote]
&lt;p&gt;It is already enabled in my .config file and this is the error I am getting. There is no mention of stack overflow violation but I am suspecting there is. So, what&amp;nbsp;else could be causing this fault ?&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;[00:19:08.163,787] \033[1;31m&amp;lt;err&amp;gt; os: ***** MPU FAULT *****\033[0m&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;[00:19:08.163,787] \033[1;31m&amp;lt;err&amp;gt; os: Instruction Access Violation\033[0m&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;[00:19:08.163,787] \033[1;31m&amp;lt;err&amp;gt; os: r0/a1: 0x00000000 r1/a2: 0x2000cfc0 r2/a3: 0x2000cfc0\033[0m&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;[00:19:08.163,787] \033[1;31m&amp;lt;err&amp;gt; os: r3/a4: 0x200042ff r12/ip: 0x000000e2 r14/lr: 0x00010cff\033[0m&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;[00:19:08.163,818] \033[1;31m&amp;lt;err&amp;gt; os: xpsr: 0x60000000\033[0m&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;[00:19:08.163,818] \033[1;31m&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0xeb699002\033[0m&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;[00:19:08.163,818] \033[1;31m&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0\033[0m&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;[00:19:08.163,818] \033[1;31m&amp;lt;err&amp;gt; os: Current thread: 0x20001f40 (sysworkq)\033[0m&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;[00:19:09.107,147] \033[1;31m&amp;lt;err&amp;gt; os: Halting system\033[0m&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;/span&gt;I have enabled the STACK_ANALYZER and&amp;nbsp;I am attaching the stack analyzer logs from boot up to the &amp;quot;MPU FAULT&amp;quot; crash. Note, where you see the three dots (...)&amp;nbsp; is where I removed my application logs (LOG_DBG/INF/WRN/ERR) for readability.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/stack_5F00_analyzer_5F00_logs.txt"&gt;devzone.nordicsemi.com/.../stack_5F00_analyzer_5F00_logs.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;Mohamed&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404457?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 07:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929cfd3a-6058-428c-b4cc-7d3bf7617462</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mohamed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The &amp;#39;data sampling&amp;#39;&amp;nbsp;feature is&amp;nbsp;used for monitoring a variable over time. The only reason it may not be as good as a data breakpoint in this case is that it will not halt the CPU if an invalid value is written.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There are multiple stacks (main stack for interrupt handling + 1 stack for each thread - &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/hardware/arch/arm_cortex_m.html#stack-pointers"&gt;stack pointers&lt;/a&gt;). The stack area&amp;nbsp;allocated to&amp;nbsp;each thread&amp;nbsp;can be found in the&amp;nbsp;map file. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is already&lt;/span&gt;&lt;span&gt;&amp;nbsp;a built-in stack guard to catch stack overruns&amp;nbsp;and it should be enabled by default in the board files&amp;nbsp;(&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/hardware/arch/arm_cortex_m.html#mpu-assisted-stack-overflow-detection"&gt;MPU-assisted stack overflow detection&lt;/a&gt;).&amp;nbsp;If you are unsure if it is enabled, you can check&amp;nbsp;if CONFIG_MPU_STACK_GUARD=y is included in your &amp;lt;build folder&amp;gt;/zephyr/.config file.&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;Vidar&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: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404410?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 18:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b6d01e7-b5e5-43df-b545-485f6e09c43a</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;As you said, this is not as good as a breakpoint because I need to monitor it.&lt;/p&gt;
&lt;p&gt;In order to check if I am running out of stack I would like to fill the stack memory section with say &lt;strong&gt;0xAA&lt;/strong&gt; and run the program until it crashes. I then check if all the AA in the stack locations have disappeared&amp;nbsp;i.e. overwritten. However, I am not sure where to find where the stack starts and whether it builds up or down. I looked in the .map file but it is not clear. All I know is I am setting the stack size to 8192 bytes in &lt;strong&gt;prj.conf&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;CONFIG_MAIN_STACK_SIZE=8192&lt;br /&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048&lt;/p&gt;
&lt;p&gt;I have only one main thread from which I am submitting a work queue. The code looks something like this,&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;static struct k_work WorkQ1;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-family:inherit;"&gt;void main( void )&lt;br /&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;...[snip]...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt; k_work_init( &amp;amp;WorkQ1, WorkQ1_tasks );&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;k_work_submit( &amp;amp;WorkQ1 );&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;...[snip]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So, please help me find where the stack starts and whether it builds up or down.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404303?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 12:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2c302bd-0b80-4de5-96e7-13e3e91cce73</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mohamed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am not sure what you have tried so far, but it seems like you have to do is to open the &amp;#39;Data sampling&amp;#39; view and then input your expression. It is the first time I have used this myself.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673440325968v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673440347084v2.png_2D00_640x480.png" alt=" " /&gt;&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;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404273?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:37:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf3c9763-91b8-4f83-a3dd-df036b36b3e2</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Good Morning Vidar,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404123"]An alternative (not as good as a breakpoint) may be to use trace in Ozone&amp;nbsp;and sample the register value periodically. This way you can monitor whether&amp;nbsp;the&amp;nbsp;array element is overwritten or not.[/quote]
&lt;p&gt;I am not sure how&amp;nbsp;to do this. Could you please give me an idiot step by step guide ?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404123?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 14:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d6dba4-8869-4826-ae49-54c47ae63bb9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I am glad to hear that it worked!&amp;nbsp;&lt;/p&gt;
[quote userid="92434" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404088"]I am chasing an intermittent bug which could be caused by a possible stack overflow. How do I set a data breakpoint that is triggered when ble_[6] != 0x19?[/quote]
&lt;p&gt;I do not think the HW comparators on Cortex M4 support these kinds of expressions. It does not appear to be supported in Ozone, at least.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An alternative (not as good as a breakpoint) may be to use trace in Ozone&amp;nbsp;and sample the register value periodically. This way you can monitor whether&amp;nbsp;the&amp;nbsp;array element is overwritten or not.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673359771015v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="92434" url="~/f/nordic-q-a/95469/segger-embedded-studio-data-breakpoints-expressions-nrf52833/404088"]One more question.&amp;nbsp;how do I capture the debugging logs appearing in the Terminal window in a text file automatically?[/quote]
&lt;p&gt;The documentation explains how you can do it in Ozone, but it is not something I have tried myself. For SES you can do it like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673357541644v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404088?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 12:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24309e63-ea2c-4cb8-9069-bb612aa9278f</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Great! it works now Thank you. The moral is &amp;quot;Read the user manual&amp;quot;&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I am chasing an intermittent bug which could be caused by a possible stack overflow. How do I set a data breakpoint that is triggered when ble_[6] != 0x19?&lt;/p&gt;
&lt;p&gt;One more question.&amp;nbsp;how do I capture the debugging logs appearing in the Terminal window in a text file automatically?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404081?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 12:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b0e8191-9dff-4926-a9a6-e67b89edb5fd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Mohammed,&lt;/p&gt;
&lt;p&gt;In Ozone, the value condition is specified at the end and not as a part of the expression. Please try to do it like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673353339985v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also, notice that the value mask is set to &amp;#39;0&amp;#39;. &amp;#39;1&amp;#39;s in the mask are used to mark bits to ignore.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673352974656v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/404069?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 11:51:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdd3737a-2169-4f1e-8ada-446d37f53d2c</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I downloaded Ozone and got it running but I still cannot set a data breakpoint with a C-like expression. See screen capture below. The OK field remains always greyed out and the only option available is &amp;#39;Cancel&amp;#39;. What am I doing wrong?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/OzoneDataBrkPnt.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/403929?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 19:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0523002-828a-4ce6-9438-f9ba7fe56bdc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;Ozone must be downloaded and installed separately. You should be able to open it via SES once installed.&lt;/p&gt;
&lt;p&gt;Download link: &lt;a href="https://www.segger.com/downloads/jlink/#Ozone"&gt;https://www.segger.com/downloads/jlink/#Ozone&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/403919?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 17:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b041be-2c6e-4f25-a0c2-0708aa8022eb</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Do I need to download the Segger Ozone debugger app or is it already included in nRF Connect tools?&lt;/p&gt;
&lt;p&gt;Where can I download it from and any getting started guide would be appreciated?&lt;/p&gt;
&lt;p&gt;It looks like Segger Ozone is built into SES NE. I have found in SES NE under&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Debug -&amp;gt; Debug With Ozone&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;But when I selected it nothing happened.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/403909?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 16:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19a4be66-b8ad-48c6-ba6e-bc7ee26869e9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mohamed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I was testing with SES version 5.68 (Not the nordic edition).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ozone is a standalone debugger application from Segger. All you need to do to debug with Ozone is to load the *.elf file from your SES build. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I realize it is not as convenient to have to debug with a separate application. But maybe it is OK as a workaround to use the Ozone debugger when you need to use data breakpoints?&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;Vidar&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/403907?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 15:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cc8d9a3-8ec6-490f-a0e8-fc16abbb8ae8</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Not good news. So, does this mean I will not be able to set data breakpoint expressions in SES NE?&lt;/p&gt;
&lt;p&gt;Which version of SES NE are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using v5.60,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;SEGGER Embedded Studio for ARM&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Release 5.60&amp;nbsp;&amp;nbsp;Build 2021081102.47262&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Nordic Edition&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Windows x64&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I have never used Segger Ozone, is it newer or older that SES?&lt;/p&gt;
&lt;p&gt;Will my SES NE project build and run on Segger Ozone?&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/403870?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 14:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e56eda2a-19d4-45c0-bfe2-86b6045a40ef</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mohamed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I see the same as you now when I try to configure the breakpoint to trigger on a specific value. I do not get the question mark next to it, but it does not break either. I wonder if this may be an issue with Segger embedded studio because it&amp;nbsp;does break when I try to configure the same breakpoint in Segger Ozone.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673272705832v2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673272727951v3.png" alt=" " /&gt;&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;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/403834?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 12:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a7b0634-7529-4cd6-a6b7-c927bf18e3d2</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for the quick response.&lt;/p&gt;
&lt;p&gt;What you did worked for me too. I ran into problems when I tried to use a data breakpoint expression applied to that variable. I suggest you edit your data breakpoint and try to use the expression I am using &lt;strong&gt;ble_ad[4] != 0&lt;/strong&gt; or any other C-like expression.&lt;/p&gt;
&lt;p&gt;After restarting SES IDE I can now set the data breakpoint expression without getting the &amp;#39;?&amp;#39; next to it. Very odd!&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/DataBrkPoint_2D00_2.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;However, the program is not breaking as expected. I checked this by setting a breakpoint at the line where ble_ad[6] is assigned the value 0x19 and it does execute this line an breaks.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;ble_ad[6] = LINK_LINE_TYPE_HOMEBEACON;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#000000;"&gt;Note, is an enum, defined ia header file as&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt; typedef enum eLinkLineType&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; LINK_LINE_TYPE_AGENCY = 0x00, /**&amp;lt; ? */&lt;br /&gt;&amp;nbsp; &amp;nbsp; LINK_LINE_TYPE_BUILDING_OWN = 0x01, /**&amp;lt; ? */&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp; &amp;nbsp; ...&lt;br /&gt;&amp;nbsp; &amp;nbsp; LINK_LINE_TYPE_HOMEBEACON&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 0x19U,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp; &amp;nbsp; ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;} link_PacketType_t;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: segger embedded studio data breakpoints expressions nRF52833</title><link>https://devzone.nordicsemi.com/thread/403751?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 08:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a8c1044-bb79-4e8a-864c-ed64de5f5f81</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Mohamed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I created a global array named &amp;#39;ble_ad&amp;#39; to try and reproduce this here, but it seemed to work for me.&amp;nbsp;In your case, when you start typing your expression, does the&amp;nbsp;variable&amp;nbsp;get displayed up in the suggestion list as shown here:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673254199188v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673254525469v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>