<?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>nRF Connect blinky sample hard to debug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80184/nrf-connect-blinky-sample-hard-to-debug</link><description>My setup: 
 Mac OS 11.5.2 
 Vs Code 1.60.2 
 nRF Connect SDK 1.7.0 
 nRF52840DK 
 
 Using the tutorial videos provided I went through the process of creating the basic blinky sample. I can build, erase and flash and the code appears to work. 
 When I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Oct 2021 07:18:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80184/nrf-connect-blinky-sample-hard-to-debug" /><item><title>RE: nRF Connect blinky sample hard to debug</title><link>https://devzone.nordicsemi.com/thread/333630?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 07:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c41b7784-4aa7-4b12-b584-a91bb15673b2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Enable debug options adds CONFIG_DEBUG_OPTIMIZATIONS=y and CONFIG_OPENOCD_SUPPORT=y to the build command line. It does not modify any project files. These options set -Og optimization level and add thread info structures required for debugger thread awareness, respectively.&amp;nbsp;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;span&gt;Generate configuration does not generate prj.conf file. It generates a CMake build system. Please refer to NCS/Zephyr documentation for details on the build process.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;span&gt;We recommend to leave it unchecked for blinky due to a bug in the build system and debug server that is causing the debugger to halt on stray debug symbols.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect blinky sample hard to debug</title><link>https://devzone.nordicsemi.com/thread/332692?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 16:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce58c242-080f-4884-a4a5-4b05269685d7</guid><dc:creator>spekary</dc:creator><description>&lt;p&gt;Where do you see that? Under Building an application, step 2 is selecting the Debug features, but the application is not built until later in the process.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your intro video here:&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=MGsZJpdLtco&amp;amp;list=PLx_tBuQ_KSqEt7NK-H7Lu78lT2OijwIMl&amp;amp;index=5&amp;amp;t=39s"&gt;https://www.youtube.com/watch?v=MGsZJpdLtco&amp;amp;list=PLx_tBuQ_KSqEt7NK-H7Lu78lT2OijwIMl&amp;amp;index=5&amp;amp;t=39s&lt;/a&gt;&amp;nbsp;at 0:22 shows two lines to add to the proj.cnf file to enable debugging. When I try what the video suggests, it&amp;nbsp;appears to have no actual affect on anything, and the &amp;quot;&lt;span&gt;Enable debug options&amp;quot; on the Generate Configuration screen on the page you mention above does not appear to add any debug options to the configuration file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So again, what does the &amp;quot;Enable debug options&amp;quot; checkbox actually do?&amp;nbsp;Also, since this is a &amp;quot;Generate configuration&amp;quot; screen, does it only generate a proj.cnf file, or are there other configuration files it affects?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect blinky sample hard to debug</title><link>https://devzone.nordicsemi.com/thread/332580?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 10:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000a1f0b-cbbf-44ea-8ce9-28c7238242b4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://nordicplayground.github.io/vscode-nrf-connect/#creating-an-application"&gt;https://nordicplayground.github.io/vscode-nrf-connect/#creating-an-application&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Enable debug options: Debugging features are enabled after the application is built.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect blinky sample hard to debug</title><link>https://devzone.nordicsemi.com/thread/332401?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 14:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeba2766-e317-4005-a6fa-b3431db33978</guid><dc:creator>spekary</dc:creator><description>&lt;p&gt;Speaking of that, yes I had &amp;quot;enable debugging&amp;quot; checked when I created the project.&lt;/p&gt;
&lt;p&gt;I could not find any documentation on what that actually does. Is there something that describes what the results of that checkbox is?&lt;/p&gt;
&lt;p&gt;The video tutorial&amp;nbsp;said that if I did not check that, I can add some rather specific debug options to the prj.conf file to get debugging to work. I expected to see those as a result of checking the box, but that wasn&amp;#39;t the case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect blinky sample hard to debug</title><link>https://devzone.nordicsemi.com/thread/332241?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 06:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b01b27-0926-4292-a19b-f83b3eda67b0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you have &amp;quot;Enable debug options&amp;quot; selected when generating the build configuration? Please try&amp;nbsp;to generate the build configuration with this option unchecked.&amp;nbsp;There seems to be an issue when having this option selected with samples that do not use threads. See Einar&amp;#39;s&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79881/unable-to-use-debugger-in-vs-code-using-nrf-connect/330690#330690"&gt;comment here&lt;/a&gt;&amp;nbsp;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79299/debugging-from-vscode-with-cortex-debug-and-nrf-connect-for-vscode/331919#331919"&gt;VS Code team&amp;#39;s comment here&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect blinky sample hard to debug</title><link>https://devzone.nordicsemi.com/thread/332127?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 11:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4d25d93-c2b0-4131-850d-7298b7663f8d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the feedback. I have reported to the internal.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>