<?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>No code for breakpoint at segger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51638/no-code-for-breakpoint-at-segger</link><description>Hi, 
 I am evaluating the ble_app_template example with nRF52840 SDK. 
 I added code to create custom service and custom characteristics in the following link: 
 https://github.com/bjornspockeli/custom_ble_service_example 
 I wanted to debug the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Sep 2019 07:09:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51638/no-code-for-breakpoint-at-segger" /><item><title>RE: No code for breakpoint at segger</title><link>https://devzone.nordicsemi.com/thread/208107?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 07:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96377660-4143-4491-8b4f-64f56da14f60</guid><dc:creator>Gil</dc:creator><description>&lt;p&gt;This issue can be closed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No code for breakpoint at segger</title><link>https://devzone.nordicsemi.com/thread/208106?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 07:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1172bf0b-8715-4085-b8fc-495571dc2cd7</guid><dc:creator>Gil</dc:creator><description>&lt;p&gt;Thanks RK, it&amp;#39;s working.&lt;/p&gt;
&lt;p&gt;I am new to segger so i was not aware of this option.&lt;/p&gt;
&lt;p&gt;Thanks you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No code for breakpoint at segger</title><link>https://devzone.nordicsemi.com/thread/207663?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 11:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27ec049-5bc6-4254-9bf7-b184495e2d3f</guid><dc:creator>ExAg</dc:creator><description>&lt;p&gt;Hi RK&lt;/p&gt;
&lt;p&gt;The &amp;quot;mqtt_simple&amp;quot; example project has no configurations at all (only &amp;quot;Common&amp;quot;). As described &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44582/nrf9160-embedded-studio-compile-debuggable-code"&gt;in the link I mentioned&lt;/a&gt;, you have to edit the prj.conf file to disable the code optimization.&lt;/p&gt;
&lt;p&gt;And for the hint with &amp;quot;&lt;strong&gt;CONFIG_DEBUG_OPTIMIZATIONS=y&lt;/strong&gt;&amp;quot; see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51699/crash-while-debugging-the-mqtt_simple-example"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;But for Gil your suggestion is probably the solution.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;ExAg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No code for breakpoint at segger</title><link>https://devzone.nordicsemi.com/thread/207659?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 11:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31e729ff-abdf-4a41-ab0d-470e11d1bed7</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Why don&amp;#39;t you just change the build type from &amp;#39;Release&amp;#39; to &amp;#39;Debug&amp;#39; in the dropdown at the top left of Segger Embedded Studio .. or doesn&amp;#39;t it have a Debug configuration?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No code for breakpoint at segger</title><link>https://devzone.nordicsemi.com/thread/207646?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 11:08:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad79c301-309f-40a5-983e-c4370b9fdff1</guid><dc:creator>ExAg</dc:creator><description>&lt;p&gt;Hi Gil&lt;/p&gt;
&lt;p&gt;As I have just learned from my own problems, you should use &amp;quot;&lt;strong&gt;CONFIG_DEBUG_OPTIMIZATIONS=y&lt;/strong&gt;&amp;quot; (not CONFIG_NO_OPTIMIZATIONS=y).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;ExAg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No code for breakpoint at segger</title><link>https://devzone.nordicsemi.com/thread/207558?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 07:28:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d76b3d00-7d17-49b1-b68d-8f26b5bf63bb</guid><dc:creator>ExAg</dc:creator><description>&lt;p&gt;Hi Gil&lt;/p&gt;
&lt;p&gt;I would say this is because segger studio has enabled code optimization per default.&lt;/p&gt;
&lt;p&gt;For nRF5160 projects, you have to add &amp;quot;CONFIG_NO_OPTIMIZATIONS=y&amp;quot; in the prj.conf file of your project: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44582/nrf9160-embedded-studio-compile-debuggable-code"&gt;see also this thread.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;ExAg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No code for breakpoint at segger</title><link>https://devzone.nordicsemi.com/thread/207417?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 13:20:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e45efc0c-2d50-43dd-a9d9-aa8b993db3a8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Gil,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That means&amp;nbsp;Invalid breakpoint. An invalid breakpoint is one where the breakpoint cannot be set; for example, no executable code is associated with the source code line where the breakpoint is set or the processor does not have enough hardware breakpoints.&lt;/p&gt;
&lt;p&gt;If you check the SEGGER user guide/ Debugging windows, you can see the statements:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-06173e31fa204839bb32c6beb1122ec8/235274.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>