<?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>how can I debug nrf52832 by step</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26017/how-can-i-debug-nrf52832-by-step</link><description>Hi
I have run this example code
nrf5_SDK_for_Mesh_v0.10.0-Alpha_src\examples\light_switch\client\light_switch_client_nrf52832_xxAA_s132_5_0_0.emProject 
 when I operate &amp;quot;Debug -- Go &amp;quot;, then press the button as follow picture, it run well.
 
 
 but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2017 10:04:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26017/how-can-i-debug-nrf52832-by-step" /><item><title>RE: how can I debug nrf52832 by step</title><link>https://devzone.nordicsemi.com/thread/102522?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 10:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b20f76-2b30-4c13-999b-f9f5a3eabe56</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Sorry to hear that, it works for me. An option could be to use the &lt;code&gt;arm-none-eabi-gdb&lt;/code&gt; debugger.&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I debug nrf52832 by step</title><link>https://devzone.nordicsemi.com/thread/102521?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 09:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adcc8f73-cf58-4a47-bca6-278675087053</guid><dc:creator>mark</dc:creator><description>&lt;p&gt;Thank you for your answer,
But &amp;quot;step into&amp;quot; button next to the disassembly output cannot help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I debug nrf52832 by step</title><link>https://devzone.nordicsemi.com/thread/102520?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 08:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24d2772-b86b-4190-a282-004fb11a7c91</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Hi mark,&lt;/p&gt;
&lt;p&gt;The mesh stack uses the SoftDevice Timeslot API which requires it to yield its processing context back to the SoftDevice before its timeslot has ended. If you halt the program execution and step normally, the stack will exceed the allocated timeslot without yielding back to the SoftDevice. Upon stepping, the debugger re-enables interrupts and the SoftDevice asserts. A workaround is to step instruction-wise. In GDB this is &lt;code&gt;si&lt;/code&gt;, in SEGGER Embedded studio, you click the &amp;quot;step into&amp;quot; button next to the disassembly output:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/step_5F00_instruction.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;
Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>