<?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>debugging MCUboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125116/debugging-mcuboot</link><description>NCS3.1.1, NRF52840, Windows, VScode 
 I have been trying to add MCUboot to my product, without success. 
 I believe there are known issues related to debugging when MCUboot is enabled. 
 I believe I need to flash the merged.hex, then use &amp;quot;attach&amp;quot; to debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Oct 2025 12:31:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125116/debugging-mcuboot" /><item><title>RE: debugging MCUboot</title><link>https://devzone.nordicsemi.com/thread/552065?ContentTypeID=1</link><pubDate>Tue, 21 Oct 2025 12:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e660611f-deca-4d26-90b0-e48747e2d8a2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jason,&amp;nbsp;&lt;br /&gt;My understanding is that you want to debug your application, not MCUBoot it self, correct ?&amp;nbsp;&lt;br /&gt;If it&amp;#39;s the case I don&amp;#39;t see why it wouldn&amp;#39;t work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Dfu_target is our library to&amp;nbsp;support DFU, it doesn&amp;#39;t&amp;nbsp;belong to MCUBoot. DFU_target run in the application, not in MCUBoot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you build your application with -Og ?&amp;nbsp;&lt;br /&gt;&lt;br /&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/pastedimage1761049724348v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;I did a quick test here and can debug an application (attached) with MCUBoot included.&amp;nbsp;&lt;br /&gt;&lt;br /&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/pastedimage1761049702936v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Please check if you can debug this application (NCS v3.1.0)&lt;br /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8688.peripheral_5F00_lbs_5F00_smp.zip"&gt;devzone.nordicsemi.com/.../8688.peripheral_5F00_lbs_5F00_smp.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging MCUboot</title><link>https://devzone.nordicsemi.com/thread/552062?ContentTypeID=1</link><pubDate>Tue, 21 Oct 2025 12:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdae2a1b-e392-49c1-b9a0-86073c82ef47</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;I finally got RTT viewer to work and it looks like I have an exception before it even gets to main. This is the first time I&amp;#39;ve managed to get anything from the logging. And I&amp;#39;ve noticed that I now get a stack trace in the debugger. If I connect with RTT with &amp;quot;force go on connect&amp;quot; and then if I use the debugger pause button then I can see where it gets stuck.&amp;nbsp;But&amp;nbsp;I have no way of stepping through the code prior to the crash.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&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/ice_5F00_screenshot_5F00_20251021_2D00_135701.png" /&gt;&lt;/p&gt;
&lt;p&gt;&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/ice_5F00_screenshot_5F00_20251021_2D00_140807.png" /&gt;&lt;/p&gt;
&lt;p&gt;&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/ice_5F00_screenshot_5F00_20251021_2D00_140952.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging MCUboot</title><link>https://devzone.nordicsemi.com/thread/552027?ContentTypeID=1</link><pubDate>Tue, 21 Oct 2025 08:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72075177-7cf0-4914-82ea-fb94e55a6c24</guid><dc:creator>Jason</dc:creator><description>&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/ice_5F00_screenshot_5F00_20251021_2D00_101136.png" /&gt;&lt;/p&gt;
&lt;p&gt;I want to step into my &amp;quot;usb_savedata_init()&amp;quot; function&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It;s the same if I remove my code and just put in a while loop with k_msleep&lt;/p&gt;
&lt;p&gt;&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/ice_5F00_screenshot_5F00_20251021_2D00_102433.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>