<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Can&amp;#39;t Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87787/can-t-debug-with-image-including-mcuboot-bootloader</link><description>Hello, 
 I am trying to work with the MCUBoot bootloader in my project. I was able to configure and build my project and it appears to run properly when I flash it to the chip directly. However when I try to debug it I get the following error: 
 Run to</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 23 May 2022 19:24:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87787/can-t-debug-with-image-including-mcuboot-bootloader" /><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/369117?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 19:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b43c3227-7235-49ed-95c1-f5900074eec9</guid><dc:creator>user64801</dc:creator><description>&lt;p&gt;Yeah I saw that reference. That workaround didn&amp;#39;t work for me for some reason. I&amp;#39;m using the other solution and not configuring my board using the &amp;quot;debug&amp;quot; option for thread debugging.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Pam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/368738?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 08:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b315346-8ef6-4757-b5e8-a7baedbd9403</guid><dc:creator>user111508</dc:creator><description>&lt;p&gt;&lt;em&gt;I came across the same problems, I can confirm the following workaround works:&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Update&lt;/em&gt;: A workaround is to be to start debugging by Run -&amp;gt; Start Debugging (or pressing F5) instead of starting by clicking the &amp;quot;Debug Application&amp;quot; icon within the nRF Connect for VS Code plugin.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/368682?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 17:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2b4b4f0-61b7-471d-98c1-8d9d2f4e15e9</guid><dc:creator>user64801</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why you can&amp;#39;t re-produce the issue, it sounds like from the case I found lots of other developers were having the same issue, one just using the blinky app with the bootloader. In any case, I&amp;#39;ll use the workaround that I have now which is fine. I&amp;#39;m also good not worrying about that Cortex debug warning as long as the tools keep working.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Pam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/368593?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 11:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a87cd11c-33b1-4d0f-b65f-4f7b80f6af5c</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi Pam,&lt;/p&gt;
