<?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>Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50709/breakpoints-not-being-hit</link><description>I&amp;#39;m compiling a custom application using the CMake scripts in the nRF mesh SDK. When I debug the application, even though the debugger is working – I can pause execution – breakpoints are not being hit. I wondered if it is perhaps because the breakpoints</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Aug 2019 18:40:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50709/breakpoints-not-being-hit" /><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/203158?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 18:40:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:597ae2dc-dd0f-4650-b63b-37d8e3d2c1a8</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;Breakpoints were not being hit because the debugger was connecting after execution had started and not resetting the target. Running&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;monitor reset
continue&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Reset the application and my breakpoints were hit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/203020?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 10:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c1f5325-41f6-4c14-80e0-3e093478aec1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The root cause in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50708/sigtrap-on-sd_softdevice_enable"&gt;this&lt;/a&gt;&amp;nbsp;thread and here might be related.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/203015?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 09:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c033ca8a-7a77-43fd-9458-f1f31bae7058</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;No I&amp;#39;ve not done anything with the bootloader. Is the bootloader flashed as part of this? Or can I re-program a stock bootloader separately? If it would help I could send my project to you directly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/202825?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 12:14:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf3f057-74d9-4b4a-8f27-1720d261aa55</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]I&amp;#39;m wondering if breakpoints are not being hit because they are not being offset by the softdevice length? In the output above a breakpoint is set at&amp;nbsp;0x000262DA, but the flash start is 0x00026000 and the soft device hex is &amp;gt;400kb.[/quote]
&lt;p&gt;&amp;nbsp;no offset is needed as the breakpoint is set at an absolute address and the debugger is not working with offsets here.&amp;nbsp; If you look at the .map file, you can see the absolute address space the functions and data are occupying.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="nrbrook"]Here&amp;#39;s what I get in Ozone when it occurs[/quote]
&lt;p&gt;It seems to be a hardfault which is handled inside the softdevice. I am not sure why the hardfault has not been forwarded to the application. Have you happened to play with the bootloader or the vector table set functions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/202820?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 12:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f49ecc6d-7b29-41e9-97ac-550a60c5d137</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;Here&amp;#39;s what I get in Ozone when it occurs&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2019_2D00_08_2D00_07-at-13.02.59.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/202808?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 11:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aafc1a4-0988-4cde-9ed9-4411b0019d99</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;m having difficulty connecting though.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;File.NewProjectWizard();
Project.SetDevice (&amp;quot;nRF52832_xxAA&amp;quot;);
Project.SetHostIF (&amp;quot;USB&amp;quot;, &amp;quot;&amp;quot;);
Project.SetTargetIF (&amp;quot;JTAG&amp;quot;);
Project.SetTIFSpeed (&amp;quot;1 MHz&amp;quot;);
Project.AddSvdFile (&amp;quot;$(InstallDir)/Config/CPU/Cortex-M4F.svd&amp;quot;);
File path resolved: &amp;quot;$(InstallDir)/Config/CPU/Cortex-M4F.svd&amp;quot; was found at &amp;quot;/Applications/SEGGER/Ozone/Ozone.app/Contents/MacOS/Config/CPU/Cortex-M4F.svd&amp;quot;
File.Open (&amp;quot;/Users/nick/Documents/Repos/AirTurnFirmwareV2/cmake-build-debug-arm-none-eabi/src/AirTurnFirmwareProject_BT200.elf&amp;quot;);
File.Open: completed in 400 ms
Debug.Start();
Device &amp;quot;NRF52832_XXAA&amp;quot; selected.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Connection failed&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I know it recognises the connected nrf52DK as it displays the license warning with the JLink serial number, and I can connect with JLinkExe.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: Ahh, I was using JTAG instead of SWD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/202800?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 11:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a041cfd-2c0a-4fd7-915f-8df0006e2bfb</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47811/acquiring-a-code-profile-with-ozone"&gt;This &lt;/a&gt;thread shows you how to start Ozone debugger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/202789?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 10:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef34ad2e-3332-4874-a36f-f23517c65241</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;Are there any instructions for using Ozone with Nordic nRF52832?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Breakpoints not being hit</title><link>https://devzone.nordicsemi.com/thread/202785?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 09:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fd10545-eb7c-402b-8e24-c72c30683ccc</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I find &lt;a href="https://www.segger.com/products/development-tools/ozone-j-link-debugger/"&gt;Ozone&lt;/a&gt;&amp;nbsp;more convenient than using GDB, can you give it a try to see if it gives you more information on call stack when you get the SIGTRAP?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>