<?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>.h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114871/h_set-seem-not-stop-when-code-is-running</link><description>Settings document explain .h_set handle will be called when the value is loaded from persisted storage with settings_load().And I want to know how it work. 
 I put a breakpoint in alpha_handle_set() that in settings sample.Then debug this sample. 
 But</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2024 11:18:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114871/h_set-seem-not-stop-when-code-is-running" /><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503949?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 11:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a48b8bfa-b4eb-452c-9c1c-f8a26eb0ebbe</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. I am not able to explain or reproduce it. Does it happen if you do a full chip erase and run again? Also, is anything actually not working as expected, or is it only a problem with the debugging?&lt;/p&gt;
&lt;p&gt;Are you able to debug other samples as expected (set breakpoints in the code and those are hit as they should etc)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503691?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 09:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98981aa7-ca4e-42f8-823e-f102cb044608</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;No,those point in the above picture all are not be bited.I delete those point that be hited.&lt;/p&gt;
&lt;p&gt;In this sample,just&amp;nbsp; alpha_handle_set(), alpha_handle_export(), beta_handle_export() ,&amp;nbsp;direct_loader() and direct_loader_immediate_value() not hit.&lt;/p&gt;
&lt;p&gt;Other functions like&amp;nbsp;alpha_handle_commit() will stop application when breakpoint be set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503686?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 08:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4a6f6d3-5473-43e3-bcfa-44043131df42</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Does that mean that no break-points are hit? Are you abelt o set breakpoint in other applications? Or does debugging with breakpoints not work at all in any applicaiton?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503683?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 08:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86640896-1fa9-4250-8f9b-971641a51f12</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;I retest this sample and add breakpoint at at the start of every function besides main,And I delete the breakpoint when code is stop.It still have some point be leaved.&lt;/p&gt;
&lt;p&gt;You can also see that the end be send in log.&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/1643.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;我重新测试这个示例，并在除main和I de之外的每个函数的开始处添加断点&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503678?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 08:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c574ad3-ae2c-4311-bba7-78ffeaa22117</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. I ran the sample now, and when I build with debug optimization and set a breakpoint oin the start of the alpha_handle_set() function in&amp;nbsp;zephyr/samples/subsys/settings/src/main.c I see the debugger stopping on the breakpoint:&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/pastedimage1727253265007v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Are you not able to hit a breakpoint anywhere in this project? What about other projects? If this project, which exact line do you set the breakpoint on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503671?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 08:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3ce60ca-db60-47b6-bca6-a6d954e678fb</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;The link of document is&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/settings/index.html"&gt;Settings (nordicsemi.com)&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;设置(nordicsemi.com)&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And the explain as follow:&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/31786677.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using NCS v2.6.0.&lt;/p&gt;
&lt;p&gt;I just build the sample with build configuration as above.And debug the application directly.&lt;/p&gt;
&lt;p&gt;Then put my breakpoint inside of&amp;nbsp;&lt;span&gt;alpha_handle_set().And run application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess it will stop at the breakpoint but it not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The sample&amp;nbsp;unmodified.I try to get know how it work by the output log.But I can&amp;#39;t understand somewhere so I try to debug by breakpoint.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503670?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 07:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:971232f6-5d26-403f-ab9f-3a3d8e35ce8a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. That should be in order, then. Which &amp;quot;Settings document&amp;quot; are you refering to?&amp;nbsp;Which SDK version are you using and how are you testing? Just running the unmodified example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503349?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2024 00:46:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f37355e-8260-4a5a-8902-2fcd0ed2035d</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;This is mine build configuration.&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/2526.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: .h_set seem not stop when code is running</title><link>https://devzone.nordicsemi.com/thread/503255?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2024 12:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:298907cd-19b2-443a-8479-2ecac5352e6d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Did you build with debug optizmitation? If you build with default optimizations, stepping is often tricky as the actual optimized machine code could be quite different from the C code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>