<?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>Zephyr MCUBoot Application Debug - deadbeef everywhere</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72200/zephyr-mcuboot-application-debug---deadbeef-everywhere</link><description>I have an Zephyr application on the nRF5340 that I&amp;#39;ve been working on. I can debug fine in SES without a boot loader. However, when I add MCUBoot into the mix then everything loads and starts from SES, but if I break then the addresses, registers, etc</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Oct 2021 01:25:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72200/zephyr-mcuboot-application-debug---deadbeef-everywhere" /><item><title>RE: Zephyr MCUBoot Application Debug - deadbeef everywhere</title><link>https://devzone.nordicsemi.com/thread/336072?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 01:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9edbacdb-f9f2-469c-95a7-f908cd72a177</guid><dc:creator>denis</dc:creator><description>&lt;p&gt;I&amp;#39;m using VSCode now for development. &amp;nbsp;So closing this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr MCUBoot Application Debug - deadbeef everywhere</title><link>https://devzone.nordicsemi.com/thread/299486?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 13:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03cb0913-8893-4fa2-9321-8ad3b7fc4646</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;I got back from the developers that there isn&amp;#39;t any trivial way to do this. Apologies for the inconvenience.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr MCUBoot Application Debug - deadbeef everywhere</title><link>https://devzone.nordicsemi.com/thread/298479?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 16:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df89eb4a-7b77-439d-8c05-1c51fd6777f1</guid><dc:creator>denis</dc:creator><description>&lt;p&gt;Is there a way to build secure boot for debug - without readback protection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr MCUBoot Application Debug - deadbeef everywhere</title><link>https://devzone.nordicsemi.com/thread/298316?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 10:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acea9c2e-fd73-484b-9cc0-f3ec641c30a9</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;To follow up on the edit of my last comment:&amp;nbsp;The issue stems from the readback protection of the nRF5340, which is enabled by secure boot. SES is unfortunately not designed to handle this, but a coworker suggests that you could use GDB for debugging instead. Apologies for the inconvenience.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr MCUBoot Application Debug - deadbeef everywhere</title><link>https://devzone.nordicsemi.com/thread/297508?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 13:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fb757e7-e93f-44c5-a45c-aff35ba01fb2</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;Did some more research/testing on this and figured out that my suggestion most likely won&amp;#39;t work. &lt;span style="text-decoration:line-through;"&gt;The issues you are seeing are due to SECURE_BOOT being enabled (not the MCUBoot bootloader) as the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bootloader/README.html?highlight=segger%20embedded%20studio#immutable-bootloader"&gt;immutable bootloader&lt;/a&gt;&amp;nbsp;rejects the debugging image flashed from SES due to the format being different (.elf vs .hex). I have yet to figure out how to solve this, but the check must be disabled (temporarily) at least. Will update you when I know more.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Edit: while SECURE_BOOT is indeed the culprit the issue is not the image validation.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr MCUBoot Application Debug - deadbeef everywhere</title><link>https://devzone.nordicsemi.com/thread/297448?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 10:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53c45c0-a354-4c82-83ed-7be5e8e304cf</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi, Denis!&lt;br /&gt;&lt;br /&gt;Thanks for reaching out. Could you try to reopen the project with a &amp;quot;Clean Build Directory&amp;quot; in Segger Embedded Studio and see if that helps?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>