&lt;p&gt;Thanks for the version info - that was the latest until today and should&amp;nbsp;been good. I will forward it to the team&amp;nbsp;working on the plugin, though I cannot promise any fast progress (at least not while not being able to reproduce).&lt;/p&gt;
&lt;p&gt;Regarding the warning that is just an informational notice&amp;nbsp;about future deprecation, and should be addressed in due time. And I recommend you use whatever we provide with the nRF Connect for&amp;nbsp;Desktop&amp;nbsp;Toolchain manager, as that is tested. You can see &lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87407/cortexm-debug-extension-message-warning-cortex-debug-will-deprecate-use-of-gdb-version-8-please-upgrade-to-version-9"&gt;this thread&lt;/a&gt; for a bit more info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/368453?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 16:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca2e25a-c015-4032-80a3-0cc4e3cbd79d</guid><dc:creator>user64801</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I am using:&amp;nbsp; &amp;nbsp;Visual Studio Version 1.67.1&amp;nbsp; and nRF Connect Version 2022.4.219&lt;/p&gt;
&lt;p&gt;Also, I see this error message every time I run the debugger:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;WARNING: Cortex-Debug will deprecate use of GDB version 8 after July 2022. Please upgrade to version 9+&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Any idea if this is a concern or how to update this &amp;quot;Cortex-Debug&amp;quot; software?&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Pam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/368226?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 08:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:256d0343-4252-4829-b614-10dae79b8582</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Pam,&lt;/p&gt;
&lt;p&gt;Thanks for updating me on your findings. It is a bit strange that I was not able to reproduce it though, and this issue should have been fixed. Can you let me know which VS Code version and which version of the nRF Connect for VS Code plugin you have?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/368169?ContentTypeID=1</link><pubDate>Tue, 17 May 2022 17:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eacf8d51-67aa-4bf6-8953-4f61d278fa96</guid><dc:creator>user64801</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;It seems like a Visual Studio or Zephyr bug of some sort. See the case below, this is the exact issue I have run across. I&amp;#39;ll work around it for now as suggested by using a build without the debug option selected or incorporate multiple threads.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/79881/unable-to-use-debugger-in-vs-code-using-nrf-connect/330690#330690"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/79881/unable-to-use-debugger-in-vs-code-using-nrf-connect/330690#330690&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Pam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/368135?ContentTypeID=1</link><pubDate>Tue, 17 May 2022 04:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c66b0169-8c0d-4382-bedc-fa197d777088</guid><dc:creator>user64801</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I am still having a problem with debugging when the &amp;quot;mcuboot&amp;quot; is included in my build. I don&amp;#39;t experience these issues when the bootloader is not included. Here is&amp;nbsp;some of the output from the&amp;nbsp;debug console window when the debugger stalls (after the code is downloaded).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Reading symbols from c:/Soberlink/soberlink_sfw/trunk_NordicBLE/SL_Connect_ST/build_connect/mcuboot/zephyr/zephyr.elf...&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;2&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Resetting target&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;[New Thread 536878448]&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;[New Thread 536877896]&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;[Switching to Thread 536878448]&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Run to &amp;#39;main&amp;#39; timed out. Trying to pause program&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;GDB never responded to an interrupt request. Trying to end session anyways&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Could there be a RAM issue perhaps causing it to have difficulty switching threads? I&amp;#39;m struggling with how to debug this, I don&amp;#39;t see an easy way to work with any type of debugging in the bootloader.&lt;/p&gt;
&lt;p&gt;Any help would be great. I can get it to work when I select &amp;quot;Recover Board&amp;quot; via the connected JTAG device just before the download. But I have to do this every time to get it to work.&lt;/p&gt;
&lt;p&gt;Thanks for your help and best regards,&lt;/p&gt;
&lt;p&gt;Pam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/367632?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 13:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31fe7e03-aa83-4b4c-a34e-8788c9e5dabc</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi Pam,&lt;/p&gt;
[quote user="pkeiles"]After referencing this sample project I tweaked my own project and was able to get it to download and successfully run as well with the debugger. [/quote]
&lt;p&gt;That is good to hear.&lt;/p&gt;
[quote user="pkeiles"]Although it doesn&amp;#39;t work consistently, sometimes there are issues where it gets &amp;quot;stuck&amp;quot; and never makes it out of the bootloader after the download. I&amp;#39;m still trying to identify the exact problem, but maybe it&amp;#39;s related to the state of the chip along with the external hardware on the board?[/quote]
&lt;p&gt;That could be. It id difficult to say without knowing more.&amp;nbsp;It could&amp;nbsp;make sense to debug to bootloader to see what state it is in when it is seemingly stuck.&lt;/p&gt;
[quote user="pkeiles"]Is there any documentation on the SMP protocol if I end up using that versus something custom? [/quote]
&lt;p&gt;The Simple Management Protocol (SMP) protocol comes from the&amp;nbsp;mcumgr project. The documentation is&amp;nbsp;unfortunately sparse, though. Or as they put it in the mcumgr documentation: &amp;quot;Information and documentation for mcumgr is stored within the source&amp;quot;. There is a &lt;a href="https://github.com/apache/mynewt-mcumgr/blob/master/protocol.md"&gt;small chapter on the protocol&lt;/a&gt;, though.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/367497?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 00:13:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79be0816-e3b9-4146-a4a4-ed41b8a6242c</guid><dc:creator>user64801</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I wasn&amp;#39;t able to get the &amp;quot;overlay-bt.conf&amp;quot; version of the project to build because it is too large for the NRF52832. However I did get the &amp;quot;overlay-bt-tiny.conf&amp;quot; and the &amp;quot;overlay-serial.conf&amp;quot; versions to build and run on the dev board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After referencing this sample project I tweaked my own project and was able to get it to download and successfully run as well with the debugger. Although it doesn&amp;#39;t work consistently, sometimes there are issues where it gets &amp;quot;stuck&amp;quot; and never makes it out of the bootloader after the download. I&amp;#39;m still trying to identify the exact problem, but maybe it&amp;#39;s related to the state of the chip along with the external hardware on the board?&lt;/p&gt;
&lt;p&gt;I will try to see if I can get somewhere on the DFU design in my project. Is there any documentation on the SMP protocol if I end up using that versus something custom? The update image is being transferred via the UART from a different processor in our device so the application on the Nordic chip just has to write the new image to flash and initiate the switch/update via the bootloader.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Pam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Debug with image including MCUBoot Bootloader</title><link>https://test-devzone.nordicsemi.com/thread/367401?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 12:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e2f4798-f07d-4152-810c-aba9f4fa5aff</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi Pam,&lt;/p&gt;
&lt;p&gt;I have not been able to reproduce this. Just to check that the tools are in place, can you try building the unmodified &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;smp_svr sample&lt;/a&gt; with overlay-bt.conf and ensure you check the &amp;quot;Enable debug options&amp;quot; checkbox? Does debugging work then? (On my end, using the latest VS Code (1.67.1), nRF Connect for VS Code plugin (v2022.4.219) and nRF Connect SDK 1.9.1 this works out of the box.)&lt;/p&gt;
&lt;p&gt;If this works, then we can look at your project (though I see you wrote that you tested with another sample - which, and with which modifications and build configuration)? If this also fails, we should look at your development environment configuration.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>